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