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