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