{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.PrivateNetworks.Types.NetworkStatus
( NetworkStatus
( ..,
NetworkStatus_AVAILABLE,
NetworkStatus_CREATED,
NetworkStatus_DELETED,
NetworkStatus_DEPROVISIONING,
NetworkStatus_PROVISIONING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype NetworkStatus = NetworkStatus'
{ NetworkStatus -> Text
fromNetworkStatus ::
Data.Text
}
deriving stock
( Int -> NetworkStatus -> ShowS
[NetworkStatus] -> ShowS
NetworkStatus -> String
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]
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
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
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
Prelude.Ord,
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
( Eq NetworkStatus
Int -> NetworkStatus -> Int
NetworkStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: NetworkStatus -> ()
$crnf :: NetworkStatus -> ()
Prelude.NFData,
Text -> Either String NetworkStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NetworkStatus
$cfromText :: Text -> Either String NetworkStatus
Data.FromText,
NetworkStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: NetworkStatus -> Text
$ctoText :: NetworkStatus -> Text
Data.ToText,
NetworkStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: NetworkStatus -> ByteString
$ctoBS :: NetworkStatus -> ByteString
Data.ToByteString,
NetworkStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NetworkStatus -> ByteStringBuilder
$cbuild :: NetworkStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> NetworkStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NetworkStatus -> [Header]
$ctoHeader :: HeaderName -> NetworkStatus -> [Header]
Data.ToHeader,
NetworkStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NetworkStatus -> QueryString
$ctoQuery :: NetworkStatus -> QueryString
Data.ToQuery,
Value -> Parser [NetworkStatus]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [NetworkStatus]
FromJSONKeyFunction NetworkStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NetworkStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [NetworkStatus]
fromJSONKey :: FromJSONKeyFunction NetworkStatus
$cfromJSONKey :: FromJSONKeyFunction NetworkStatus
Data.FromJSONKey,
[NetworkStatus] -> Encoding
[NetworkStatus] -> Value
NetworkStatus -> Encoding
NetworkStatus -> Value
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
Data.ToJSON,
ToJSONKeyFunction [NetworkStatus]
ToJSONKeyFunction NetworkStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NetworkStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [NetworkStatus]
toJSONKey :: ToJSONKeyFunction NetworkStatus
$ctoJSONKey :: ToJSONKeyFunction NetworkStatus
Data.ToJSONKey,
[Node] -> Either String NetworkStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NetworkStatus
$cparseXML :: [Node] -> Either String NetworkStatus
Data.FromXML,
NetworkStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: NetworkStatus -> XML
$ctoXML :: NetworkStatus -> XML
Data.ToXML
)
pattern NetworkStatus_AVAILABLE :: NetworkStatus
pattern $bNetworkStatus_AVAILABLE :: NetworkStatus
$mNetworkStatus_AVAILABLE :: forall {r}. NetworkStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkStatus_AVAILABLE = NetworkStatus' "AVAILABLE"
pattern NetworkStatus_CREATED :: NetworkStatus
pattern $bNetworkStatus_CREATED :: NetworkStatus
$mNetworkStatus_CREATED :: forall {r}. NetworkStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkStatus_CREATED = NetworkStatus' "CREATED"
pattern NetworkStatus_DELETED :: NetworkStatus
pattern $bNetworkStatus_DELETED :: NetworkStatus
$mNetworkStatus_DELETED :: forall {r}. NetworkStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkStatus_DELETED = NetworkStatus' "DELETED"
pattern NetworkStatus_DEPROVISIONING :: NetworkStatus
pattern $bNetworkStatus_DEPROVISIONING :: NetworkStatus
$mNetworkStatus_DEPROVISIONING :: forall {r}. NetworkStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkStatus_DEPROVISIONING = NetworkStatus' "DEPROVISIONING"
pattern NetworkStatus_PROVISIONING :: NetworkStatus
pattern $bNetworkStatus_PROVISIONING :: NetworkStatus
$mNetworkStatus_PROVISIONING :: forall {r}. NetworkStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkStatus_PROVISIONING = NetworkStatus' "PROVISIONING"
{-# COMPLETE
NetworkStatus_AVAILABLE,
NetworkStatus_CREATED,
NetworkStatus_DELETED,
NetworkStatus_DEPROVISIONING,
NetworkStatus_PROVISIONING,
NetworkStatus'
#-}