{-# 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.BounceType
( BounceType
( ..,
BounceType_ContentRejected,
BounceType_DoesNotExist,
BounceType_ExceededQuota,
BounceType_MessageTooLarge,
BounceType_TemporaryFailure,
BounceType_Undefined
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BounceType = BounceType'
{ BounceType -> Text
fromBounceType ::
Core.Text
}
deriving stock
( Int -> BounceType -> ShowS
[BounceType] -> ShowS
BounceType -> String
(Int -> BounceType -> ShowS)
-> (BounceType -> String)
-> ([BounceType] -> ShowS)
-> Show BounceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BounceType] -> ShowS
$cshowList :: [BounceType] -> ShowS
show :: BounceType -> String
$cshow :: BounceType -> String
showsPrec :: Int -> BounceType -> ShowS
$cshowsPrec :: Int -> BounceType -> ShowS
Prelude.Show,
ReadPrec [BounceType]
ReadPrec BounceType
Int -> ReadS BounceType
ReadS [BounceType]
(Int -> ReadS BounceType)
-> ReadS [BounceType]
-> ReadPrec BounceType
-> ReadPrec [BounceType]
-> Read BounceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BounceType]
$creadListPrec :: ReadPrec [BounceType]
readPrec :: ReadPrec BounceType
$creadPrec :: ReadPrec BounceType
readList :: ReadS [BounceType]
$creadList :: ReadS [BounceType]
readsPrec :: Int -> ReadS BounceType
$creadsPrec :: Int -> ReadS BounceType
Prelude.Read,
BounceType -> BounceType -> Bool
(BounceType -> BounceType -> Bool)
-> (BounceType -> BounceType -> Bool) -> Eq BounceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BounceType -> BounceType -> Bool
$c/= :: BounceType -> BounceType -> Bool
== :: BounceType -> BounceType -> Bool
$c== :: BounceType -> BounceType -> Bool
Prelude.Eq,
Eq BounceType
Eq BounceType
-> (BounceType -> BounceType -> Ordering)
-> (BounceType -> BounceType -> Bool)
-> (BounceType -> BounceType -> Bool)
-> (BounceType -> BounceType -> Bool)
-> (BounceType -> BounceType -> Bool)
-> (BounceType -> BounceType -> BounceType)
-> (BounceType -> BounceType -> BounceType)
-> Ord BounceType
BounceType -> BounceType -> Bool
BounceType -> BounceType -> Ordering
BounceType -> BounceType -> BounceType
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 :: BounceType -> BounceType -> BounceType
$cmin :: BounceType -> BounceType -> BounceType
max :: BounceType -> BounceType -> BounceType
$cmax :: BounceType -> BounceType -> BounceType
>= :: BounceType -> BounceType -> Bool
$c>= :: BounceType -> BounceType -> Bool
> :: BounceType -> BounceType -> Bool
$c> :: BounceType -> BounceType -> Bool
<= :: BounceType -> BounceType -> Bool
$c<= :: BounceType -> BounceType -> Bool
< :: BounceType -> BounceType -> Bool
$c< :: BounceType -> BounceType -> Bool
compare :: BounceType -> BounceType -> Ordering
$ccompare :: BounceType -> BounceType -> Ordering
$cp1Ord :: Eq BounceType
Prelude.Ord,
(forall x. BounceType -> Rep BounceType x)
-> (forall x. Rep BounceType x -> BounceType) -> Generic BounceType
forall x. Rep BounceType x -> BounceType
forall x. BounceType -> Rep BounceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BounceType x -> BounceType
$cfrom :: forall x. BounceType -> Rep BounceType x
Prelude.Generic
)
deriving newtype
( Int -> BounceType -> Int
BounceType -> Int
(Int -> BounceType -> Int)
-> (BounceType -> Int) -> Hashable BounceType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BounceType -> Int
$chash :: BounceType -> Int
hashWithSalt :: Int -> BounceType -> Int
$chashWithSalt :: Int -> BounceType -> Int
Prelude.Hashable,
BounceType -> ()
(BounceType -> ()) -> NFData BounceType
forall a. (a -> ()) -> NFData a
rnf :: BounceType -> ()
$crnf :: BounceType -> ()
Prelude.NFData,
Text -> Either String BounceType
(Text -> Either String BounceType) -> FromText BounceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BounceType
$cfromText :: Text -> Either String BounceType
Core.FromText,
BounceType -> Text
(BounceType -> Text) -> ToText BounceType
forall a. (a -> Text) -> ToText a
toText :: BounceType -> Text
$ctoText :: BounceType -> Text
Core.ToText,
BounceType -> ByteString
(BounceType -> ByteString) -> ToByteString BounceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: BounceType -> ByteString
$ctoBS :: BounceType -> ByteString
Core.ToByteString,
BounceType -> ByteStringBuilder
(BounceType -> ByteStringBuilder) -> ToLog BounceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BounceType -> ByteStringBuilder
$cbuild :: BounceType -> ByteStringBuilder
Core.ToLog,
HeaderName -> BounceType -> [Header]
(HeaderName -> BounceType -> [Header]) -> ToHeader BounceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BounceType -> [Header]
$ctoHeader :: HeaderName -> BounceType -> [Header]
Core.ToHeader,
BounceType -> QueryString
(BounceType -> QueryString) -> ToQuery BounceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BounceType -> QueryString
$ctoQuery :: BounceType -> QueryString
Core.ToQuery,
Value -> Parser [BounceType]
Value -> Parser BounceType
(Value -> Parser BounceType)
-> (Value -> Parser [BounceType]) -> FromJSON BounceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BounceType]
$cparseJSONList :: Value -> Parser [BounceType]
parseJSON :: Value -> Parser BounceType
$cparseJSON :: Value -> Parser BounceType
Core.FromJSON,
FromJSONKeyFunction [BounceType]
FromJSONKeyFunction BounceType
FromJSONKeyFunction BounceType
-> FromJSONKeyFunction [BounceType] -> FromJSONKey BounceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BounceType]
$cfromJSONKeyList :: FromJSONKeyFunction [BounceType]
fromJSONKey :: FromJSONKeyFunction BounceType
$cfromJSONKey :: FromJSONKeyFunction BounceType
Core.FromJSONKey,
[BounceType] -> Encoding
[BounceType] -> Value
BounceType -> Encoding
BounceType -> Value
(BounceType -> Value)
-> (BounceType -> Encoding)
-> ([BounceType] -> Value)
-> ([BounceType] -> Encoding)
-> ToJSON BounceType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BounceType] -> Encoding
$ctoEncodingList :: [BounceType] -> Encoding
toJSONList :: [BounceType] -> Value
$ctoJSONList :: [BounceType] -> Value
toEncoding :: BounceType -> Encoding
$ctoEncoding :: BounceType -> Encoding
toJSON :: BounceType -> Value
$ctoJSON :: BounceType -> Value
Core.ToJSON,
ToJSONKeyFunction [BounceType]
ToJSONKeyFunction BounceType
ToJSONKeyFunction BounceType
-> ToJSONKeyFunction [BounceType] -> ToJSONKey BounceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BounceType]
$ctoJSONKeyList :: ToJSONKeyFunction [BounceType]
toJSONKey :: ToJSONKeyFunction BounceType
$ctoJSONKey :: ToJSONKeyFunction BounceType
Core.ToJSONKey,
[Node] -> Either String BounceType
([Node] -> Either String BounceType) -> FromXML BounceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BounceType
$cparseXML :: [Node] -> Either String BounceType
Core.FromXML,
BounceType -> XML
(BounceType -> XML) -> ToXML BounceType
forall a. (a -> XML) -> ToXML a
toXML :: BounceType -> XML
$ctoXML :: BounceType -> XML
Core.ToXML
)
pattern BounceType_ContentRejected :: BounceType
pattern $bBounceType_ContentRejected :: BounceType
$mBounceType_ContentRejected :: forall r. BounceType -> (Void# -> r) -> (Void# -> r) -> r
BounceType_ContentRejected = BounceType' "ContentRejected"
pattern BounceType_DoesNotExist :: BounceType
pattern $bBounceType_DoesNotExist :: BounceType
$mBounceType_DoesNotExist :: forall r. BounceType -> (Void# -> r) -> (Void# -> r) -> r
BounceType_DoesNotExist = BounceType' "DoesNotExist"
pattern BounceType_ExceededQuota :: BounceType
pattern $bBounceType_ExceededQuota :: BounceType
$mBounceType_ExceededQuota :: forall r. BounceType -> (Void# -> r) -> (Void# -> r) -> r
BounceType_ExceededQuota = BounceType' "ExceededQuota"
pattern BounceType_MessageTooLarge :: BounceType
pattern $bBounceType_MessageTooLarge :: BounceType
$mBounceType_MessageTooLarge :: forall r. BounceType -> (Void# -> r) -> (Void# -> r) -> r
BounceType_MessageTooLarge = BounceType' "MessageTooLarge"
pattern BounceType_TemporaryFailure :: BounceType
pattern $bBounceType_TemporaryFailure :: BounceType
$mBounceType_TemporaryFailure :: forall r. BounceType -> (Void# -> r) -> (Void# -> r) -> r
BounceType_TemporaryFailure = BounceType' "TemporaryFailure"
pattern BounceType_Undefined :: BounceType
pattern $bBounceType_Undefined :: BounceType
$mBounceType_Undefined :: forall r. BounceType -> (Void# -> r) -> (Void# -> r) -> r
BounceType_Undefined = BounceType' "Undefined"
{-# COMPLETE
BounceType_ContentRejected,
BounceType_DoesNotExist,
BounceType_ExceededQuota,
BounceType_MessageTooLarge,
BounceType_TemporaryFailure,
BounceType_Undefined,
BounceType'
#-}