{-# 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.DestinationCountryParameterKey
-- 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.DestinationCountryParameterKey
  ( DestinationCountryParameterKey
      ( ..,
        DestinationCountryParameterKey_IN_ENTITY_ID,
        DestinationCountryParameterKey_IN_TEMPLATE_ID
      ),
  )
where

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

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

pattern DestinationCountryParameterKey_IN_ENTITY_ID :: DestinationCountryParameterKey
pattern $bDestinationCountryParameterKey_IN_ENTITY_ID :: DestinationCountryParameterKey
$mDestinationCountryParameterKey_IN_ENTITY_ID :: forall {r}.
DestinationCountryParameterKey -> ((# #) -> r) -> ((# #) -> r) -> r
DestinationCountryParameterKey_IN_ENTITY_ID = DestinationCountryParameterKey' "IN_ENTITY_ID"

pattern DestinationCountryParameterKey_IN_TEMPLATE_ID :: DestinationCountryParameterKey
pattern $bDestinationCountryParameterKey_IN_TEMPLATE_ID :: DestinationCountryParameterKey
$mDestinationCountryParameterKey_IN_TEMPLATE_ID :: forall {r}.
DestinationCountryParameterKey -> ((# #) -> r) -> ((# #) -> r) -> r
DestinationCountryParameterKey_IN_TEMPLATE_ID = DestinationCountryParameterKey' "IN_TEMPLATE_ID"

{-# COMPLETE
  DestinationCountryParameterKey_IN_ENTITY_ID,
  DestinationCountryParameterKey_IN_TEMPLATE_ID,
  DestinationCountryParameterKey'
  #-}