{-# 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.VerifiedAttributeType
-- 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.VerifiedAttributeType
  ( VerifiedAttributeType
      ( ..,
        VerifiedAttributeType_Email,
        VerifiedAttributeType_Phone_number
      ),
  )
where

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

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

pattern VerifiedAttributeType_Email :: VerifiedAttributeType
pattern $bVerifiedAttributeType_Email :: VerifiedAttributeType
$mVerifiedAttributeType_Email :: forall r.
VerifiedAttributeType -> (Void# -> r) -> (Void# -> r) -> r
VerifiedAttributeType_Email = VerifiedAttributeType' "email"

pattern VerifiedAttributeType_Phone_number :: VerifiedAttributeType
pattern $bVerifiedAttributeType_Phone_number :: VerifiedAttributeType
$mVerifiedAttributeType_Phone_number :: forall r.
VerifiedAttributeType -> (Void# -> r) -> (Void# -> r) -> r
VerifiedAttributeType_Phone_number = VerifiedAttributeType' "phone_number"

{-# COMPLETE
  VerifiedAttributeType_Email,
  VerifiedAttributeType_Phone_number,
  VerifiedAttributeType'
  #-}