{-# 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.KeywordFilterName
-- 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.KeywordFilterName
  ( KeywordFilterName
      ( ..,
        KeywordFilterName_Keyword_action
      ),
  )
where

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

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

pattern KeywordFilterName_Keyword_action :: KeywordFilterName
pattern $bKeywordFilterName_Keyword_action :: KeywordFilterName
$mKeywordFilterName_Keyword_action :: forall {r}. KeywordFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
KeywordFilterName_Keyword_action = KeywordFilterName' "keyword-action"

{-# COMPLETE
  KeywordFilterName_Keyword_action,
  KeywordFilterName'
  #-}