{-# 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.LinkState
( LinkState
( ..,
LinkState_AVAILABLE,
LinkState_DELETING,
LinkState_PENDING,
LinkState_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LinkState = LinkState'
{ LinkState -> Text
fromLinkState ::
Core.Text
}
deriving stock
( Int -> LinkState -> ShowS
[LinkState] -> ShowS
LinkState -> String
(Int -> LinkState -> ShowS)
-> (LinkState -> String)
-> ([LinkState] -> ShowS)
-> Show LinkState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LinkState] -> ShowS
$cshowList :: [LinkState] -> ShowS
show :: LinkState -> String
$cshow :: LinkState -> String
showsPrec :: Int -> LinkState -> ShowS
$cshowsPrec :: Int -> LinkState -> ShowS
Prelude.Show,
ReadPrec [LinkState]
ReadPrec LinkState
Int -> ReadS LinkState
ReadS [LinkState]
(Int -> ReadS LinkState)
-> ReadS [LinkState]
-> ReadPrec LinkState
-> ReadPrec [LinkState]
-> Read LinkState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LinkState]
$creadListPrec :: ReadPrec [LinkState]
readPrec :: ReadPrec LinkState
$creadPrec :: ReadPrec LinkState
readList :: ReadS [LinkState]
$creadList :: ReadS [LinkState]
readsPrec :: Int -> ReadS LinkState
$creadsPrec :: Int -> ReadS LinkState
Prelude.Read,
LinkState -> LinkState -> Bool
(LinkState -> LinkState -> Bool)
-> (LinkState -> LinkState -> Bool) -> Eq LinkState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LinkState -> LinkState -> Bool
$c/= :: LinkState -> LinkState -> Bool
== :: LinkState -> LinkState -> Bool
$c== :: LinkState -> LinkState -> Bool
Prelude.Eq,
Eq LinkState
Eq LinkState
-> (LinkState -> LinkState -> Ordering)
-> (LinkState -> LinkState -> Bool)
-> (LinkState -> LinkState -> Bool)
-> (LinkState -> LinkState -> Bool)
-> (LinkState -> LinkState -> Bool)
-> (LinkState -> LinkState -> LinkState)
-> (LinkState -> LinkState -> LinkState)
-> Ord LinkState
LinkState -> LinkState -> Bool
LinkState -> LinkState -> Ordering
LinkState -> LinkState -> LinkState
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 :: LinkState -> LinkState -> LinkState
$cmin :: LinkState -> LinkState -> LinkState
max :: LinkState -> LinkState -> LinkState
$cmax :: LinkState -> LinkState -> LinkState
>= :: LinkState -> LinkState -> Bool
$c>= :: LinkState -> LinkState -> Bool
> :: LinkState -> LinkState -> Bool
$c> :: LinkState -> LinkState -> Bool
<= :: LinkState -> LinkState -> Bool
$c<= :: LinkState -> LinkState -> Bool
< :: LinkState -> LinkState -> Bool
$c< :: LinkState -> LinkState -> Bool
compare :: LinkState -> LinkState -> Ordering
$ccompare :: LinkState -> LinkState -> Ordering
$cp1Ord :: Eq LinkState
Prelude.Ord,
(forall x. LinkState -> Rep LinkState x)
-> (forall x. Rep LinkState x -> LinkState) -> Generic LinkState
forall x. Rep LinkState x -> LinkState
forall x. LinkState -> Rep LinkState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LinkState x -> LinkState
$cfrom :: forall x. LinkState -> Rep LinkState x
Prelude.Generic
)
deriving newtype
( Int -> LinkState -> Int
LinkState -> Int
(Int -> LinkState -> Int)
-> (LinkState -> Int) -> Hashable LinkState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LinkState -> Int
$chash :: LinkState -> Int
hashWithSalt :: Int -> LinkState -> Int
$chashWithSalt :: Int -> LinkState -> Int
Prelude.Hashable,
LinkState -> ()
(LinkState -> ()) -> NFData LinkState
forall a. (a -> ()) -> NFData a
rnf :: LinkState -> ()
$crnf :: LinkState -> ()
Prelude.NFData,
Text -> Either String LinkState
(Text -> Either String LinkState) -> FromText LinkState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LinkState
$cfromText :: Text -> Either String LinkState
Core.FromText,
LinkState -> Text
(LinkState -> Text) -> ToText LinkState
forall a. (a -> Text) -> ToText a
toText :: LinkState -> Text
$ctoText :: LinkState -> Text
Core.ToText,
LinkState -> ByteString
(LinkState -> ByteString) -> ToByteString LinkState
forall a. (a -> ByteString) -> ToByteString a
toBS :: LinkState -> ByteString
$ctoBS :: LinkState -> ByteString
Core.ToByteString,
LinkState -> ByteStringBuilder
(LinkState -> ByteStringBuilder) -> ToLog LinkState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LinkState -> ByteStringBuilder
$cbuild :: LinkState -> ByteStringBuilder
Core.ToLog,
HeaderName -> LinkState -> [Header]
(HeaderName -> LinkState -> [Header]) -> ToHeader LinkState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LinkState -> [Header]
$ctoHeader :: HeaderName -> LinkState -> [Header]
Core.ToHeader,
LinkState -> QueryString
(LinkState -> QueryString) -> ToQuery LinkState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LinkState -> QueryString
$ctoQuery :: LinkState -> QueryString
Core.ToQuery,
Value -> Parser [LinkState]
Value -> Parser LinkState
(Value -> Parser LinkState)
-> (Value -> Parser [LinkState]) -> FromJSON LinkState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LinkState]
$cparseJSONList :: Value -> Parser [LinkState]
parseJSON :: Value -> Parser LinkState
$cparseJSON :: Value -> Parser LinkState
Core.FromJSON,
FromJSONKeyFunction [LinkState]
FromJSONKeyFunction LinkState
FromJSONKeyFunction LinkState
-> FromJSONKeyFunction [LinkState] -> FromJSONKey LinkState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LinkState]
$cfromJSONKeyList :: FromJSONKeyFunction [LinkState]
fromJSONKey :: FromJSONKeyFunction LinkState
$cfromJSONKey :: FromJSONKeyFunction LinkState
Core.FromJSONKey,
[LinkState] -> Encoding
[LinkState] -> Value
LinkState -> Encoding
LinkState -> Value
(LinkState -> Value)
-> (LinkState -> Encoding)
-> ([LinkState] -> Value)
-> ([LinkState] -> Encoding)
-> ToJSON LinkState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LinkState] -> Encoding
$ctoEncodingList :: [LinkState] -> Encoding
toJSONList :: [LinkState] -> Value
$ctoJSONList :: [LinkState] -> Value
toEncoding :: LinkState -> Encoding
$ctoEncoding :: LinkState -> Encoding
toJSON :: LinkState -> Value
$ctoJSON :: LinkState -> Value
Core.ToJSON,
ToJSONKeyFunction [LinkState]
ToJSONKeyFunction LinkState
ToJSONKeyFunction LinkState
-> ToJSONKeyFunction [LinkState] -> ToJSONKey LinkState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LinkState]
$ctoJSONKeyList :: ToJSONKeyFunction [LinkState]
toJSONKey :: ToJSONKeyFunction LinkState
$ctoJSONKey :: ToJSONKeyFunction LinkState
Core.ToJSONKey,
[Node] -> Either String LinkState
([Node] -> Either String LinkState) -> FromXML LinkState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LinkState
$cparseXML :: [Node] -> Either String LinkState
Core.FromXML,
LinkState -> XML
(LinkState -> XML) -> ToXML LinkState
forall a. (a -> XML) -> ToXML a
toXML :: LinkState -> XML
$ctoXML :: LinkState -> XML
Core.ToXML
)
pattern LinkState_AVAILABLE :: LinkState
pattern $bLinkState_AVAILABLE :: LinkState
$mLinkState_AVAILABLE :: forall r. LinkState -> (Void# -> r) -> (Void# -> r) -> r
LinkState_AVAILABLE = LinkState' "AVAILABLE"
pattern LinkState_DELETING :: LinkState
pattern $bLinkState_DELETING :: LinkState
$mLinkState_DELETING :: forall r. LinkState -> (Void# -> r) -> (Void# -> r) -> r
LinkState_DELETING = LinkState' "DELETING"
pattern LinkState_PENDING :: LinkState
pattern $bLinkState_PENDING :: LinkState
$mLinkState_PENDING :: forall r. LinkState -> (Void# -> r) -> (Void# -> r) -> r
LinkState_PENDING = LinkState' "PENDING"
pattern LinkState_UPDATING :: LinkState
pattern $bLinkState_UPDATING :: LinkState
$mLinkState_UPDATING :: forall r. LinkState -> (Void# -> r) -> (Void# -> r) -> r
LinkState_UPDATING = LinkState' "UPDATING"
{-# COMPLETE
LinkState_AVAILABLE,
LinkState_DELETING,
LinkState_PENDING,
LinkState_UPDATING,
LinkState'
#-}