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