{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SES.Types.BounceType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype BounceType = BounceType'
  { BounceType -> Text
fromBounceType ::
      Data.Text
  }
  deriving stock
    ( Int -> BounceType -> ShowS
[BounceType] -> ShowS
BounceType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq BounceType
Int -> BounceType -> Int
BounceType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: BounceType -> ()
$crnf :: BounceType -> ()
Prelude.NFData,
      Text -> Either String BounceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BounceType
$cfromText :: Text -> Either String BounceType
Data.FromText,
      BounceType -> Text
forall a. (a -> Text) -> ToText a
toText :: BounceType -> Text
$ctoText :: BounceType -> Text
Data.ToText,
      BounceType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: BounceType -> ByteString
$ctoBS :: BounceType -> ByteString
Data.ToByteString,
      BounceType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BounceType -> ByteStringBuilder
$cbuild :: BounceType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> BounceType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BounceType -> [Header]
$ctoHeader :: HeaderName -> BounceType -> [Header]
Data.ToHeader,
      BounceType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BounceType -> QueryString
$ctoQuery :: BounceType -> QueryString
Data.ToQuery,
      Value -> Parser [BounceType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [BounceType]
FromJSONKeyFunction BounceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BounceType]
$cfromJSONKeyList :: FromJSONKeyFunction [BounceType]
fromJSONKey :: FromJSONKeyFunction BounceType
$cfromJSONKey :: FromJSONKeyFunction BounceType
Data.FromJSONKey,
      [BounceType] -> Encoding
[BounceType] -> Value
BounceType -> Encoding
BounceType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [BounceType]
ToJSONKeyFunction BounceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BounceType]
$ctoJSONKeyList :: ToJSONKeyFunction [BounceType]
toJSONKey :: ToJSONKeyFunction BounceType
$ctoJSONKey :: ToJSONKeyFunction BounceType
Data.ToJSONKey,
      [Node] -> Either String BounceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BounceType
$cparseXML :: [Node] -> Either String BounceType
Data.FromXML,
      BounceType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: BounceType -> XML
$ctoXML :: BounceType -> XML
Data.ToXML
    )

pattern BounceType_ContentRejected :: BounceType
pattern $bBounceType_ContentRejected :: BounceType
$mBounceType_ContentRejected :: forall {r}. BounceType -> ((# #) -> r) -> ((# #) -> r) -> r
BounceType_ContentRejected = BounceType' "ContentRejected"

pattern BounceType_DoesNotExist :: BounceType
pattern $bBounceType_DoesNotExist :: BounceType
$mBounceType_DoesNotExist :: forall {r}. BounceType -> ((# #) -> r) -> ((# #) -> r) -> r
BounceType_DoesNotExist = BounceType' "DoesNotExist"

pattern BounceType_ExceededQuota :: BounceType
pattern $bBounceType_ExceededQuota :: BounceType
$mBounceType_ExceededQuota :: forall {r}. BounceType -> ((# #) -> r) -> ((# #) -> r) -> r
BounceType_ExceededQuota = BounceType' "ExceededQuota"

pattern BounceType_MessageTooLarge :: BounceType
pattern $bBounceType_MessageTooLarge :: BounceType
$mBounceType_MessageTooLarge :: forall {r}. BounceType -> ((# #) -> r) -> ((# #) -> r) -> r
BounceType_MessageTooLarge = BounceType' "MessageTooLarge"

pattern BounceType_TemporaryFailure :: BounceType
pattern $bBounceType_TemporaryFailure :: BounceType
$mBounceType_TemporaryFailure :: forall {r}. BounceType -> ((# #) -> r) -> ((# #) -> r) -> r
BounceType_TemporaryFailure = BounceType' "TemporaryFailure"

pattern BounceType_Undefined :: BounceType
pattern $bBounceType_Undefined :: BounceType
$mBounceType_Undefined :: forall {r}. BounceType -> ((# #) -> r) -> ((# #) -> r) -> r
BounceType_Undefined = BounceType' "Undefined"

{-# COMPLETE
  BounceType_ContentRejected,
  BounceType_DoesNotExist,
  BounceType_ExceededQuota,
  BounceType_MessageTooLarge,
  BounceType_TemporaryFailure,
  BounceType_Undefined,
  BounceType'
  #-}