{-# 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.SESV2.Types.SuppressionListImportAction
-- 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.SESV2.Types.SuppressionListImportAction
  ( SuppressionListImportAction
      ( ..,
        SuppressionListImportAction_DELETE,
        SuppressionListImportAction_PUT
      ),
  )
where

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

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

pattern SuppressionListImportAction_DELETE :: SuppressionListImportAction
pattern $bSuppressionListImportAction_DELETE :: SuppressionListImportAction
$mSuppressionListImportAction_DELETE :: forall {r}.
SuppressionListImportAction -> ((# #) -> r) -> ((# #) -> r) -> r
SuppressionListImportAction_DELETE = SuppressionListImportAction' "DELETE"

pattern SuppressionListImportAction_PUT :: SuppressionListImportAction
pattern $bSuppressionListImportAction_PUT :: SuppressionListImportAction
$mSuppressionListImportAction_PUT :: forall {r}.
SuppressionListImportAction -> ((# #) -> r) -> ((# #) -> r) -> r
SuppressionListImportAction_PUT = SuppressionListImportAction' "PUT"

{-# COMPLETE
  SuppressionListImportAction_DELETE,
  SuppressionListImportAction_PUT,
  SuppressionListImportAction'
  #-}