{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EMRContainers.Types.JobRunState
( JobRunState
( ..,
JobRunState_CANCELLED,
JobRunState_CANCEL_PENDING,
JobRunState_COMPLETED,
JobRunState_FAILED,
JobRunState_PENDING,
JobRunState_RUNNING,
JobRunState_SUBMITTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype JobRunState = JobRunState'
{ JobRunState -> Text
fromJobRunState ::
Core.Text
}
deriving stock
( Int -> JobRunState -> ShowS
[JobRunState] -> ShowS
JobRunState -> String
(Int -> JobRunState -> ShowS)
-> (JobRunState -> String)
-> ([JobRunState] -> ShowS)
-> Show JobRunState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobRunState] -> ShowS
$cshowList :: [JobRunState] -> ShowS
show :: JobRunState -> String
$cshow :: JobRunState -> String
showsPrec :: Int -> JobRunState -> ShowS
$cshowsPrec :: Int -> JobRunState -> ShowS
Prelude.Show,
ReadPrec [JobRunState]
ReadPrec JobRunState
Int -> ReadS JobRunState
ReadS [JobRunState]
(Int -> ReadS JobRunState)
-> ReadS [JobRunState]
-> ReadPrec JobRunState
-> ReadPrec [JobRunState]
-> Read JobRunState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobRunState]
$creadListPrec :: ReadPrec [JobRunState]
readPrec :: ReadPrec JobRunState
$creadPrec :: ReadPrec JobRunState
readList :: ReadS [JobRunState]
$creadList :: ReadS [JobRunState]
readsPrec :: Int -> ReadS JobRunState
$creadsPrec :: Int -> ReadS JobRunState
Prelude.Read,
JobRunState -> JobRunState -> Bool
(JobRunState -> JobRunState -> Bool)
-> (JobRunState -> JobRunState -> Bool) -> Eq JobRunState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobRunState -> JobRunState -> Bool
$c/= :: JobRunState -> JobRunState -> Bool
== :: JobRunState -> JobRunState -> Bool
$c== :: JobRunState -> JobRunState -> Bool
Prelude.Eq,
Eq JobRunState
Eq JobRunState
-> (JobRunState -> JobRunState -> Ordering)
-> (JobRunState -> JobRunState -> Bool)
-> (JobRunState -> JobRunState -> Bool)
-> (JobRunState -> JobRunState -> Bool)
-> (JobRunState -> JobRunState -> Bool)
-> (JobRunState -> JobRunState -> JobRunState)
-> (JobRunState -> JobRunState -> JobRunState)
-> Ord JobRunState
JobRunState -> JobRunState -> Bool
JobRunState -> JobRunState -> Ordering
JobRunState -> JobRunState -> JobRunState
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 :: JobRunState -> JobRunState -> JobRunState
$cmin :: JobRunState -> JobRunState -> JobRunState
max :: JobRunState -> JobRunState -> JobRunState
$cmax :: JobRunState -> JobRunState -> JobRunState
>= :: JobRunState -> JobRunState -> Bool
$c>= :: JobRunState -> JobRunState -> Bool
> :: JobRunState -> JobRunState -> Bool
$c> :: JobRunState -> JobRunState -> Bool
<= :: JobRunState -> JobRunState -> Bool
$c<= :: JobRunState -> JobRunState -> Bool
< :: JobRunState -> JobRunState -> Bool
$c< :: JobRunState -> JobRunState -> Bool
compare :: JobRunState -> JobRunState -> Ordering
$ccompare :: JobRunState -> JobRunState -> Ordering
$cp1Ord :: Eq JobRunState
Prelude.Ord,
(forall x. JobRunState -> Rep JobRunState x)
-> (forall x. Rep JobRunState x -> JobRunState)
-> Generic JobRunState
forall x. Rep JobRunState x -> JobRunState
forall x. JobRunState -> Rep JobRunState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobRunState x -> JobRunState
$cfrom :: forall x. JobRunState -> Rep JobRunState x
Prelude.Generic
)
deriving newtype
( Int -> JobRunState -> Int
JobRunState -> Int
(Int -> JobRunState -> Int)
-> (JobRunState -> Int) -> Hashable JobRunState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: JobRunState -> Int
$chash :: JobRunState -> Int
hashWithSalt :: Int -> JobRunState -> Int
$chashWithSalt :: Int -> JobRunState -> Int
Prelude.Hashable,
JobRunState -> ()
(JobRunState -> ()) -> NFData JobRunState
forall a. (a -> ()) -> NFData a
rnf :: JobRunState -> ()
$crnf :: JobRunState -> ()
Prelude.NFData,
Text -> Either String JobRunState
(Text -> Either String JobRunState) -> FromText JobRunState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String JobRunState
$cfromText :: Text -> Either String JobRunState
Core.FromText,
JobRunState -> Text
(JobRunState -> Text) -> ToText JobRunState
forall a. (a -> Text) -> ToText a
toText :: JobRunState -> Text
$ctoText :: JobRunState -> Text
Core.ToText,
JobRunState -> ByteString
(JobRunState -> ByteString) -> ToByteString JobRunState
forall a. (a -> ByteString) -> ToByteString a
toBS :: JobRunState -> ByteString
$ctoBS :: JobRunState -> ByteString
Core.ToByteString,
JobRunState -> ByteStringBuilder
(JobRunState -> ByteStringBuilder) -> ToLog JobRunState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: JobRunState -> ByteStringBuilder
$cbuild :: JobRunState -> ByteStringBuilder
Core.ToLog,
HeaderName -> JobRunState -> [Header]
(HeaderName -> JobRunState -> [Header]) -> ToHeader JobRunState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> JobRunState -> [Header]
$ctoHeader :: HeaderName -> JobRunState -> [Header]
Core.ToHeader,
JobRunState -> QueryString
(JobRunState -> QueryString) -> ToQuery JobRunState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: JobRunState -> QueryString
$ctoQuery :: JobRunState -> QueryString
Core.ToQuery,
Value -> Parser [JobRunState]
Value -> Parser JobRunState
(Value -> Parser JobRunState)
-> (Value -> Parser [JobRunState]) -> FromJSON JobRunState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [JobRunState]
$cparseJSONList :: Value -> Parser [JobRunState]
parseJSON :: Value -> Parser JobRunState
$cparseJSON :: Value -> Parser JobRunState
Core.FromJSON,
FromJSONKeyFunction [JobRunState]
FromJSONKeyFunction JobRunState
FromJSONKeyFunction JobRunState
-> FromJSONKeyFunction [JobRunState] -> FromJSONKey JobRunState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [JobRunState]
$cfromJSONKeyList :: FromJSONKeyFunction [JobRunState]
fromJSONKey :: FromJSONKeyFunction JobRunState
$cfromJSONKey :: FromJSONKeyFunction JobRunState
Core.FromJSONKey,
[JobRunState] -> Encoding
[JobRunState] -> Value
JobRunState -> Encoding
JobRunState -> Value
(JobRunState -> Value)
-> (JobRunState -> Encoding)
-> ([JobRunState] -> Value)
-> ([JobRunState] -> Encoding)
-> ToJSON JobRunState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [JobRunState] -> Encoding
$ctoEncodingList :: [JobRunState] -> Encoding
toJSONList :: [JobRunState] -> Value
$ctoJSONList :: [JobRunState] -> Value
toEncoding :: JobRunState -> Encoding
$ctoEncoding :: JobRunState -> Encoding
toJSON :: JobRunState -> Value
$ctoJSON :: JobRunState -> Value
Core.ToJSON,
ToJSONKeyFunction [JobRunState]
ToJSONKeyFunction JobRunState
ToJSONKeyFunction JobRunState
-> ToJSONKeyFunction [JobRunState] -> ToJSONKey JobRunState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [JobRunState]
$ctoJSONKeyList :: ToJSONKeyFunction [JobRunState]
toJSONKey :: ToJSONKeyFunction JobRunState
$ctoJSONKey :: ToJSONKeyFunction JobRunState
Core.ToJSONKey,
[Node] -> Either String JobRunState
([Node] -> Either String JobRunState) -> FromXML JobRunState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String JobRunState
$cparseXML :: [Node] -> Either String JobRunState
Core.FromXML,
JobRunState -> XML
(JobRunState -> XML) -> ToXML JobRunState
forall a. (a -> XML) -> ToXML a
toXML :: JobRunState -> XML
$ctoXML :: JobRunState -> XML
Core.ToXML
)
pattern JobRunState_CANCELLED :: JobRunState
pattern $bJobRunState_CANCELLED :: JobRunState
$mJobRunState_CANCELLED :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_CANCELLED = JobRunState' "CANCELLED"
pattern JobRunState_CANCEL_PENDING :: JobRunState
pattern $bJobRunState_CANCEL_PENDING :: JobRunState
$mJobRunState_CANCEL_PENDING :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_CANCEL_PENDING = JobRunState' "CANCEL_PENDING"
pattern JobRunState_COMPLETED :: JobRunState
pattern $bJobRunState_COMPLETED :: JobRunState
$mJobRunState_COMPLETED :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_COMPLETED = JobRunState' "COMPLETED"
pattern JobRunState_FAILED :: JobRunState
pattern $bJobRunState_FAILED :: JobRunState
$mJobRunState_FAILED :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_FAILED = JobRunState' "FAILED"
pattern JobRunState_PENDING :: JobRunState
pattern $bJobRunState_PENDING :: JobRunState
$mJobRunState_PENDING :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_PENDING = JobRunState' "PENDING"
pattern JobRunState_RUNNING :: JobRunState
pattern $bJobRunState_RUNNING :: JobRunState
$mJobRunState_RUNNING :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_RUNNING = JobRunState' "RUNNING"
pattern JobRunState_SUBMITTED :: JobRunState
pattern $bJobRunState_SUBMITTED :: JobRunState
$mJobRunState_SUBMITTED :: forall r. JobRunState -> (Void# -> r) -> (Void# -> r) -> r
JobRunState_SUBMITTED = JobRunState' "SUBMITTED"
{-# COMPLETE
JobRunState_CANCELLED,
JobRunState_CANCEL_PENDING,
JobRunState_COMPLETED,
JobRunState_FAILED,
JobRunState_PENDING,
JobRunState_RUNNING,
JobRunState_SUBMITTED,
JobRunState'
#-}