{-# 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.ImportDestinationType
-- 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.SESV2.Types.ImportDestinationType
  ( ImportDestinationType
      ( ..,
        ImportDestinationType_CONTACT_LIST,
        ImportDestinationType_SUPPRESSION_LIST
      ),
  )
where

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

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

pattern ImportDestinationType_CONTACT_LIST :: ImportDestinationType
pattern $bImportDestinationType_CONTACT_LIST :: ImportDestinationType
$mImportDestinationType_CONTACT_LIST :: forall r.
ImportDestinationType -> (Void# -> r) -> (Void# -> r) -> r
ImportDestinationType_CONTACT_LIST = ImportDestinationType' "CONTACT_LIST"

pattern ImportDestinationType_SUPPRESSION_LIST :: ImportDestinationType
pattern $bImportDestinationType_SUPPRESSION_LIST :: ImportDestinationType
$mImportDestinationType_SUPPRESSION_LIST :: forall r.
ImportDestinationType -> (Void# -> r) -> (Void# -> r) -> r
ImportDestinationType_SUPPRESSION_LIST = ImportDestinationType' "SUPPRESSION_LIST"

{-# COMPLETE
  ImportDestinationType_CONTACT_LIST,
  ImportDestinationType_SUPPRESSION_LIST,
  ImportDestinationType'
  #-}