{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTEventsData.Types.CustomerActionName
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CustomerActionName = CustomerActionName'
  { CustomerActionName -> Text
fromCustomerActionName ::
      Data.Text
  }
  deriving stock
    ( Int -> CustomerActionName -> ShowS
[CustomerActionName] -> ShowS
CustomerActionName -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CustomerActionName
Int -> CustomerActionName -> Int
CustomerActionName -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CustomerActionName -> ()
$crnf :: CustomerActionName -> ()
Prelude.NFData,
      Text -> Either String CustomerActionName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CustomerActionName
$cfromText :: Text -> Either String CustomerActionName
Data.FromText,
      CustomerActionName -> Text
forall a. (a -> Text) -> ToText a
toText :: CustomerActionName -> Text
$ctoText :: CustomerActionName -> Text
Data.ToText,
      CustomerActionName -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CustomerActionName -> ByteString
$ctoBS :: CustomerActionName -> ByteString
Data.ToByteString,
      CustomerActionName -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CustomerActionName -> ByteStringBuilder
$cbuild :: CustomerActionName -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CustomerActionName -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CustomerActionName -> [Header]
$ctoHeader :: HeaderName -> CustomerActionName -> [Header]
Data.ToHeader,
      CustomerActionName -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CustomerActionName -> QueryString
$ctoQuery :: CustomerActionName -> QueryString
Data.ToQuery,
      Value -> Parser [CustomerActionName]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CustomerActionName]
FromJSONKeyFunction CustomerActionName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CustomerActionName]
$cfromJSONKeyList :: FromJSONKeyFunction [CustomerActionName]
fromJSONKey :: FromJSONKeyFunction CustomerActionName
$cfromJSONKey :: FromJSONKeyFunction CustomerActionName
Data.FromJSONKey,
      [CustomerActionName] -> Encoding
[CustomerActionName] -> Value
CustomerActionName -> Encoding
CustomerActionName -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CustomerActionName]
ToJSONKeyFunction CustomerActionName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CustomerActionName]
$ctoJSONKeyList :: ToJSONKeyFunction [CustomerActionName]
toJSONKey :: ToJSONKeyFunction CustomerActionName
$ctoJSONKey :: ToJSONKeyFunction CustomerActionName
Data.ToJSONKey,
      [Node] -> Either String CustomerActionName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CustomerActionName
$cparseXML :: [Node] -> Either String CustomerActionName
Data.FromXML,
      CustomerActionName -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CustomerActionName -> XML
$ctoXML :: CustomerActionName -> XML
Data.ToXML
    )

pattern CustomerActionName_ACKNOWLEDGE :: CustomerActionName
pattern $bCustomerActionName_ACKNOWLEDGE :: CustomerActionName
$mCustomerActionName_ACKNOWLEDGE :: forall {r}. CustomerActionName -> ((# #) -> r) -> ((# #) -> r) -> r
CustomerActionName_ACKNOWLEDGE = CustomerActionName' "ACKNOWLEDGE"

pattern CustomerActionName_DISABLE :: CustomerActionName
pattern $bCustomerActionName_DISABLE :: CustomerActionName
$mCustomerActionName_DISABLE :: forall {r}. CustomerActionName -> ((# #) -> r) -> ((# #) -> r) -> r
CustomerActionName_DISABLE = CustomerActionName' "DISABLE"

pattern CustomerActionName_ENABLE :: CustomerActionName
pattern $bCustomerActionName_ENABLE :: CustomerActionName
$mCustomerActionName_ENABLE :: forall {r}. CustomerActionName -> ((# #) -> r) -> ((# #) -> r) -> r
CustomerActionName_ENABLE = CustomerActionName' "ENABLE"

pattern CustomerActionName_RESET :: CustomerActionName
pattern $bCustomerActionName_RESET :: CustomerActionName
$mCustomerActionName_RESET :: forall {r}. CustomerActionName -> ((# #) -> r) -> ((# #) -> r) -> r
CustomerActionName_RESET = CustomerActionName' "RESET"

pattern CustomerActionName_SNOOZE :: CustomerActionName
pattern $bCustomerActionName_SNOOZE :: CustomerActionName
$mCustomerActionName_SNOOZE :: forall {r}. CustomerActionName -> ((# #) -> r) -> ((# #) -> r) -> r
CustomerActionName_SNOOZE = CustomerActionName' "SNOOZE"

{-# COMPLETE
  CustomerActionName_ACKNOWLEDGE,
  CustomerActionName_DISABLE,
  CustomerActionName_ENABLE,
  CustomerActionName_RESET,
  CustomerActionName_SNOOZE,
  CustomerActionName'
  #-}