{-# 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.IAM.Types.JobStatusType
-- 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.IAM.Types.JobStatusType
  ( JobStatusType
      ( ..,
        JobStatusType_COMPLETED,
        JobStatusType_FAILED,
        JobStatusType_IN_PROGRESS
      ),
  )
where

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

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

pattern JobStatusType_COMPLETED :: JobStatusType
pattern $bJobStatusType_COMPLETED :: JobStatusType
$mJobStatusType_COMPLETED :: forall r. JobStatusType -> (Void# -> r) -> (Void# -> r) -> r
JobStatusType_COMPLETED = JobStatusType' "COMPLETED"

pattern JobStatusType_FAILED :: JobStatusType
pattern $bJobStatusType_FAILED :: JobStatusType
$mJobStatusType_FAILED :: forall r. JobStatusType -> (Void# -> r) -> (Void# -> r) -> r
JobStatusType_FAILED = JobStatusType' "FAILED"

pattern JobStatusType_IN_PROGRESS :: JobStatusType
pattern $bJobStatusType_IN_PROGRESS :: JobStatusType
$mJobStatusType_IN_PROGRESS :: forall r. JobStatusType -> (Void# -> r) -> (Void# -> r) -> r
JobStatusType_IN_PROGRESS = JobStatusType' "IN_PROGRESS"

{-# COMPLETE
  JobStatusType_COMPLETED,
  JobStatusType_FAILED,
  JobStatusType_IN_PROGRESS,
  JobStatusType'
  #-}