{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WorkSpaces.Types.StandbyWorkspaceRelationshipType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WorkSpaces.Types.StandbyWorkspaceRelationshipType
  ( StandbyWorkspaceRelationshipType
      ( ..,
        StandbyWorkspaceRelationshipType_PRIMARY,
        StandbyWorkspaceRelationshipType_STANDBY
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype StandbyWorkspaceRelationshipType = StandbyWorkspaceRelationshipType'
  { StandbyWorkspaceRelationshipType -> Text
fromStandbyWorkspaceRelationshipType ::
      Data.Text
  }
  deriving stock
    ( Int -> StandbyWorkspaceRelationshipType -> ShowS
[StandbyWorkspaceRelationshipType] -> ShowS
StandbyWorkspaceRelationshipType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StandbyWorkspaceRelationshipType] -> ShowS
$cshowList :: [StandbyWorkspaceRelationshipType] -> ShowS
show :: StandbyWorkspaceRelationshipType -> String
$cshow :: StandbyWorkspaceRelationshipType -> String
showsPrec :: Int -> StandbyWorkspaceRelationshipType -> ShowS
$cshowsPrec :: Int -> StandbyWorkspaceRelationshipType -> ShowS
Prelude.Show,
      ReadPrec [StandbyWorkspaceRelationshipType]
ReadPrec StandbyWorkspaceRelationshipType
Int -> ReadS StandbyWorkspaceRelationshipType
ReadS [StandbyWorkspaceRelationshipType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StandbyWorkspaceRelationshipType]
$creadListPrec :: ReadPrec [StandbyWorkspaceRelationshipType]
readPrec :: ReadPrec StandbyWorkspaceRelationshipType
$creadPrec :: ReadPrec StandbyWorkspaceRelationshipType
readList :: ReadS [StandbyWorkspaceRelationshipType]
$creadList :: ReadS [StandbyWorkspaceRelationshipType]
readsPrec :: Int -> ReadS StandbyWorkspaceRelationshipType
$creadsPrec :: Int -> ReadS StandbyWorkspaceRelationshipType
Prelude.Read,
      StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
$c/= :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
== :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
$c== :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
Prelude.Eq,
      Eq StandbyWorkspaceRelationshipType
StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Ordering
StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
$cmin :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
max :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
$cmax :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType
>= :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
$c>= :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
> :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
$c> :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
<= :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
$c<= :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
< :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
$c< :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Bool
compare :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Ordering
$ccompare :: StandbyWorkspaceRelationshipType
-> StandbyWorkspaceRelationshipType -> Ordering
Prelude.Ord,
      forall x.
Rep StandbyWorkspaceRelationshipType x
-> StandbyWorkspaceRelationshipType
forall x.
StandbyWorkspaceRelationshipType
-> Rep StandbyWorkspaceRelationshipType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StandbyWorkspaceRelationshipType x
-> StandbyWorkspaceRelationshipType
$cfrom :: forall x.
StandbyWorkspaceRelationshipType
-> Rep StandbyWorkspaceRelationshipType x
Prelude.Generic
    )
  deriving newtype
    ( Eq StandbyWorkspaceRelationshipType
Int -> StandbyWorkspaceRelationshipType -> Int
StandbyWorkspaceRelationshipType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StandbyWorkspaceRelationshipType -> Int
$chash :: StandbyWorkspaceRelationshipType -> Int
hashWithSalt :: Int -> StandbyWorkspaceRelationshipType -> Int
$chashWithSalt :: Int -> StandbyWorkspaceRelationshipType -> Int
Prelude.Hashable,
      StandbyWorkspaceRelationshipType -> ()
forall a. (a -> ()) -> NFData a
rnf :: StandbyWorkspaceRelationshipType -> ()
$crnf :: StandbyWorkspaceRelationshipType -> ()
Prelude.NFData,
      Text -> Either String StandbyWorkspaceRelationshipType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StandbyWorkspaceRelationshipType
$cfromText :: Text -> Either String StandbyWorkspaceRelationshipType
Data.FromText,
      StandbyWorkspaceRelationshipType -> Text
forall a. (a -> Text) -> ToText a
toText :: StandbyWorkspaceRelationshipType -> Text
$ctoText :: StandbyWorkspaceRelationshipType -> Text
Data.ToText,
      StandbyWorkspaceRelationshipType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StandbyWorkspaceRelationshipType -> ByteString
$ctoBS :: StandbyWorkspaceRelationshipType -> ByteString
Data.ToByteString,
      StandbyWorkspaceRelationshipType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StandbyWorkspaceRelationshipType -> ByteStringBuilder
$cbuild :: StandbyWorkspaceRelationshipType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> StandbyWorkspaceRelationshipType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StandbyWorkspaceRelationshipType -> [Header]
$ctoHeader :: HeaderName -> StandbyWorkspaceRelationshipType -> [Header]
Data.ToHeader,
      StandbyWorkspaceRelationshipType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StandbyWorkspaceRelationshipType -> QueryString
$ctoQuery :: StandbyWorkspaceRelationshipType -> QueryString
Data.ToQuery,
      Value -> Parser [StandbyWorkspaceRelationshipType]
Value -> Parser StandbyWorkspaceRelationshipType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StandbyWorkspaceRelationshipType]
$cparseJSONList :: Value -> Parser [StandbyWorkspaceRelationshipType]
parseJSON :: Value -> Parser StandbyWorkspaceRelationshipType
$cparseJSON :: Value -> Parser StandbyWorkspaceRelationshipType
Data.FromJSON,
      FromJSONKeyFunction [StandbyWorkspaceRelationshipType]
FromJSONKeyFunction StandbyWorkspaceRelationshipType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StandbyWorkspaceRelationshipType]
$cfromJSONKeyList :: FromJSONKeyFunction [StandbyWorkspaceRelationshipType]
fromJSONKey :: FromJSONKeyFunction StandbyWorkspaceRelationshipType
$cfromJSONKey :: FromJSONKeyFunction StandbyWorkspaceRelationshipType
Data.FromJSONKey,
      [StandbyWorkspaceRelationshipType] -> Encoding
[StandbyWorkspaceRelationshipType] -> Value
StandbyWorkspaceRelationshipType -> Encoding
StandbyWorkspaceRelationshipType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StandbyWorkspaceRelationshipType] -> Encoding
$ctoEncodingList :: [StandbyWorkspaceRelationshipType] -> Encoding
toJSONList :: [StandbyWorkspaceRelationshipType] -> Value
$ctoJSONList :: [StandbyWorkspaceRelationshipType] -> Value
toEncoding :: StandbyWorkspaceRelationshipType -> Encoding
$ctoEncoding :: StandbyWorkspaceRelationshipType -> Encoding
toJSON :: StandbyWorkspaceRelationshipType -> Value
$ctoJSON :: StandbyWorkspaceRelationshipType -> Value
Data.ToJSON,
      ToJSONKeyFunction [StandbyWorkspaceRelationshipType]
