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