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