ToJSONKeyFunction StandbyWorkspaceRelationshipType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StandbyWorkspaceRelationshipType]
$ctoJSONKeyList :: ToJSONKeyFunction [StandbyWorkspaceRelationshipType]
toJSONKey :: ToJSONKeyFunction StandbyWorkspaceRelationshipType
$ctoJSONKey :: ToJSONKeyFunction StandbyWorkspaceRelationshipType
Data.ToJSONKey,
      [Node] -> Either String StandbyWorkspaceRelationshipType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StandbyWorkspaceRelationshipType
$cparseXML :: [Node] -> Either String StandbyWorkspaceRelationshipType
Data.FromXML,
      StandbyWorkspaceRelationshipType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StandbyWorkspaceRelationshipType -> XML
$ctoXML :: StandbyWorkspaceRelationshipType -> XML
Data.ToXML
    )

pattern StandbyWorkspaceRelationshipType_PRIMARY :: StandbyWorkspaceRelationshipType
pattern $bStandbyWorkspaceRelationshipType_PRIMARY :: StandbyWorkspaceRelationshipType
$mStandbyWorkspaceRelationshipType_PRIMARY :: forall {r}.
StandbyWorkspaceRelationshipType
-> ((# #) -> r) -> ((# #) -> r) -> r
StandbyWorkspaceRelationshipType_PRIMARY = StandbyWorkspaceRelationshipType' "PRIMARY"

pattern StandbyWorkspaceRelationshipType_STANDBY :: StandbyWorkspaceRelationshipType
pattern $bStandbyWorkspaceRelationshipType_STANDBY :: StandbyWorkspaceRelationshipType
$mStandbyWorkspaceRelationshipType_STANDBY :: forall {r}.
StandbyWorkspaceRelationshipType
-> ((# #) -> r) -> ((# #) -> r) -> r
StandbyWorkspaceRelationshipType_STANDBY = StandbyWorkspaceRelationshipType' "STANDBY"

{-# COMPLETE
  StandbyWorkspaceRelationshipType_PRIMARY,
  StandbyWorkspaceRelationshipType_STANDBY,
  StandbyWorkspaceRelationshipType'
  #-}