{-# 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.CognitoIdentityProvider.Types.EmailSendingAccountType
-- 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.CognitoIdentityProvider.Types.EmailSendingAccountType
  ( EmailSendingAccountType
      ( ..,
        EmailSendingAccountType_COGNITO_DEFAULT,
        EmailSendingAccountType_DEVELOPER
      ),
  )
where

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

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

pattern EmailSendingAccountType_COGNITO_DEFAULT :: EmailSendingAccountType
pattern $bEmailSendingAccountType_COGNITO_DEFAULT :: EmailSendingAccountType
$mEmailSendingAccountType_COGNITO_DEFAULT :: forall r.
EmailSendingAccountType -> (Void# -> r) -> (Void# -> r) -> r
EmailSendingAccountType_COGNITO_DEFAULT = EmailSendingAccountType' "COGNITO_DEFAULT"

pattern EmailSendingAccountType_DEVELOPER :: EmailSendingAccountType
pattern $bEmailSendingAccountType_DEVELOPER :: EmailSendingAccountType
$mEmailSendingAccountType_DEVELOPER :: forall r.
EmailSendingAccountType -> (Void# -> r) -> (Void# -> r) -> r
EmailSendingAccountType_DEVELOPER = EmailSendingAccountType' "DEVELOPER"

{-# COMPLETE
  EmailSendingAccountType_COGNITO_DEFAULT,
  EmailSendingAccountType_DEVELOPER,
  EmailSendingAccountType'
  #-}