{-# 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.BehaviorOnMXFailure
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SES.Types.BehaviorOnMXFailure
  ( BehaviorOnMXFailure
      ( ..,
        BehaviorOnMXFailure_RejectMessage,
        BehaviorOnMXFailure_UseDefaultValue
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern BehaviorOnMXFailure_RejectMessage :: BehaviorOnMXFailure
pattern $bBehaviorOnMXFailure_RejectMessage :: BehaviorOnMXFailure
$mBehaviorOnMXFailure_RejectMessage :: forall r. BehaviorOnMXFailure -> (Void# -> r) -> (Void# -> r) -> r
BehaviorOnMXFailure_RejectMessage = BehaviorOnMXFailure' "RejectMessage"

pattern BehaviorOnMXFailure_UseDefaultValue :: BehaviorOnMXFailure
pattern $bBehaviorOnMXFailure_UseDefaultValue :: BehaviorOnMXFailure
$mBehaviorOnMXFailure_UseDefaultValue :: forall r. BehaviorOnMXFailure -> (Void# -> r) -> (Void# -> r) -> r
BehaviorOnMXFailure_UseDefaultValue = BehaviorOnMXFailure' "UseDefaultValue"

{-# COMPLETE
  BehaviorOnMXFailure_RejectMessage,
  BehaviorOnMXFailure_UseDefaultValue,
  BehaviorOnMXFailure'
  #-}