{-# 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.ChimeSdkVoice.Types.PhoneNumberAssociationName
-- 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.ChimeSdkVoice.Types.PhoneNumberAssociationName
  ( PhoneNumberAssociationName
      ( ..,
        PhoneNumberAssociationName_SipRuleId,
        PhoneNumberAssociationName_VoiceConnectorGroupId,
        PhoneNumberAssociationName_VoiceConnectorId
      ),
  )
where

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

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

pattern PhoneNumberAssociationName_SipRuleId :: PhoneNumberAssociationName
pattern $bPhoneNumberAssociationName_SipRuleId :: PhoneNumberAssociationName
$mPhoneNumberAssociationName_SipRuleId :: forall {r}.
PhoneNumberAssociationName -> ((# #) -> r) -> ((# #) -> r) -> r
PhoneNumberAssociationName_SipRuleId = PhoneNumberAssociationName' "SipRuleId"

pattern PhoneNumberAssociationName_VoiceConnectorGroupId :: PhoneNumberAssociationName
pattern $bPhoneNumberAssociationName_VoiceConnectorGroupId :: PhoneNumberAssociationName
$mPhoneNumberAssociationName_VoiceConnectorGroupId :: forall {r}.
PhoneNumberAssociationName -> ((# #) -> r) -> ((# #) -> r) -> r
PhoneNumberAssociationName_VoiceConnectorGroupId = PhoneNumberAssociationName' "VoiceConnectorGroupId"

pattern PhoneNumberAssociationName_VoiceConnectorId :: PhoneNumberAssociationName
pattern $bPhoneNumberAssociationName_VoiceConnectorId :: PhoneNumberAssociationName
$mPhoneNumberAssociationName_VoiceConnectorId :: forall {r}.
PhoneNumberAssociationName -> ((# #) -> r) -> ((# #) -> r) -> r
PhoneNumberAssociationName_VoiceConnectorId = PhoneNumberAssociationName' "VoiceConnectorId"

{-# COMPLETE
  PhoneNumberAssociationName_SipRuleId,
  PhoneNumberAssociationName_VoiceConnectorGroupId,
  PhoneNumberAssociationName_VoiceConnectorId,
  PhoneNumberAssociationName'
  #-}