{-# 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.DefaultEmailOptionType
-- 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.DefaultEmailOptionType
  ( DefaultEmailOptionType
      ( ..,
        DefaultEmailOptionType_CONFIRM_WITH_CODE,
        DefaultEmailOptionType_CONFIRM_WITH_LINK
      ),
  )
where

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

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

pattern DefaultEmailOptionType_CONFIRM_WITH_CODE :: DefaultEmailOptionType
pattern $bDefaultEmailOptionType_CONFIRM_WITH_CODE :: DefaultEmailOptionType
$mDefaultEmailOptionType_CONFIRM_WITH_CODE :: forall r.
DefaultEmailOptionType -> (Void# -> r) -> (Void# -> r) -> r
DefaultEmailOptionType_CONFIRM_WITH_CODE = DefaultEmailOptionType' "CONFIRM_WITH_CODE"

pattern DefaultEmailOptionType_CONFIRM_WITH_LINK :: DefaultEmailOptionType
pattern $bDefaultEmailOptionType_CONFIRM_WITH_LINK :: DefaultEmailOptionType
$mDefaultEmailOptionType_CONFIRM_WITH_LINK :: forall r.
DefaultEmailOptionType -> (Void# -> r) -> (Void# -> r) -> r
DefaultEmailOptionType_CONFIRM_WITH_LINK = DefaultEmailOptionType' "CONFIRM_WITH_LINK"

{-# COMPLETE
  DefaultEmailOptionType_CONFIRM_WITH_CODE,
  DefaultEmailOptionType_CONFIRM_WITH_LINK,
  DefaultEmailOptionType'
  #-}