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

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

newtype ContactListImportAction = ContactListImportAction'
  { ContactListImportAction -> Text
fromContactListImportAction ::
      Data.Text
  }
  deriving stock
    ( Int -> ContactListImportAction -> ShowS
[ContactListImportAction] -> ShowS
ContactListImportAction -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ContactListImportAction
Int -> ContactListImportAction -> Int
ContactListImportAction -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ContactListImportAction -> ()
$crnf :: ContactListImportAction -> ()
Prelude.NFData,
      Text -> Either String ContactListImportAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ContactListImportAction
$cfromText :: Text -> Either String ContactListImportAction
Data.FromText,
      ContactListImportAction -> Text
forall a. (a -> Text) -> ToText a
toText :: ContactListImportAction -> Text
$ctoText :: ContactListImportAction -> Text
Data.ToText,
      ContactListImportAction -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ContactListImportAction -> ByteString
$ctoBS :: ContactListImportAction -> ByteString
Data.ToByteString,
      ContactListImportAction -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ContactListImportAction -> ByteStringBuilder
$cbuild :: ContactListImportAction -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ContactListImportAction -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ContactListImportAction -> [Header]
$ctoHeader :: HeaderName -> ContactListImportAction -> [Header]
Data.ToHeader,
      ContactListImportAction -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ContactListImportAction -> QueryString
$ctoQuery :: ContactListImportAction -> QueryString
Data.ToQuery,
      Value -> Parser [ContactListImportAction]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ContactListImportAction]
FromJSONKeyFunction ContactListImportAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ContactListImportAction]
$cfromJSONKeyList :: FromJSONKeyFunction [ContactListImportAction]
fromJSONKey :: FromJSONKeyFunction ContactListImportAction
$cfromJSONKey :: FromJSONKeyFunction ContactListImportAction
Data.FromJSONKey,
      [ContactListImportAction] -> Encoding
[ContactListImportAction] -> Value
ContactListImportAction -> Encoding
ContactListImportAction -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ContactListImportAction]
ToJSONKeyFunction ContactListImportAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ContactListImportAction]
$ctoJSONKeyList :: ToJSONKeyFunction [ContactListImportAction]
toJSONKey :: ToJSONKeyFunction ContactListImportAction
$ctoJSONKey :: ToJSONKeyFunction ContactListImportAction
Data.ToJSONKey,
      [Node] -> Either String ContactListImportAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ContactListImportAction
$cparseXML :: [Node] -> Either String ContactListImportAction
Data.FromXML,
      ContactListImportAction -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ContactListImportAction -> XML
$ctoXML :: ContactListImportAction -> XML
Data.ToXML
    )

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

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

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