{-# 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.LagState
( LagState
( ..,
LagState_Available,
LagState_Deleted,
LagState_Deleting,
LagState_Down,
LagState_Pending,
LagState_Requested,
LagState_Unknown
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LagState = LagState'
{ LagState -> Text
fromLagState ::
Core.Text
}
deriving stock
( Int -> LagState -> ShowS
[LagState] -> ShowS
LagState -> String
(Int -> LagState -> ShowS)
-> (LagState -> String) -> ([LagState] -> ShowS) -> Show LagState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LagState] -> ShowS
$cshowList :: [LagState] -> ShowS
show :: LagState -> String
$cshow :: LagState -> String
showsPrec :: Int -> LagState -> ShowS
$cshowsPrec :: Int -> LagState -> ShowS
Prelude.Show,
ReadPrec [LagState]
ReadPrec LagState
Int -> ReadS LagState
ReadS [LagState]
(Int -> ReadS LagState)
-> ReadS [LagState]
-> ReadPrec LagState
-> ReadPrec [LagState]
-> Read LagState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LagState]
$creadListPrec :: ReadPrec [LagState]
readPrec :: ReadPrec LagState
$creadPrec :: ReadPrec LagState
readList :: ReadS [LagState]
$creadList :: ReadS [LagState]
readsPrec :: Int -> ReadS LagState
$creadsPrec :: Int -> ReadS LagState
Prelude.Read,
LagState -> LagState -> Bool
(LagState -> LagState -> Bool)
-> (LagState -> LagState -> Bool) -> Eq LagState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LagState -> LagState -> Bool
$c/= :: LagState -> LagState -> Bool
== :: LagState -> LagState -> Bool
$c== :: LagState -> LagState -> Bool
Prelude.Eq,
Eq LagState
Eq LagState
-> (LagState -> LagState -> Ordering)
-> (LagState -> LagState -> Bool)
-> (LagState -> LagState -> Bool)
-> (LagState -> LagState -> Bool)
-> (LagState -> LagState -> Bool)
-> (LagState -> LagState -> LagState)
-> (LagState -> LagState -> LagState)
-> Ord LagState
LagState -> LagState -> Bool
LagState -> LagState -> Ordering
LagState -> LagState -> LagState
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 :: LagState -> LagState -> LagState
$cmin :: LagState -> LagState -> LagState
max :: LagState -> LagState -> LagState
$cmax :: LagState -> LagState -> LagState
>= :: LagState -> LagState -> Bool
$c>= :: LagState -> LagState -> Bool
> :: LagState -> LagState -> Bool
$c> :: LagState -> LagState -> Bool
<= :: LagState -> LagState -> Bool
$c<= :: LagState -> LagState -> Bool
< :: LagState -> LagState -> Bool
$c< :: LagState -> LagState -> Bool
compare :: LagState -> LagState -> Ordering
$ccompare :: LagState -> LagState -> Ordering
$cp1Ord :: Eq LagState
Prelude.Ord,
(forall x. LagState -> Rep LagState x)
-> (forall x. Rep LagState x -> LagState) -> Generic LagState
forall x. Rep LagState x -> LagState
forall x. LagState -> Rep LagState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LagState x -> LagState
$cfrom :: forall x. LagState -> Rep LagState x
Prelude.Generic
)
deriving newtype
( Int -> LagState -> Int
LagState -> Int
(Int -> LagState -> Int) -> (LagState -> Int) -> Hashable LagState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LagState -> Int
$chash :: LagState -> Int
hashWithSalt :: Int -> LagState -> Int
$chashWithSalt :: Int -> LagState -> Int
Prelude.Hashable,
LagState -> ()
(LagState -> ()) -> NFData LagState
forall a. (a -> ()) -> NFData a
rnf :: LagState -> ()
$crnf :: LagState -> ()
Prelude.NFData,
Text -> Either String LagState
(Text -> Either String LagState) -> FromText LagState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LagState
$cfromText :: Text -> Either String LagState
Core.FromText,
LagState -> Text
(LagState -> Text) -> ToText LagState
forall a. (a -> Text) -> ToText a
toText :: LagState -> Text
$ctoText :: LagState -> Text
Core.ToText,
LagState -> ByteString
(LagState -> ByteString) -> ToByteString LagState
forall a. (a -> ByteString) -> ToByteString a
toBS :: LagState -> ByteString
$ctoBS :: LagState -> ByteString
Core.ToByteString,
LagState -> ByteStringBuilder
(LagState -> ByteStringBuilder) -> ToLog LagState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LagState -> ByteStringBuilder
$cbuild :: LagState -> ByteStringBuilder
Core.ToLog,
HeaderName -> LagState -> [Header]
(HeaderName -> LagState -> [Header]) -> ToHeader LagState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LagState -> [Header]
$ctoHeader :: HeaderName -> LagState -> [Header]
Core.ToHeader,
LagState -> QueryString
(LagState -> QueryString) -> ToQuery LagState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LagState -> QueryString
$ctoQuery :: LagState -> QueryString
Core.ToQuery,
Value -> Parser [LagState]
Value -> Parser LagState
(Value -> Parser LagState)
-> (Value -> Parser [LagState]) -> FromJSON LagState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LagState]
$cparseJSONList :: Value -> Parser [LagState]
parseJSON :: Value -> Parser LagState
$cparseJSON :: Value -> Parser LagState
Core.FromJSON,
FromJSONKeyFunction [LagState]
FromJSONKeyFunction LagState
FromJSONKeyFunction LagState
-> FromJSONKeyFunction [LagState] -> FromJSONKey LagState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LagState]
$cfromJSONKeyList :: FromJSONKeyFunction [LagState]
fromJSONKey :: FromJSONKeyFunction LagState
$cfromJSONKey :: FromJSONKeyFunction LagState
Core.FromJSONKey,
[LagState] -> Encoding
[LagState] -> Value
LagState -> Encoding
LagState -> Value
(LagState -> Value)
-> (LagState -> Encoding)
-> ([LagState] -> Value)
-> ([LagState] -> Encoding)
-> ToJSON LagState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LagState] -> Encoding
$ctoEncodingList :: [LagState] -> Encoding
toJSONList :: [LagState] -> Value
$ctoJSONList :: [LagState] -> Value
toEncoding :: LagState -> Encoding
$ctoEncoding :: LagState -> Encoding
toJSON :: LagState -> Value
$ctoJSON :: LagState -> Value
Core.ToJSON,
ToJSONKeyFunction [LagState]
ToJSONKeyFunction LagState
ToJSONKeyFunction LagState
-> ToJSONKeyFunction [LagState] -> ToJSONKey LagState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LagState]
$ctoJSONKeyList :: ToJSONKeyFunction [LagState]
toJSONKey :: ToJSONKeyFunction LagState
$ctoJSONKey :: ToJSONKeyFunction LagState
Core.ToJSONKey,
[Node] -> Either String LagState
([Node] -> Either String LagState) -> FromXML LagState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LagState
$cparseXML :: [Node] -> Either String LagState
Core.FromXML,
LagState -> XML
(LagState -> XML) -> ToXML LagState
forall a. (a -> XML) -> ToXML a
toXML :: LagState -> XML
$ctoXML :: LagState -> XML
Core.ToXML
)
pattern LagState_Available :: LagState
pattern $bLagState_Available :: LagState
$mLagState_Available :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Available = LagState' "available"
pattern LagState_Deleted :: LagState
pattern $bLagState_Deleted :: LagState
$mLagState_Deleted :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Deleted = LagState' "deleted"
pattern LagState_Deleting :: LagState
pattern $bLagState_Deleting :: LagState
$mLagState_Deleting :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Deleting = LagState' "deleting"
pattern LagState_Down :: LagState
pattern $bLagState_Down :: LagState
$mLagState_Down :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Down = LagState' "down"
pattern LagState_Pending :: LagState
pattern $bLagState_Pending :: LagState
$mLagState_Pending :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Pending = LagState' "pending"
pattern LagState_Requested :: LagState
pattern $bLagState_Requested :: LagState
$mLagState_Requested :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Requested = LagState' "requested"
pattern LagState_Unknown :: LagState
pattern $bLagState_Unknown :: LagState
$mLagState_Unknown :: forall r. LagState -> (Void# -> r) -> (Void# -> r) -> r
LagState_Unknown = LagState' "unknown"
{-# COMPLETE
LagState_Available,
LagState_Deleted,
LagState_Deleting,
LagState_Down,
LagState_Pending,
LagState_Requested,
LagState_Unknown,
LagState'
#-}