{-# 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.UserStatusType
-- 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.UserStatusType
  ( UserStatusType
      ( ..,
        UserStatusType_ARCHIVED,
        UserStatusType_COMPROMISED,
        UserStatusType_CONFIRMED,
        UserStatusType_FORCE_CHANGE_PASSWORD,
        UserStatusType_RESET_REQUIRED,
        UserStatusType_UNCONFIRMED,
        UserStatusType_UNKNOWN
      ),
  )
where

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

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

pattern UserStatusType_ARCHIVED :: UserStatusType
pattern $bUserStatusType_ARCHIVED :: UserStatusType
$mUserStatusType_ARCHIVED :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_ARCHIVED = UserStatusType' "ARCHIVED"

pattern UserStatusType_COMPROMISED :: UserStatusType
pattern $bUserStatusType_COMPROMISED :: UserStatusType
$mUserStatusType_COMPROMISED :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_COMPROMISED = UserStatusType' "COMPROMISED"

pattern UserStatusType_CONFIRMED :: UserStatusType
pattern $bUserStatusType_CONFIRMED :: UserStatusType
$mUserStatusType_CONFIRMED :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_CONFIRMED = UserStatusType' "CONFIRMED"

pattern UserStatusType_FORCE_CHANGE_PASSWORD :: UserStatusType
pattern $bUserStatusType_FORCE_CHANGE_PASSWORD :: UserStatusType
$mUserStatusType_FORCE_CHANGE_PASSWORD :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_FORCE_CHANGE_PASSWORD = UserStatusType' "FORCE_CHANGE_PASSWORD"

pattern UserStatusType_RESET_REQUIRED :: UserStatusType
pattern $bUserStatusType_RESET_REQUIRED :: UserStatusType
$mUserStatusType_RESET_REQUIRED :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_RESET_REQUIRED = UserStatusType' "RESET_REQUIRED"

pattern UserStatusType_UNCONFIRMED :: UserStatusType
pattern $bUserStatusType_UNCONFIRMED :: UserStatusType
$mUserStatusType_UNCONFIRMED :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_UNCONFIRMED = UserStatusType' "UNCONFIRMED"

pattern UserStatusType_UNKNOWN :: UserStatusType
pattern $bUserStatusType_UNKNOWN :: UserStatusType
$mUserStatusType_UNKNOWN :: forall r. UserStatusType -> (Void# -> r) -> (Void# -> r) -> r
UserStatusType_UNKNOWN = UserStatusType' "UNKNOWN"

{-# COMPLETE
  UserStatusType_ARCHIVED,
  UserStatusType_COMPROMISED,
  UserStatusType_CONFIRMED,
  UserStatusType_FORCE_CHANGE_PASSWORD,
  UserStatusType_RESET_REQUIRED,
  UserStatusType_UNCONFIRMED,
  UserStatusType_UNKNOWN,
  UserStatusType'
  #-}