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