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