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