{-# 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.DsnAction
-- 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.DsnAction
  ( DsnAction
      ( ..,
        DsnAction_Delayed,
        DsnAction_Delivered,
        DsnAction_Expanded,
        DsnAction_Failed,
        DsnAction_Relayed
      ),
  )
where

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

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

pattern DsnAction_Delayed :: DsnAction
pattern $bDsnAction_Delayed :: DsnAction
$mDsnAction_Delayed :: forall r. DsnAction -> (Void# -> r) -> (Void# -> r) -> r
DsnAction_Delayed = DsnAction' "delayed"

pattern DsnAction_Delivered :: DsnAction
pattern $bDsnAction_Delivered :: DsnAction
$mDsnAction_Delivered :: forall r. DsnAction -> (Void# -> r) -> (Void# -> r) -> r
DsnAction_Delivered = DsnAction' "delivered"

pattern DsnAction_Expanded :: DsnAction
pattern $bDsnAction_Expanded :: DsnAction
$mDsnAction_Expanded :: forall r. DsnAction -> (Void# -> r) -> (Void# -> r) -> r
DsnAction_Expanded = DsnAction' "expanded"

pattern DsnAction_Failed :: DsnAction
pattern $bDsnAction_Failed :: DsnAction
$mDsnAction_Failed :: forall r. DsnAction -> (Void# -> r) -> (Void# -> r) -> r
DsnAction_Failed = DsnAction' "failed"

pattern DsnAction_Relayed :: DsnAction
pattern $bDsnAction_Relayed :: DsnAction
$mDsnAction_Relayed :: forall r. DsnAction -> (Void# -> r) -> (Void# -> r) -> r
DsnAction_Relayed = DsnAction' "relayed"

{-# COMPLETE
  DsnAction_Delayed,
  DsnAction_Delivered,
  DsnAction_Expanded,
  DsnAction_Failed,
  DsnAction_Relayed,
  DsnAction'
  #-}