{-# 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.AccountLimitName
-- 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.AccountLimitName
  ( AccountLimitName
      ( ..,
        AccountLimitName_CONFIGURATION_SETS,
        AccountLimitName_OPT_OUT_LISTS,
        AccountLimitName_PHONE_NUMBERS,
        AccountLimitName_POOLS
      ),
  )
where

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

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

pattern AccountLimitName_CONFIGURATION_SETS :: AccountLimitName
pattern $bAccountLimitName_CONFIGURATION_SETS :: AccountLimitName
$mAccountLimitName_CONFIGURATION_SETS :: forall {r}. AccountLimitName -> ((# #) -> r) -> ((# #) -> r) -> r
AccountLimitName_CONFIGURATION_SETS = AccountLimitName' "CONFIGURATION_SETS"

pattern AccountLimitName_OPT_OUT_LISTS :: AccountLimitName
pattern $bAccountLimitName_OPT_OUT_LISTS :: AccountLimitName
$mAccountLimitName_OPT_OUT_LISTS :: forall {r}. AccountLimitName -> ((# #) -> r) -> ((# #) -> r) -> r
AccountLimitName_OPT_OUT_LISTS = AccountLimitName' "OPT_OUT_LISTS"

pattern AccountLimitName_PHONE_NUMBERS :: AccountLimitName
pattern $bAccountLimitName_PHONE_NUMBERS :: AccountLimitName
$mAccountLimitName_PHONE_NUMBERS :: forall {r}. AccountLimitName -> ((# #) -> r) -> ((# #) -> r) -> r
AccountLimitName_PHONE_NUMBERS = AccountLimitName' "PHONE_NUMBERS"

pattern AccountLimitName_POOLS :: AccountLimitName
pattern $bAccountLimitName_POOLS :: AccountLimitName
$mAccountLimitName_POOLS :: forall {r}. AccountLimitName -> ((# #) -> r) -> ((# #) -> r) -> r
AccountLimitName_POOLS = AccountLimitName' "POOLS"

{-# COMPLETE
  AccountLimitName_CONFIGURATION_SETS,
  AccountLimitName_OPT_OUT_LISTS,
  AccountLimitName_PHONE_NUMBERS,
  AccountLimitName_POOLS,
  AccountLimitName'
  #-}