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