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