{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DirectConnect.Types.DirectConnectGatewayAssociationProposalState
( DirectConnectGatewayAssociationProposalState
( ..,
DirectConnectGatewayAssociationProposalState_Accepted,
DirectConnectGatewayAssociationProposalState_Deleted,
DirectConnectGatewayAssociationProposalState_Requested
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DirectConnectGatewayAssociationProposalState = DirectConnectGatewayAssociationProposalState'
{ DirectConnectGatewayAssociationProposalState -> Text
fromDirectConnectGatewayAssociationProposalState ::
Core.Text
}
deriving stock
( Int -> DirectConnectGatewayAssociationProposalState -> ShowS
[DirectConnectGatewayAssociationProposalState] -> ShowS
DirectConnectGatewayAssociationProposalState -> String
(Int -> DirectConnectGatewayAssociationProposalState -> ShowS)
-> (DirectConnectGatewayAssociationProposalState -> String)
-> ([DirectConnectGatewayAssociationProposalState] -> ShowS)
-> Show DirectConnectGatewayAssociationProposalState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DirectConnectGatewayAssociationProposalState] -> ShowS
$cshowList :: [DirectConnectGatewayAssociationProposalState] -> ShowS
show :: DirectConnectGatewayAssociationProposalState -> String
$cshow :: DirectConnectGatewayAssociationProposalState -> String
showsPrec :: Int -> DirectConnectGatewayAssociationProposalState -> ShowS
$cshowsPrec :: Int -> DirectConnectGatewayAssociationProposalState -> ShowS
Prelude.Show,
ReadPrec [DirectConnectGatewayAssociationProposalState]
ReadPrec DirectConnectGatewayAssociationProposalState
Int -> ReadS DirectConnectGatewayAssociationProposalState
ReadS [DirectConnectGatewayAssociationProposalState]
(Int -> ReadS DirectConnectGatewayAssociationProposalState)
-> ReadS [DirectConnectGatewayAssociationProposalState]
-> ReadPrec DirectConnectGatewayAssociationProposalState
-> ReadPrec [DirectConnectGatewayAssociationProposalState]
-> Read DirectConnectGatewayAssociationProposalState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DirectConnectGatewayAssociationProposalState]
$creadListPrec :: ReadPrec [DirectConnectGatewayAssociationProposalState]
readPrec :: ReadPrec DirectConnectGatewayAssociationProposalState
$creadPrec :: ReadPrec DirectConnectGatewayAssociationProposalState
readList :: ReadS [DirectConnectGatewayAssociationProposalState]
$creadList :: ReadS [DirectConnectGatewayAssociationProposalState]
readsPrec :: Int -> ReadS DirectConnectGatewayAssociationProposalState
$creadsPrec :: Int -> ReadS DirectConnectGatewayAssociationProposalState
Prelude.Read,
DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
(DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool)
-> Eq DirectConnectGatewayAssociationProposalState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
$c/= :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
== :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
$c== :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
Prelude.Eq,
Eq DirectConnectGatewayAssociationProposalState
Eq DirectConnectGatewayAssociationProposalState
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Ordering)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState)
-> (DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState)
-> Ord DirectConnectGatewayAssociationProposalState
DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Ordering
DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
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 :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
$cmin :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
max :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
$cmax :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState
>= :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
$c>= :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
> :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
$c> :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
<= :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
$c<= :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
< :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
$c< :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Bool
compare :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Ordering
$ccompare :: DirectConnectGatewayAssociationProposalState
-> DirectConnectGatewayAssociationProposalState -> Ordering
$cp1Ord :: Eq DirectConnectGatewayAssociationProposalState
Prelude.Ord,
(forall x.
DirectConnectGatewayAssociationProposalState
-> Rep DirectConnectGatewayAssociationProposalState x)
-> (forall x.
Rep DirectConnectGatewayAssociationProposalState x
-> DirectConnectGatewayAssociationProposalState)
-> Generic DirectConnectGatewayAssociationProposalState
forall x.
Rep DirectConnectGatewayAssociationProposalState x
-> DirectConnectGatewayAssociationProposalState
forall x.
DirectConnectGatewayAssociationProposalState
-> Rep DirectConnectGatewayAssociationProposalState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DirectConnectGatewayAssociationProposalState x
-> DirectConnectGatewayAssociationProposalState
$cfrom :: forall x.
DirectConnectGatewayAssociationProposalState
-> Rep DirectConnectGatewayAssociationProposalState x
Prelude.Generic
)
deriving newtype
( Int -> DirectConnectGatewayAssociationProposalState -> Int
DirectConnectGatewayAssociationProposalState -> Int
(Int -> DirectConnectGatewayAssociationProposalState -> Int)
-> (DirectConnectGatewayAssociationProposalState -> Int)
-> Hashable DirectConnectGatewayAssociationProposalState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DirectConnectGatewayAssociationProposalState -> Int
$chash :: DirectConnectGatewayAssociationProposalState -> Int
hashWithSalt :: Int -> DirectConnectGatewayAssociationProposalState -> Int
$chashWithSalt :: Int -> DirectConnectGatewayAssociationProposalState -> Int
Prelude.Hashable,
DirectConnectGatewayAssociationProposalState -> ()
(DirectConnectGatewayAssociationProposalState -> ())
-> NFData DirectConnectGatewayAssociationProposalState
forall a. (a -> ()) -> NFData a
rnf :: DirectConnectGatewayAssociationProposalState -> ()
$crnf :: DirectConnectGatewayAssociationProposalState -> ()
Prelude.NFData,
Text -> Either String DirectConnectGatewayAssociationProposalState
(Text
-> Either String DirectConnectGatewayAssociationProposalState)
-> FromText DirectConnectGatewayAssociationProposalState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DirectConnectGatewayAssociationProposalState
$cfromText :: Text -> Either String DirectConnectGatewayAssociationProposalState
Core.FromText,
DirectConnectGatewayAssociationProposalState -> Text
(DirectConnectGatewayAssociationProposalState -> Text)
-> ToText DirectConnectGatewayAssociationProposalState
forall a. (a -> Text) -> ToText a
toText :: DirectConnectGatewayAssociationProposalState -> Text
$ctoText :: DirectConnectGatewayAssociationProposalState -> Text
Core.ToText,
DirectConnectGatewayAssociationProposalState -> ByteString
(DirectConnectGatewayAssociationProposalState -> ByteString)
-> ToByteString DirectConnectGatewayAssociationProposalState
forall a. (a -> ByteString) -> ToByteString a
toBS :: DirectConnectGatewayAssociationProposalState -> ByteString
$ctoBS :: DirectConnectGatewayAssociationProposalState -> ByteString
Core.ToByteString,
DirectConnectGatewayAssociationProposalState -> ByteStringBuilder
(DirectConnectGatewayAssociationProposalState -> ByteStringBuilder)
-> ToLog DirectConnectGatewayAssociationProposalState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DirectConnectGatewayAssociationProposalState -> ByteStringBuilder
$cbuild :: DirectConnectGatewayAssociationProposalState -> ByteStringBuilder
Core.ToLog,
HeaderName
-> DirectConnectGatewayAssociationProposalState -> [Header]
(HeaderName
-> DirectConnectGatewayAssociationProposalState -> [Header])
-> ToHeader DirectConnectGatewayAssociationProposalState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName
-> DirectConnectGatewayAssociationProposalState -> [Header]
$ctoHeader :: HeaderName
-> DirectConnectGatewayAssociationProposalState -> [Header]
Core.ToHeader,
DirectConnectGatewayAssociationProposalState -> QueryString
(DirectConnectGatewayAssociationProposalState -> QueryString)
-> ToQuery DirectConnectGatewayAssociationProposalState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DirectConnectGatewayAssociationProposalState -> QueryString
$ctoQuery :: DirectConnectGatewayAssociationProposalState -> QueryString
Core.ToQuery,
Value -> Parser [DirectConnectGatewayAssociationProposalState]
Value -> Parser DirectConnectGatewayAssociationProposalState
(Value -> Parser DirectConnectGatewayAssociationProposalState)
-> (Value -> Parser [DirectConnectGatewayAssociationProposalState])
-> FromJSON DirectConnectGatewayAssociationProposalState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DirectConnectGatewayAssociationProposalState]
$cparseJSONList :: Value -> Parser [DirectConnectGatewayAssociationProposalState]
parseJSON :: Value -> Parser DirectConnectGatewayAssociationProposalState
$cparseJSON :: Value -> Parser DirectConnectGatewayAssociationProposalState
Core.FromJSON,
FromJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
FromJSONKeyFunction DirectConnectGatewayAssociationProposalState
FromJSONKeyFunction DirectConnectGatewayAssociationProposalState
-> FromJSONKeyFunction
[DirectConnectGatewayAssociationProposalState]
-> FromJSONKey DirectConnectGatewayAssociationProposalState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
$cfromJSONKeyList :: FromJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
fromJSONKey :: FromJSONKeyFunction DirectConnectGatewayAssociationProposalState
$cfromJSONKey :: FromJSONKeyFunction DirectConnectGatewayAssociationProposalState
Core.FromJSONKey,
[DirectConnectGatewayAssociationProposalState] -> Encoding
[DirectConnectGatewayAssociationProposalState] -> Value
DirectConnectGatewayAssociationProposalState -> Encoding
DirectConnectGatewayAssociationProposalState -> Value
(DirectConnectGatewayAssociationProposalState -> Value)
-> (DirectConnectGatewayAssociationProposalState -> Encoding)
-> ([DirectConnectGatewayAssociationProposalState] -> Value)
-> ([DirectConnectGatewayAssociationProposalState] -> Encoding)
-> ToJSON DirectConnectGatewayAssociationProposalState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DirectConnectGatewayAssociationProposalState] -> Encoding
$ctoEncodingList :: [DirectConnectGatewayAssociationProposalState] -> Encoding
toJSONList :: [DirectConnectGatewayAssociationProposalState] -> Value
$ctoJSONList :: [DirectConnectGatewayAssociationProposalState] -> Value
toEncoding :: DirectConnectGatewayAssociationProposalState -> Encoding
$ctoEncoding :: DirectConnectGatewayAssociationProposalState -> Encoding
toJSON :: DirectConnectGatewayAssociationProposalState -> Value
$ctoJSON :: DirectConnectGatewayAssociationProposalState -> Value
Core.ToJSON,
ToJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
ToJSONKeyFunction DirectConnectGatewayAssociationProposalState
ToJSONKeyFunction DirectConnectGatewayAssociationProposalState
-> ToJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
-> ToJSONKey DirectConnectGatewayAssociationProposalState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
$ctoJSONKeyList :: ToJSONKeyFunction [DirectConnectGatewayAssociationProposalState]
toJSONKey :: ToJSONKeyFunction DirectConnectGatewayAssociationProposalState
$ctoJSONKey :: ToJSONKeyFunction DirectConnectGatewayAssociationProposalState
Core.ToJSONKey,
[Node]
-> Either String DirectConnectGatewayAssociationProposalState
([Node]
-> Either String DirectConnectGatewayAssociationProposalState)
-> FromXML DirectConnectGatewayAssociationProposalState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node]
-> Either String DirectConnectGatewayAssociationProposalState
$cparseXML :: [Node]
-> Either String DirectConnectGatewayAssociationProposalState
Core.FromXML,
DirectConnectGatewayAssociationProposalState -> XML
(DirectConnectGatewayAssociationProposalState -> XML)
-> ToXML DirectConnectGatewayAssociationProposalState
forall a. (a -> XML) -> ToXML a
toXML :: DirectConnectGatewayAssociationProposalState -> XML
$ctoXML :: DirectConnectGatewayAssociationProposalState -> XML
Core.ToXML
)
pattern DirectConnectGatewayAssociationProposalState_Accepted :: DirectConnectGatewayAssociationProposalState
pattern $bDirectConnectGatewayAssociationProposalState_Accepted :: DirectConnectGatewayAssociationProposalState
$mDirectConnectGatewayAssociationProposalState_Accepted :: forall r.
DirectConnectGatewayAssociationProposalState
-> (Void# -> r) -> (Void# -> r) -> r
DirectConnectGatewayAssociationProposalState_Accepted = DirectConnectGatewayAssociationProposalState' "accepted"
pattern DirectConnectGatewayAssociationProposalState_Deleted :: DirectConnectGatewayAssociationProposalState
pattern $bDirectConnectGatewayAssociationProposalState_Deleted :: DirectConnectGatewayAssociationProposalState
$mDirectConnectGatewayAssociationProposalState_Deleted :: forall r.
DirectConnectGatewayAssociationProposalState
-> (Void# -> r) -> (Void# -> r) -> r
DirectConnectGatewayAssociationProposalState_Deleted = DirectConnectGatewayAssociationProposalState' "deleted"
pattern DirectConnectGatewayAssociationProposalState_Requested :: DirectConnectGatewayAssociationProposalState
pattern $bDirectConnectGatewayAssociationProposalState_Requested :: DirectConnectGatewayAssociationProposalState
$mDirectConnectGatewayAssociationProposalState_Requested :: forall r.
DirectConnectGatewayAssociationProposalState
-> (Void# -> r) -> (Void# -> r) -> r
DirectConnectGatewayAssociationProposalState_Requested = DirectConnectGatewayAssociationProposalState' "requested"
{-# COMPLETE
DirectConnectGatewayAssociationProposalState_Accepted,
DirectConnectGatewayAssociationProposalState_Deleted,
DirectConnectGatewayAssociationProposalState_Requested,
DirectConnectGatewayAssociationProposalState'
#-}