{-# 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-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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

pattern UserStatusType_CONFIRMED :: UserStatusType
pattern $bUserStatusType_CONFIRMED :: UserStatusType
$mUserStatusType_CONFIRMED :: forall {r}. UserStatusType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
UserStatusType_RESET_REQUIRED = UserStatusType' "RESET_REQUIRED"

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

pattern UserStatusType_UNKNOWN :: UserStatusType
pattern $bUserStatusType_UNKNOWN :: UserStatusType
$mUserStatusType_UNKNOWN :: forall {r}. UserStatusType -> ((# #) -> r) -> ((# #) -> 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'
  #-}