{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Organizations.Types.HandshakeState
( HandshakeState
( ..,
HandshakeState_ACCEPTED,
HandshakeState_CANCELED,
HandshakeState_DECLINED,
HandshakeState_EXPIRED,
HandshakeState_OPEN,
HandshakeState_REQUESTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype HandshakeState = HandshakeState'
{ HandshakeState -> Text
fromHandshakeState ::
Core.Text
}
deriving stock
( Int -> HandshakeState -> ShowS
[HandshakeState] -> ShowS
HandshakeState -> String
(Int -> HandshakeState -> ShowS)
-> (HandshakeState -> String)
-> ([HandshakeState] -> ShowS)
-> Show HandshakeState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HandshakeState] -> ShowS
$cshowList :: [HandshakeState] -> ShowS
show :: HandshakeState -> String
$cshow :: HandshakeState -> String
showsPrec :: Int -> HandshakeState -> ShowS
$cshowsPrec :: Int -> HandshakeState -> ShowS
Prelude.Show,
ReadPrec [HandshakeState]
ReadPrec HandshakeState
Int -> ReadS HandshakeState
ReadS [HandshakeState]
(Int -> ReadS HandshakeState)
-> ReadS [HandshakeState]
-> ReadPrec HandshakeState
-> ReadPrec [HandshakeState]
-> Read HandshakeState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HandshakeState]
$creadListPrec :: ReadPrec [HandshakeState]
readPrec :: ReadPrec HandshakeState
$creadPrec :: ReadPrec HandshakeState
readList :: ReadS [HandshakeState]
$creadList :: ReadS [HandshakeState]
readsPrec :: Int -> ReadS HandshakeState
$creadsPrec :: Int -> ReadS HandshakeState
Prelude.Read,
HandshakeState -> HandshakeState -> Bool
(HandshakeState -> HandshakeState -> Bool)
-> (HandshakeState -> HandshakeState -> Bool) -> Eq HandshakeState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HandshakeState -> HandshakeState -> Bool
$c/= :: HandshakeState -> HandshakeState -> Bool
== :: HandshakeState -> HandshakeState -> Bool
$c== :: HandshakeState -> HandshakeState -> Bool
Prelude.Eq,
Eq HandshakeState
Eq HandshakeState
-> (HandshakeState -> HandshakeState -> Ordering)
-> (HandshakeState -> HandshakeState -> Bool)
-> (HandshakeState -> HandshakeState -> Bool)
-> (HandshakeState -> HandshakeState -> Bool)
-> (HandshakeState -> HandshakeState -> Bool)
-> (HandshakeState -> HandshakeState -> HandshakeState)
-> (HandshakeState -> HandshakeState -> HandshakeState)
-> Ord HandshakeState
HandshakeState -> HandshakeState -> Bool
HandshakeState -> HandshakeState -> Ordering
HandshakeState -> HandshakeState -> HandshakeState
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 :: HandshakeState -> HandshakeState -> HandshakeState
$cmin :: HandshakeState -> HandshakeState -> HandshakeState
max :: HandshakeState -> HandshakeState -> HandshakeState
$cmax :: HandshakeState -> HandshakeState -> HandshakeState
>= :: HandshakeState -> HandshakeState -> Bool
$c>= :: HandshakeState -> HandshakeState -> Bool
> :: HandshakeState -> HandshakeState -> Bool
$c> :: HandshakeState -> HandshakeState -> Bool
<= :: HandshakeState -> HandshakeState -> Bool
$c<= :: HandshakeState -> HandshakeState -> Bool
< :: HandshakeState -> HandshakeState -> Bool
$c< :: HandshakeState -> HandshakeState -> Bool
compare :: HandshakeState -> HandshakeState -> Ordering
$ccompare :: HandshakeState -> HandshakeState -> Ordering
$cp1Ord :: Eq HandshakeState
Prelude.Ord,
(forall x. HandshakeState -> Rep HandshakeState x)
-> (forall x. Rep HandshakeState x -> HandshakeState)
-> Generic HandshakeState
forall x. Rep HandshakeState x -> HandshakeState
forall x. HandshakeState -> Rep HandshakeState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HandshakeState x -> HandshakeState
$cfrom :: forall x. HandshakeState -> Rep HandshakeState x
Prelude.Generic
)
deriving newtype
( Int -> HandshakeState -> Int
HandshakeState -> Int
(Int -> HandshakeState -> Int)
-> (HandshakeState -> Int) -> Hashable HandshakeState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HandshakeState -> Int
$chash :: HandshakeState -> Int
hashWithSalt :: Int -> HandshakeState -> Int
$chashWithSalt :: Int -> HandshakeState -> Int
Prelude.Hashable,
HandshakeState -> ()
(HandshakeState -> ()) -> NFData HandshakeState
forall a. (a -> ()) -> NFData a
rnf :: HandshakeState -> ()
$crnf :: HandshakeState -> ()
Prelude.NFData,
Text -> Either String HandshakeState
(Text -> Either String HandshakeState) -> FromText HandshakeState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HandshakeState
$cfromText :: Text -> Either String HandshakeState
Core.FromText,
HandshakeState -> Text
(HandshakeState -> Text) -> ToText HandshakeState
forall a. (a -> Text) -> ToText a
toText :: HandshakeState -> Text
$ctoText :: HandshakeState -> Text
Core.ToText,
HandshakeState -> ByteString
(HandshakeState -> ByteString) -> ToByteString HandshakeState
forall a. (a -> ByteString) -> ToByteString a
toBS :: HandshakeState -> ByteString
$ctoBS :: HandshakeState -> ByteString
Core.ToByteString,
HandshakeState -> ByteStringBuilder
(HandshakeState -> ByteStringBuilder) -> ToLog HandshakeState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HandshakeState -> ByteStringBuilder
$cbuild :: HandshakeState -> ByteStringBuilder
Core.ToLog,
HeaderName -> HandshakeState -> [Header]
(HeaderName -> HandshakeState -> [Header])
-> ToHeader HandshakeState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HandshakeState -> [Header]
$ctoHeader :: HeaderName -> HandshakeState -> [Header]
Core.ToHeader,
HandshakeState -> QueryString
(HandshakeState -> QueryString) -> ToQuery HandshakeState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HandshakeState -> QueryString
$ctoQuery :: HandshakeState -> QueryString
Core.ToQuery,
Value -> Parser [HandshakeState]
Value -> Parser HandshakeState
(Value -> Parser HandshakeState)
-> (Value -> Parser [HandshakeState]) -> FromJSON HandshakeState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HandshakeState]
$cparseJSONList :: Value -> Parser [HandshakeState]
parseJSON :: Value -> Parser HandshakeState
$cparseJSON :: Value -> Parser HandshakeState
Core.FromJSON,
FromJSONKeyFunction [HandshakeState]
FromJSONKeyFunction HandshakeState
FromJSONKeyFunction HandshakeState
-> FromJSONKeyFunction [HandshakeState]
-> FromJSONKey HandshakeState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HandshakeState]
$cfromJSONKeyList :: FromJSONKeyFunction [HandshakeState]
fromJSONKey :: FromJSONKeyFunction HandshakeState
$cfromJSONKey :: FromJSONKeyFunction HandshakeState
Core.FromJSONKey,
[HandshakeState] -> Encoding
[HandshakeState] -> Value
HandshakeState -> Encoding
HandshakeState -> Value
(HandshakeState -> Value)
-> (HandshakeState -> Encoding)
-> ([HandshakeState] -> Value)
-> ([HandshakeState] -> Encoding)
-> ToJSON HandshakeState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HandshakeState] -> Encoding
$ctoEncodingList :: [HandshakeState] -> Encoding
toJSONList :: [HandshakeState] -> Value
$ctoJSONList :: [HandshakeState] -> Value
toEncoding :: HandshakeState -> Encoding
$ctoEncoding :: HandshakeState -> Encoding
toJSON :: HandshakeState -> Value
$ctoJSON :: HandshakeState -> Value
Core.ToJSON,
ToJSONKeyFunction [HandshakeState]
ToJSONKeyFunction HandshakeState
ToJSONKeyFunction HandshakeState
-> ToJSONKeyFunction [HandshakeState] -> ToJSONKey HandshakeState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HandshakeState]
$ctoJSONKeyList :: ToJSONKeyFunction [HandshakeState]
toJSONKey :: ToJSONKeyFunction HandshakeState
$ctoJSONKey :: ToJSONKeyFunction HandshakeState
Core.ToJSONKey,
[Node] -> Either String HandshakeState
([Node] -> Either String HandshakeState) -> FromXML HandshakeState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HandshakeState
$cparseXML :: [Node] -> Either String HandshakeState
Core.FromXML,
HandshakeState -> XML
(HandshakeState -> XML) -> ToXML HandshakeState
forall a. (a -> XML) -> ToXML a
toXML :: HandshakeState -> XML
$ctoXML :: HandshakeState -> XML
Core.ToXML
)
pattern HandshakeState_ACCEPTED :: HandshakeState
pattern $bHandshakeState_ACCEPTED :: HandshakeState
$mHandshakeState_ACCEPTED :: forall r. HandshakeState -> (Void# -> r) -> (Void# -> r) -> r
HandshakeState_ACCEPTED = HandshakeState' "ACCEPTED"
pattern HandshakeState_CANCELED :: HandshakeState
pattern $bHandshakeState_CANCELED :: HandshakeState
$mHandshakeState_CANCELED :: forall r. HandshakeState -> (Void# -> r) -> (Void# -> r) -> r
HandshakeState_CANCELED = HandshakeState' "CANCELED"
pattern HandshakeState_DECLINED :: HandshakeState
pattern $bHandshakeState_DECLINED :: HandshakeState
$mHandshakeState_DECLINED :: forall r. HandshakeState -> (Void# -> r) -> (Void# -> r) -> r
HandshakeState_DECLINED = HandshakeState' "DECLINED"
pattern HandshakeState_EXPIRED :: HandshakeState
pattern $bHandshakeState_EXPIRED :: HandshakeState
$mHandshakeState_EXPIRED :: forall r. HandshakeState -> (Void# -> r) -> (Void# -> r) -> r
HandshakeState_EXPIRED = HandshakeState' "EXPIRED"
pattern HandshakeState_OPEN :: HandshakeState
pattern $bHandshakeState_OPEN :: HandshakeState
$mHandshakeState_OPEN :: forall r. HandshakeState -> (Void# -> r) -> (Void# -> r) -> r
HandshakeState_OPEN = HandshakeState' "OPEN"
pattern HandshakeState_REQUESTED :: HandshakeState
pattern $bHandshakeState_REQUESTED :: HandshakeState
$mHandshakeState_REQUESTED :: forall r. HandshakeState -> (Void# -> r) -> (Void# -> r) -> r
HandshakeState_REQUESTED = HandshakeState' "REQUESTED"
{-# COMPLETE
HandshakeState_ACCEPTED,
HandshakeState_CANCELED,
HandshakeState_DECLINED,
HandshakeState_EXPIRED,
HandshakeState_OPEN,
HandshakeState_REQUESTED,
HandshakeState'
#-}