{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Chime.Types.PhoneNumberProductType
( PhoneNumberProductType
( ..,
PhoneNumberProductType_BusinessCalling,
PhoneNumberProductType_SipMediaApplicationDialIn,
PhoneNumberProductType_VoiceConnector
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PhoneNumberProductType = PhoneNumberProductType'
{ PhoneNumberProductType -> Text
fromPhoneNumberProductType ::
Core.Text
}
deriving stock
( Int -> PhoneNumberProductType -> ShowS
[PhoneNumberProductType] -> ShowS
PhoneNumberProductType -> String
(Int -> PhoneNumberProductType -> ShowS)
-> (PhoneNumberProductType -> String)
-> ([PhoneNumberProductType] -> ShowS)
-> Show PhoneNumberProductType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PhoneNumberProductType] -> ShowS
$cshowList :: [PhoneNumberProductType] -> ShowS
show :: PhoneNumberProductType -> String
$cshow :: PhoneNumberProductType -> String
showsPrec :: Int -> PhoneNumberProductType -> ShowS
$cshowsPrec :: Int -> PhoneNumberProductType -> ShowS
Prelude.Show,
ReadPrec [PhoneNumberProductType]
ReadPrec PhoneNumberProductType
Int -> ReadS PhoneNumberProductType
ReadS [PhoneNumberProductType]
(Int -> ReadS PhoneNumberProductType)
-> ReadS [PhoneNumberProductType]
-> ReadPrec PhoneNumberProductType
-> ReadPrec [PhoneNumberProductType]
-> Read PhoneNumberProductType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PhoneNumberProductType]
$creadListPrec :: ReadPrec [PhoneNumberProductType]
readPrec :: ReadPrec PhoneNumberProductType
$creadPrec :: ReadPrec PhoneNumberProductType
readList :: ReadS [PhoneNumberProductType]
$creadList :: ReadS [PhoneNumberProductType]
readsPrec :: Int -> ReadS PhoneNumberProductType
$creadsPrec :: Int -> ReadS PhoneNumberProductType
Prelude.Read,
PhoneNumberProductType -> PhoneNumberProductType -> Bool
(PhoneNumberProductType -> PhoneNumberProductType -> Bool)
-> (PhoneNumberProductType -> PhoneNumberProductType -> Bool)
-> Eq PhoneNumberProductType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
$c/= :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
== :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
$c== :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
Prelude.Eq,
Eq PhoneNumberProductType
Eq PhoneNumberProductType
-> (PhoneNumberProductType -> PhoneNumberProductType -> Ordering)
-> (PhoneNumberProductType -> PhoneNumberProductType -> Bool)
-> (PhoneNumberProductType -> PhoneNumberProductType -> Bool)
-> (PhoneNumberProductType -> PhoneNumberProductType -> Bool)
-> (PhoneNumberProductType -> PhoneNumberProductType -> Bool)
-> (PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType)
-> (PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType)
-> Ord PhoneNumberProductType
PhoneNumberProductType -> PhoneNumberProductType -> Bool
PhoneNumberProductType -> PhoneNumberProductType -> Ordering
PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType
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 :: PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType
$cmin :: PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType
max :: PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType
$cmax :: PhoneNumberProductType
-> PhoneNumberProductType -> PhoneNumberProductType
>= :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
$c>= :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
> :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
$c> :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
<= :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
$c<= :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
< :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
$c< :: PhoneNumberProductType -> PhoneNumberProductType -> Bool
compare :: PhoneNumberProductType -> PhoneNumberProductType -> Ordering
$ccompare :: PhoneNumberProductType -> PhoneNumberProductType -> Ordering
$cp1Ord :: Eq PhoneNumberProductType
Prelude.Ord,
(forall x. PhoneNumberProductType -> Rep PhoneNumberProductType x)
-> (forall x.
Rep PhoneNumberProductType x -> PhoneNumberProductType)
-> Generic PhoneNumberProductType
forall x. Rep PhoneNumberProductType x -> PhoneNumberProductType
forall x. PhoneNumberProductType -> Rep PhoneNumberProductType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PhoneNumberProductType x -> PhoneNumberProductType
$cfrom :: forall x. PhoneNumberProductType -> Rep PhoneNumberProductType x
Prelude.Generic
)
deriving newtype
( Int -> PhoneNumberProductType -> Int
PhoneNumberProductType -> Int
(Int -> PhoneNumberProductType -> Int)
-> (PhoneNumberProductType -> Int)
-> Hashable PhoneNumberProductType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PhoneNumberProductType -> Int
$chash :: PhoneNumberProductType -> Int
hashWithSalt :: Int -> PhoneNumberProductType -> Int
$chashWithSalt :: Int -> PhoneNumberProductType -> Int
Prelude.Hashable,
PhoneNumberProductType -> ()
(PhoneNumberProductType -> ()) -> NFData PhoneNumberProductType
forall a. (a -> ()) -> NFData a
rnf :: PhoneNumberProductType -> ()
$crnf :: PhoneNumberProductType -> ()
Prelude.NFData,
Text -> Either String PhoneNumberProductType
(Text -> Either String PhoneNumberProductType)
-> FromText PhoneNumberProductType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PhoneNumberProductType
$cfromText :: Text -> Either String PhoneNumberProductType
Core.FromText,
PhoneNumberProductType -> Text
(PhoneNumberProductType -> Text) -> ToText PhoneNumberProductType
forall a. (a -> Text) -> ToText a
toText :: PhoneNumberProductType -> Text
$ctoText :: PhoneNumberProductType -> Text
Core.ToText,
PhoneNumberProductType -> ByteString
(PhoneNumberProductType -> ByteString)
-> ToByteString PhoneNumberProductType
forall a. (a -> ByteString) -> ToByteString a
toBS :: PhoneNumberProductType -> ByteString
$ctoBS :: PhoneNumberProductType -> ByteString
Core.ToByteString,
PhoneNumberProductType -> ByteStringBuilder
(PhoneNumberProductType -> ByteStringBuilder)
-> ToLog PhoneNumberProductType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PhoneNumberProductType -> ByteStringBuilder
$cbuild :: PhoneNumberProductType -> ByteStringBuilder
Core.ToLog,
HeaderName -> PhoneNumberProductType -> [Header]
(HeaderName -> PhoneNumberProductType -> [Header])
-> ToHeader PhoneNumberProductType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PhoneNumberProductType -> [Header]
$ctoHeader :: HeaderName -> PhoneNumberProductType -> [Header]
Core.ToHeader,
PhoneNumberProductType -> QueryString
(PhoneNumberProductType -> QueryString)
-> ToQuery PhoneNumberProductType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PhoneNumberProductType -> QueryString
$ctoQuery :: PhoneNumberProductType -> QueryString
Core.ToQuery,
Value -> Parser [PhoneNumberProductType]
Value -> Parser PhoneNumberProductType
(Value -> Parser PhoneNumberProductType)
-> (Value -> Parser [PhoneNumberProductType])
-> FromJSON PhoneNumberProductType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PhoneNumberProductType]
$cparseJSONList :: Value -> Parser [PhoneNumberProductType]
parseJSON :: Value -> Parser PhoneNumberProductType
$cparseJSON :: Value -> Parser PhoneNumberProductType
Core.FromJSON,
FromJSONKeyFunction [PhoneNumberProductType]
FromJSONKeyFunction PhoneNumberProductType
FromJSONKeyFunction PhoneNumberProductType
-> FromJSONKeyFunction [PhoneNumberProductType]
-> FromJSONKey PhoneNumberProductType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PhoneNumberProductType]
$cfromJSONKeyList :: FromJSONKeyFunction [PhoneNumberProductType]
fromJSONKey :: FromJSONKeyFunction PhoneNumberProductType
$cfromJSONKey :: FromJSONKeyFunction PhoneNumberProductType
Core.FromJSONKey,
[PhoneNumberProductType] -> Encoding
[PhoneNumberProductType] -> Value
PhoneNumberProductType -> Encoding
PhoneNumberProductType -> Value
(PhoneNumberProductType -> Value)
-> (PhoneNumberProductType -> Encoding)
-> ([PhoneNumberProductType] -> Value)
-> ([PhoneNumberProductType] -> Encoding)
-> ToJSON PhoneNumberProductType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PhoneNumberProductType] -> Encoding
$ctoEncodingList :: [PhoneNumberProductType] -> Encoding
toJSONList :: [PhoneNumberProductType] -> Value
$ctoJSONList :: [PhoneNumberProductType] -> Value
toEncoding :: PhoneNumberProductType -> Encoding
$ctoEncoding :: PhoneNumberProductType -> Encoding
toJSON :: PhoneNumberProductType -> Value
$ctoJSON :: PhoneNumberProductType -> Value
Core.ToJSON,
ToJSONKeyFunction [PhoneNumberProductType]
ToJSONKeyFunction PhoneNumberProductType
ToJSONKeyFunction PhoneNumberProductType
-> ToJSONKeyFunction [PhoneNumberProductType]
-> ToJSONKey PhoneNumberProductType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PhoneNumberProductType]
$ctoJSONKeyList :: ToJSONKeyFunction [PhoneNumberProductType]
toJSONKey :: ToJSONKeyFunction PhoneNumberProductType
$ctoJSONKey :: ToJSONKeyFunction PhoneNumberProductType
Core.ToJSONKey,
[Node] -> Either String PhoneNumberProductType
([Node] -> Either String PhoneNumberProductType)
-> FromXML PhoneNumberProductType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PhoneNumberProductType
$cparseXML :: [Node] -> Either String PhoneNumberProductType
Core.FromXML,
PhoneNumberProductType -> XML
(PhoneNumberProductType -> XML) -> ToXML PhoneNumberProductType
forall a. (a -> XML) -> ToXML a
toXML :: PhoneNumberProductType -> XML
$ctoXML :: PhoneNumberProductType -> XML
Core.ToXML
)
pattern PhoneNumberProductType_BusinessCalling :: PhoneNumberProductType
pattern $bPhoneNumberProductType_BusinessCalling :: PhoneNumberProductType
$mPhoneNumberProductType_BusinessCalling :: forall r.
PhoneNumberProductType -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberProductType_BusinessCalling = PhoneNumberProductType' "BusinessCalling"
pattern PhoneNumberProductType_SipMediaApplicationDialIn :: PhoneNumberProductType
pattern $bPhoneNumberProductType_SipMediaApplicationDialIn :: PhoneNumberProductType
$mPhoneNumberProductType_SipMediaApplicationDialIn :: forall r.
PhoneNumberProductType -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberProductType_SipMediaApplicationDialIn = PhoneNumberProductType' "SipMediaApplicationDialIn"
pattern PhoneNumberProductType_VoiceConnector :: PhoneNumberProductType
pattern $bPhoneNumberProductType_VoiceConnector :: PhoneNumberProductType
$mPhoneNumberProductType_VoiceConnector :: forall r.
PhoneNumberProductType -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberProductType_VoiceConnector = PhoneNumberProductType' "VoiceConnector"
{-# COMPLETE
PhoneNumberProductType_BusinessCalling,
PhoneNumberProductType_SipMediaApplicationDialIn,
PhoneNumberProductType_VoiceConnector,
PhoneNumberProductType'
#-}