{-# 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.PoolFilterName
-- 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.PoolFilterName
  ( PoolFilterName
      ( ..,
        PoolFilterName_Deletion_protection_enabled,
        PoolFilterName_Message_type,
        PoolFilterName_Opt_out_list_name,
        PoolFilterName_Self_managed_opt_outs_enabled,
        PoolFilterName_Shared_routes_enabled,
        PoolFilterName_Status,
        PoolFilterName_Two_way_enabled
      ),
  )
where

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

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

pattern PoolFilterName_Deletion_protection_enabled :: PoolFilterName
pattern $bPoolFilterName_Deletion_protection_enabled :: PoolFilterName
$mPoolFilterName_Deletion_protection_enabled :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Deletion_protection_enabled = PoolFilterName' "deletion-protection-enabled"

pattern PoolFilterName_Message_type :: PoolFilterName
pattern $bPoolFilterName_Message_type :: PoolFilterName
$mPoolFilterName_Message_type :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Message_type = PoolFilterName' "message-type"

pattern PoolFilterName_Opt_out_list_name :: PoolFilterName
pattern $bPoolFilterName_Opt_out_list_name :: PoolFilterName
$mPoolFilterName_Opt_out_list_name :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Opt_out_list_name = PoolFilterName' "opt-out-list-name"

pattern PoolFilterName_Self_managed_opt_outs_enabled :: PoolFilterName
pattern $bPoolFilterName_Self_managed_opt_outs_enabled :: PoolFilterName
$mPoolFilterName_Self_managed_opt_outs_enabled :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Self_managed_opt_outs_enabled = PoolFilterName' "self-managed-opt-outs-enabled"

pattern PoolFilterName_Shared_routes_enabled :: PoolFilterName
pattern $bPoolFilterName_Shared_routes_enabled :: PoolFilterName
$mPoolFilterName_Shared_routes_enabled :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Shared_routes_enabled = PoolFilterName' "shared-routes-enabled"

pattern PoolFilterName_Status :: PoolFilterName
pattern $bPoolFilterName_Status :: PoolFilterName
$mPoolFilterName_Status :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Status = PoolFilterName' "status"

pattern PoolFilterName_Two_way_enabled :: PoolFilterName
pattern $bPoolFilterName_Two_way_enabled :: PoolFilterName
$mPoolFilterName_Two_way_enabled :: forall {r}. PoolFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
PoolFilterName_Two_way_enabled = PoolFilterName' "two-way-enabled"

{-# COMPLETE
  PoolFilterName_Deletion_protection_enabled,
  PoolFilterName_Message_type,
  PoolFilterName_Opt_out_list_name,
  PoolFilterName_Self_managed_opt_outs_enabled,
  PoolFilterName_Shared_routes_enabled,
  PoolFilterName_Status,
  PoolFilterName_Two_way_enabled,
  PoolFilterName'
  #-}