{-# 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.PinpointSmsVoiceV2.Types.KeywordAction
-- 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.PinpointSmsVoiceV2.Types.KeywordAction
  ( KeywordAction
      ( ..,
        KeywordAction_AUTOMATIC_RESPONSE,
        KeywordAction_OPT_IN,
        KeywordAction_OPT_OUT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype KeywordAction = KeywordAction'
  { KeywordAction -> Text
fromKeywordAction ::
      Data.Text
  }
  deriving stock
    ( Int -> KeywordAction -> ShowS
[KeywordAction] -> ShowS
KeywordAction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KeywordAction] -> ShowS
$cshowList :: [KeywordAction] -> ShowS
show :: KeywordAction -> String
$cshow :: KeywordAction -> String
showsPrec :: Int -> KeywordAction -> ShowS
$cshowsPrec :: Int -> KeywordAction -> ShowS
Prelude.Show,
      ReadPrec [KeywordAction]
ReadPrec KeywordAction
Int -> ReadS KeywordAction
ReadS [KeywordAction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KeywordAction]
$creadListPrec :: ReadPrec [KeywordAction]
readPrec :: ReadPrec KeywordAction
$creadPrec :: ReadPrec KeywordAction
readList :: ReadS [KeywordAction]
$creadList :: ReadS [KeywordAction]
readsPrec :: Int -> ReadS KeywordAction
$creadsPrec :: Int -> ReadS KeywordAction
Prelude.Read,
      KeywordAction -> KeywordAction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KeywordAction -> KeywordAction -> Bool
$c/= :: KeywordAction -> KeywordAction -> Bool
== :: KeywordAction -> KeywordAction -> Bool
$c== :: KeywordAction -> KeywordAction -> Bool
Prelude.Eq,
      Eq KeywordAction
KeywordAction -> KeywordAction -> Bool
KeywordAction -> KeywordAction -> Ordering
KeywordAction -> KeywordAction -> KeywordAction
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 :: KeywordAction -> KeywordAction -> KeywordAction
$cmin :: KeywordAction -> KeywordAction -> KeywordAction
max :: KeywordAction -> KeywordAction -> KeywordAction
$cmax :: KeywordAction -> KeywordAction -> KeywordAction
>= :: KeywordAction -> KeywordAction -> Bool
$c>= :: KeywordAction -> KeywordAction -> Bool
> :: KeywordAction -> KeywordAction -> Bool
$c> :: KeywordAction -> KeywordAction -> Bool
<= :: KeywordAction -> KeywordAction -> Bool
$c<= :: KeywordAction -> KeywordAction -> Bool
< :: KeywordAction -> KeywordAction -> Bool
$c< :: KeywordAction -> KeywordAction -> Bool
compare :: KeywordAction -> KeywordAction -> Ordering
$ccompare :: KeywordAction -> KeywordAction -> Ordering
Prelude.Ord,
      forall x. Rep KeywordAction x -> KeywordAction
forall x. KeywordAction -> Rep KeywordAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep KeywordAction x -> KeywordAction
$cfrom :: forall x. KeywordAction -> Rep KeywordAction x
Prelude.Generic
    )
  deriving newtype
    ( Eq KeywordAction
Int -> KeywordAction -> Int
KeywordAction -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: KeywordAction -> Int
$chash :: KeywordAction -> Int
hashWithSalt :: Int -> KeywordAction -> Int
$chashWithSalt :: Int -> KeywordAction -> Int
Prelude.Hashable,
      KeywordAction -> ()
forall a. (a -> ()) -> NFData a
rnf :: KeywordAction -> ()
$crnf :: KeywordAction -> ()
Prelude.NFData,
      Text -> Either String KeywordAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String KeywordAction
$cfromText :: Text -> Either String KeywordAction
Data.FromText,
      KeywordAction -> Text
forall a. (a -> Text) -> ToText a
toText :: KeywordAction -> Text
$ctoText :: KeywordAction -> Text
Data.ToText,
      KeywordAction -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: KeywordAction -> ByteString
$ctoBS :: KeywordAction -> ByteString
Data.ToByteString,
      KeywordAction -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: KeywordAction -> ByteStringBuilder
$cbuild :: KeywordAction -> ByteStringBuilder
Data.ToLog,
      HeaderName -> KeywordAction -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> KeywordAction -> [Header]
$ctoHeader :: HeaderName -> KeywordAction -> [Header]
Data.ToHeader,
      KeywordAction -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: KeywordAction -> QueryString
$ctoQuery :: KeywordAction -> QueryString
Data.ToQuery,
      Value -> Parser [KeywordAction]
Value -> Parser KeywordAction
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [KeywordAction]
$cparseJSONList :: Value -> Parser [KeywordAction]
parseJSON :: Value -> Parser KeywordAction
$cparseJSON :: Value -> Parser KeywordAction
Data.FromJSON,
      FromJSONKeyFunction [KeywordAction]
FromJSONKeyFunction KeywordAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [KeywordAction]
$cfromJSONKeyList :: FromJSONKeyFunction [KeywordAction]
fromJSONKey :: FromJSONKeyFunction KeywordAction
$cfromJSONKey :: FromJSONKeyFunction KeywordAction
Data.FromJSONKey,
      [KeywordAction] -> Encoding
[KeywordAction] -> Value
KeywordAction -> Encoding
KeywordAction -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [KeywordAction] -> Encoding
$ctoEncodingList :: [KeywordAction] -> Encoding
toJSONList :: [KeywordAction] -> Value
$ctoJSONList :: [KeywordAction] -> Value
toEncoding :: KeywordAction -> Encoding
$ctoEncoding :: KeywordAction -> Encoding
toJSON :: KeywordAction -> Value
$ctoJSON :: KeywordAction -> Value
Data.ToJSON,
      ToJSONKeyFunction [KeywordAction]
ToJSONKeyFunction KeywordAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [KeywordAction]
$ctoJSONKeyList :: ToJSONKeyFunction [KeywordAction]
toJSONKey :: ToJSONKeyFunction KeywordAction
$ctoJSONKey :: ToJSONKeyFunction KeywordAction
Data.ToJSONKey,
      [Node] -> Either String KeywordAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String KeywordAction
$cparseXML :: [Node] -> Either String KeywordAction
Data.FromXML,
      KeywordAction -> XML
forall a. (a -> XML) -> ToXML a
toXML :: KeywordAction -> XML
$ctoXML :: KeywordAction -> XML
Data.ToXML
    )

pattern KeywordAction_AUTOMATIC_RESPONSE :: KeywordAction
pattern $bKeywordAction_AUTOMATIC_RESPONSE :: KeywordAction
$mKeywordAction_AUTOMATIC_RESPONSE :: forall {r}. KeywordAction -> ((# #) -> r) -> ((# #) -> r) -> r
KeywordAction_AUTOMATIC_RESPONSE = KeywordAction' "AUTOMATIC_RESPONSE"

pattern KeywordAction_OPT_IN :: KeywordAction
pattern $bKeywordAction_OPT_IN :: KeywordAction
$mKeywordAction_OPT_IN :: forall {r}. KeywordAction -> ((# #) -> r) -> ((# #) -> r) -> r
KeywordAction_OPT_IN = KeywordAction' "OPT_IN"

pattern KeywordAction_OPT_OUT :: KeywordAction
pattern $bKeywordAction_OPT_OUT :: KeywordAction
$mKeywordAction_OPT_OUT :: forall {r}. KeywordAction -> ((# #) -> r) -> ((# #) -> r) -> r
KeywordAction_OPT_OUT = KeywordAction' "OPT_OUT"

{-# COMPLETE
  KeywordAction_AUTOMATIC_RESPONSE,
  KeywordAction_OPT_IN,
  KeywordAction_OPT_OUT,
  KeywordAction'
  #-}