{-# 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.DeviceConnectionStatus
( DeviceConnectionStatus
( ..,
DeviceConnectionStatus_AWAITING_CREDENTIALS,
DeviceConnectionStatus_ERROR,
DeviceConnectionStatus_NOT_AVAILABLE,
DeviceConnectionStatus_OFFLINE,
DeviceConnectionStatus_ONLINE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DeviceConnectionStatus = DeviceConnectionStatus'
{ DeviceConnectionStatus -> Text
fromDeviceConnectionStatus ::
Core.Text
}
deriving stock
( Int -> DeviceConnectionStatus -> ShowS
[DeviceConnectionStatus] -> ShowS
DeviceConnectionStatus -> String
(Int -> DeviceConnectionStatus -> ShowS)
-> (DeviceConnectionStatus -> String)
-> ([DeviceConnectionStatus] -> ShowS)
-> Show DeviceConnectionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeviceConnectionStatus] -> ShowS
$cshowList :: [DeviceConnectionStatus] -> ShowS
show :: DeviceConnectionStatus -> String
$cshow :: DeviceConnectionStatus -> String
showsPrec :: Int -> DeviceConnectionStatus -> ShowS
$cshowsPrec :: Int -> DeviceConnectionStatus -> ShowS
Prelude.Show,
ReadPrec [DeviceConnectionStatus]
ReadPrec DeviceConnectionStatus
Int -> ReadS DeviceConnectionStatus
ReadS [DeviceConnectionStatus]
(Int -> ReadS DeviceConnectionStatus)
-> ReadS [DeviceConnectionStatus]
-> ReadPrec DeviceConnectionStatus
-> ReadPrec [DeviceConnectionStatus]
-> Read DeviceConnectionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeviceConnectionStatus]
$creadListPrec :: ReadPrec [DeviceConnectionStatus]
readPrec :: ReadPrec DeviceConnectionStatus
$creadPrec :: ReadPrec DeviceConnectionStatus
readList :: ReadS [DeviceConnectionStatus]
$creadList :: ReadS [DeviceConnectionStatus]
readsPrec :: Int -> ReadS DeviceConnectionStatus
$creadsPrec :: Int -> ReadS DeviceConnectionStatus
Prelude.Read,
DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
(DeviceConnectionStatus -> DeviceConnectionStatus -> Bool)
-> (DeviceConnectionStatus -> DeviceConnectionStatus -> Bool)
-> Eq DeviceConnectionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
$c/= :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
== :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
$c== :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
Prelude.Eq,
Eq DeviceConnectionStatus
Eq DeviceConnectionStatus
-> (DeviceConnectionStatus -> DeviceConnectionStatus -> Ordering)
-> (DeviceConnectionStatus -> DeviceConnectionStatus -> Bool)
-> (DeviceConnectionStatus -> DeviceConnectionStatus -> Bool)
-> (DeviceConnectionStatus -> DeviceConnectionStatus -> Bool)
-> (DeviceConnectionStatus -> DeviceConnectionStatus -> Bool)
-> (DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus)
-> (DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus)
-> Ord DeviceConnectionStatus
DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
DeviceConnectionStatus -> DeviceConnectionStatus -> Ordering
DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus
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 :: DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus
$cmin :: DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus
max :: DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus
$cmax :: DeviceConnectionStatus
-> DeviceConnectionStatus -> DeviceConnectionStatus
>= :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
$c>= :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
> :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
$c> :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
<= :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
$c<= :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
< :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
$c< :: DeviceConnectionStatus -> DeviceConnectionStatus -> Bool
compare :: DeviceConnectionStatus -> DeviceConnectionStatus -> Ordering
$ccompare :: DeviceConnectionStatus -> DeviceConnectionStatus -> Ordering
$cp1Ord :: Eq DeviceConnectionStatus
Prelude.Ord,
(forall x. DeviceConnectionStatus -> Rep DeviceConnectionStatus x)
-> (forall x.
Rep DeviceConnectionStatus x -> DeviceConnectionStatus)
-> Generic DeviceConnectionStatus
forall x. Rep DeviceConnectionStatus x -> DeviceConnectionStatus
forall x. DeviceConnectionStatus -> Rep DeviceConnectionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeviceConnectionStatus x -> DeviceConnectionStatus
$cfrom :: forall x. DeviceConnectionStatus -> Rep DeviceConnectionStatus x
Prelude.Generic
)
deriving newtype
( Int -> DeviceConnectionStatus -> Int
DeviceConnectionStatus -> Int
(Int -> DeviceConnectionStatus -> Int)
-> (DeviceConnectionStatus -> Int)
-> Hashable DeviceConnectionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DeviceConnectionStatus -> Int
$chash :: DeviceConnectionStatus -> Int
hashWithSalt :: Int -> DeviceConnectionStatus -> Int
$chashWithSalt :: Int -> DeviceConnectionStatus -> Int
Prelude.Hashable,
DeviceConnectionStatus -> ()
(DeviceConnectionStatus -> ()) -> NFData DeviceConnectionStatus
forall a. (a -> ()) -> NFData a
rnf :: DeviceConnectionStatus -> ()
$crnf :: DeviceConnectionStatus -> ()
Prelude.NFData,
Text -> Either String DeviceConnectionStatus
(Text -> Either String DeviceConnectionStatus)
-> FromText DeviceConnectionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceConnectionStatus
$cfromText :: Text -> Either String DeviceConnectionStatus
Core.FromText,
DeviceConnectionStatus -> Text
(DeviceConnectionStatus -> Text) -> ToText DeviceConnectionStatus
forall a. (a -> Text) -> ToText a
toText :: DeviceConnectionStatus -> Text
$ctoText :: DeviceConnectionStatus -> Text
Core.ToText,
DeviceConnectionStatus -> ByteString
(DeviceConnectionStatus -> ByteString)
-> ToByteString DeviceConnectionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceConnectionStatus -> ByteString
$ctoBS :: DeviceConnectionStatus -> ByteString
Core.ToByteString,
DeviceConnectionStatus -> ByteStringBuilder
(DeviceConnectionStatus -> ByteStringBuilder)
-> ToLog DeviceConnectionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceConnectionStatus -> ByteStringBuilder
$cbuild :: DeviceConnectionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> DeviceConnectionStatus -> [Header]
(HeaderName -> DeviceConnectionStatus -> [Header])
-> ToHeader DeviceConnectionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceConnectionStatus -> [Header]
$ctoHeader :: HeaderName -> DeviceConnectionStatus -> [Header]
Core.ToHeader,
DeviceConnectionStatus -> QueryString
(DeviceConnectionStatus -> QueryString)
-> ToQuery DeviceConnectionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceConnectionStatus -> QueryString
$ctoQuery :: DeviceConnectionStatus -> QueryString
Core.ToQuery,
Value -> Parser [DeviceConnectionStatus]
Value -> Parser DeviceConnectionStatus
(Value -> Parser DeviceConnectionStatus)
-> (Value -> Parser [DeviceConnectionStatus])
-> FromJSON DeviceConnectionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DeviceConnectionStatus]
$cparseJSONList :: Value -> Parser [DeviceConnectionStatus]
parseJSON :: Value -> Parser DeviceConnectionStatus
$cparseJSON :: Value -> Parser DeviceConnectionStatus
Core.FromJSON,
FromJSONKeyFunction [DeviceConnectionStatus]
FromJSONKeyFunction DeviceConnectionStatus
FromJSONKeyFunction DeviceConnectionStatus
-> FromJSONKeyFunction [DeviceConnectionStatus]
-> FromJSONKey DeviceConnectionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceConnectionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceConnectionStatus]
fromJSONKey :: FromJSONKeyFunction DeviceConnectionStatus
$cfromJSONKey :: FromJSONKeyFunction DeviceConnectionStatus
Core.FromJSONKey,
[DeviceConnectionStatus] -> Encoding
[DeviceConnectionStatus] -> Value
DeviceConnectionStatus -> Encoding
DeviceConnectionStatus -> Value
(DeviceConnectionStatus -> Value)
-> (DeviceConnectionStatus -> Encoding)
-> ([DeviceConnectionStatus] -> Value)
-> ([DeviceConnectionStatus] -> Encoding)
-> ToJSON DeviceConnectionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DeviceConnectionStatus] -> Encoding
$ctoEncodingList :: [DeviceConnectionStatus] -> Encoding
toJSONList :: [DeviceConnectionStatus] -> Value
$ctoJSONList :: [DeviceConnectionStatus] -> Value
toEncoding :: DeviceConnectionStatus -> Encoding
$ctoEncoding :: DeviceConnectionStatus -> Encoding
toJSON :: DeviceConnectionStatus -> Value
$ctoJSON :: DeviceConnectionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [DeviceConnectionStatus]
ToJSONKeyFunction DeviceConnectionStatus
ToJSONKeyFunction DeviceConnectionStatus
-> ToJSONKeyFunction [DeviceConnectionStatus]
-> ToJSONKey DeviceConnectionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceConnectionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceConnectionStatus]
toJSONKey :: ToJSONKeyFunction DeviceConnectionStatus
$ctoJSONKey :: ToJSONKeyFunction DeviceConnectionStatus
Core.ToJSONKey,
[Node] -> Either String DeviceConnectionStatus
([Node] -> Either String DeviceConnectionStatus)
-> FromXML DeviceConnectionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceConnectionStatus
$cparseXML :: [Node] -> Either String DeviceConnectionStatus
Core.FromXML,
DeviceConnectionStatus -> XML
(DeviceConnectionStatus -> XML) -> ToXML DeviceConnectionStatus
forall a. (a -> XML) -> ToXML a
toXML :: DeviceConnectionStatus -> XML
$ctoXML :: DeviceConnectionStatus -> XML
Core.ToXML
)
pattern DeviceConnectionStatus_AWAITING_CREDENTIALS :: DeviceConnectionStatus
pattern $bDeviceConnectionStatus_AWAITING_CREDENTIALS :: DeviceConnectionStatus
$mDeviceConnectionStatus_AWAITING_CREDENTIALS :: forall r.
DeviceConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceConnectionStatus_AWAITING_CREDENTIALS = DeviceConnectionStatus' "AWAITING_CREDENTIALS"
pattern DeviceConnectionStatus_ERROR :: DeviceConnectionStatus
pattern $bDeviceConnectionStatus_ERROR :: DeviceConnectionStatus
$mDeviceConnectionStatus_ERROR :: forall r.
DeviceConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceConnectionStatus_ERROR = DeviceConnectionStatus' "ERROR"
pattern DeviceConnectionStatus_NOT_AVAILABLE :: DeviceConnectionStatus
pattern $bDeviceConnectionStatus_NOT_AVAILABLE :: DeviceConnectionStatus
$mDeviceConnectionStatus_NOT_AVAILABLE :: forall r.
DeviceConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceConnectionStatus_NOT_AVAILABLE = DeviceConnectionStatus' "NOT_AVAILABLE"
pattern DeviceConnectionStatus_OFFLINE :: DeviceConnectionStatus
pattern $bDeviceConnectionStatus_OFFLINE :: DeviceConnectionStatus
$mDeviceConnectionStatus_OFFLINE :: forall r.
DeviceConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceConnectionStatus_OFFLINE = DeviceConnectionStatus' "OFFLINE"
pattern DeviceConnectionStatus_ONLINE :: DeviceConnectionStatus
pattern $bDeviceConnectionStatus_ONLINE :: DeviceConnectionStatus
$mDeviceConnectionStatus_ONLINE :: forall r.
DeviceConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceConnectionStatus_ONLINE = DeviceConnectionStatus' "ONLINE"
{-# COMPLETE
DeviceConnectionStatus_AWAITING_CREDENTIALS,
DeviceConnectionStatus_ERROR,
DeviceConnectionStatus_NOT_AVAILABLE,
DeviceConnectionStatus_OFFLINE,
DeviceConnectionStatus_ONLINE,
DeviceConnectionStatus'
#-}