{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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

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

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

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