{-# 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.UserImportJobStatusType
-- 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.UserImportJobStatusType
  ( UserImportJobStatusType
      ( ..,
        UserImportJobStatusType_Created,
        UserImportJobStatusType_Expired,
        UserImportJobStatusType_Failed,
        UserImportJobStatusType_InProgress,
        UserImportJobStatusType_Pending,
        UserImportJobStatusType_Stopped,
        UserImportJobStatusType_Stopping,
        UserImportJobStatusType_Succeeded
      ),
  )
where

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

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

pattern UserImportJobStatusType_Created :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Created :: UserImportJobStatusType
$mUserImportJobStatusType_Created :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Created = UserImportJobStatusType' "Created"

pattern UserImportJobStatusType_Expired :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Expired :: UserImportJobStatusType
$mUserImportJobStatusType_Expired :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Expired = UserImportJobStatusType' "Expired"

pattern UserImportJobStatusType_Failed :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Failed :: UserImportJobStatusType
$mUserImportJobStatusType_Failed :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Failed = UserImportJobStatusType' "Failed"

pattern UserImportJobStatusType_InProgress :: UserImportJobStatusType
pattern $bUserImportJobStatusType_InProgress :: UserImportJobStatusType
$mUserImportJobStatusType_InProgress :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_InProgress = UserImportJobStatusType' "InProgress"

pattern UserImportJobStatusType_Pending :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Pending :: UserImportJobStatusType
$mUserImportJobStatusType_Pending :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Pending = UserImportJobStatusType' "Pending"

pattern UserImportJobStatusType_Stopped :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Stopped :: UserImportJobStatusType
$mUserImportJobStatusType_Stopped :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Stopped = UserImportJobStatusType' "Stopped"

pattern UserImportJobStatusType_Stopping :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Stopping :: UserImportJobStatusType
$mUserImportJobStatusType_Stopping :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Stopping = UserImportJobStatusType' "Stopping"

pattern UserImportJobStatusType_Succeeded :: UserImportJobStatusType
pattern $bUserImportJobStatusType_Succeeded :: UserImportJobStatusType
$mUserImportJobStatusType_Succeeded :: forall {r}.
UserImportJobStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserImportJobStatusType_Succeeded = UserImportJobStatusType' "Succeeded"

{-# COMPLETE
  UserImportJobStatusType_Created,
  UserImportJobStatusType_Expired,
  UserImportJobStatusType_Failed,
  UserImportJobStatusType_InProgress,
  UserImportJobStatusType_Pending,
  UserImportJobStatusType_Stopped,
  UserImportJobStatusType_Stopping,
  UserImportJobStatusType_Succeeded,
  UserImportJobStatusType'
  #-}