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