{-# 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.ContactListImportAction
-- 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.ContactListImportAction
  ( ContactListImportAction
      ( ..,
        ContactListImportAction_DELETE,
        ContactListImportAction_PUT
      ),
  )
where

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

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

pattern ContactListImportAction_DELETE :: ContactListImportAction
pattern $bContactListImportAction_DELETE :: ContactListImportAction
$mContactListImportAction_DELETE :: forall r.
ContactListImportAction -> (Void# -> r) -> (Void# -> r) -> r
ContactListImportAction_DELETE = ContactListImportAction' "DELETE"

pattern ContactListImportAction_PUT :: ContactListImportAction
pattern $bContactListImportAction_PUT :: ContactListImportAction
$mContactListImportAction_PUT :: forall r.
ContactListImportAction -> (Void# -> r) -> (Void# -> r) -> r
ContactListImportAction_PUT = ContactListImportAction' "PUT"

{-# COMPLETE
  ContactListImportAction_DELETE,
  ContactListImportAction_PUT,
  ContactListImportAction'
  #-}