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