{-# 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.AttributeDataType
-- 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.AttributeDataType
  ( AttributeDataType
      ( ..,
        AttributeDataType_Boolean,
        AttributeDataType_DateTime,
        AttributeDataType_Number,
        AttributeDataType_String
      ),
  )
where

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

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

pattern AttributeDataType_Boolean :: AttributeDataType
pattern $bAttributeDataType_Boolean :: AttributeDataType
$mAttributeDataType_Boolean :: forall r. AttributeDataType -> (Void# -> r) -> (Void# -> r) -> r
AttributeDataType_Boolean = AttributeDataType' "Boolean"

pattern AttributeDataType_DateTime :: AttributeDataType
pattern $bAttributeDataType_DateTime :: AttributeDataType
$mAttributeDataType_DateTime :: forall r. AttributeDataType -> (Void# -> r) -> (Void# -> r) -> r
AttributeDataType_DateTime = AttributeDataType' "DateTime"

pattern AttributeDataType_Number :: AttributeDataType
pattern $bAttributeDataType_Number :: AttributeDataType
$mAttributeDataType_Number :: forall r. AttributeDataType -> (Void# -> r) -> (Void# -> r) -> r
AttributeDataType_Number = AttributeDataType' "Number"

pattern AttributeDataType_String :: AttributeDataType
pattern $bAttributeDataType_String :: AttributeDataType
$mAttributeDataType_String :: forall r. AttributeDataType -> (Void# -> r) -> (Void# -> r) -> r
AttributeDataType_String = AttributeDataType' "String"

{-# COMPLETE
  AttributeDataType_Boolean,
  AttributeDataType_DateTime,
  AttributeDataType_Number,
  AttributeDataType_String,
  AttributeDataType'
  #-}