{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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