{-# 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.OptedOutFilterName
-- 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.OptedOutFilterName
  ( OptedOutFilterName
      ( ..,
        OptedOutFilterName_End_user_opted_out
      ),
  )
where

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

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

pattern OptedOutFilterName_End_user_opted_out :: OptedOutFilterName
pattern $bOptedOutFilterName_End_user_opted_out :: OptedOutFilterName
$mOptedOutFilterName_End_user_opted_out :: forall {r}. OptedOutFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
OptedOutFilterName_End_user_opted_out = OptedOutFilterName' "end-user-opted-out"

{-# COMPLETE
  OptedOutFilterName_End_user_opted_out,
  OptedOutFilterName'
  #-}