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