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