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