{-# 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.ConfigurationSetAttribute
-- 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.ConfigurationSetAttribute
  ( ConfigurationSetAttribute
      ( ..,
        ConfigurationSetAttribute_DeliveryOptions,
        ConfigurationSetAttribute_EventDestinations,
        ConfigurationSetAttribute_ReputationOptions,
        ConfigurationSetAttribute_TrackingOptions
      ),
  )
where

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

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

pattern ConfigurationSetAttribute_DeliveryOptions :: ConfigurationSetAttribute
pattern $bConfigurationSetAttribute_DeliveryOptions :: ConfigurationSetAttribute
$mConfigurationSetAttribute_DeliveryOptions :: forall r.
ConfigurationSetAttribute -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSetAttribute_DeliveryOptions = ConfigurationSetAttribute' "deliveryOptions"

pattern ConfigurationSetAttribute_EventDestinations :: ConfigurationSetAttribute
pattern $bConfigurationSetAttribute_EventDestinations :: ConfigurationSetAttribute
$mConfigurationSetAttribute_EventDestinations :: forall r.
ConfigurationSetAttribute -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSetAttribute_EventDestinations = ConfigurationSetAttribute' "eventDestinations"

pattern ConfigurationSetAttribute_ReputationOptions :: ConfigurationSetAttribute
pattern $bConfigurationSetAttribute_ReputationOptions :: ConfigurationSetAttribute
$mConfigurationSetAttribute_ReputationOptions :: forall r.
ConfigurationSetAttribute -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSetAttribute_ReputationOptions = ConfigurationSetAttribute' "reputationOptions"

pattern ConfigurationSetAttribute_TrackingOptions :: ConfigurationSetAttribute
pattern $bConfigurationSetAttribute_TrackingOptions :: ConfigurationSetAttribute
$mConfigurationSetAttribute_TrackingOptions :: forall r.
ConfigurationSetAttribute -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSetAttribute_TrackingOptions = ConfigurationSetAttribute' "trackingOptions"

{-# COMPLETE
  ConfigurationSetAttribute_DeliveryOptions,
  ConfigurationSetAttribute_EventDestinations,
  ConfigurationSetAttribute_ReputationOptions,
  ConfigurationSetAttribute_TrackingOptions,
  ConfigurationSetAttribute'
  #-}