{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EMR.Types.StepState
( StepState
( ..,
StepState_CANCELLED,
StepState_CANCEL_PENDING,
StepState_COMPLETED,
StepState_FAILED,
StepState_INTERRUPTED,
StepState_PENDING,
StepState_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype StepState = StepState'
{ StepState -> Text
fromStepState ::
Core.Text
}
deriving stock
( Int -> StepState -> ShowS
[StepState] -> ShowS
StepState -> String
(Int -> StepState -> ShowS)
-> (StepState -> String)
-> ([StepState] -> ShowS)
-> Show StepState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StepState] -> ShowS
$cshowList :: [StepState] -> ShowS
show :: StepState -> String
$cshow :: StepState -> String
showsPrec :: Int -> StepState -> ShowS
$cshowsPrec :: Int -> StepState -> ShowS
Prelude.Show,
ReadPrec [StepState]
ReadPrec StepState
Int -> ReadS StepState
ReadS [StepState]
(Int -> ReadS StepState)
-> ReadS [StepState]
-> ReadPrec StepState
-> ReadPrec [StepState]
-> Read StepState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StepState]
$creadListPrec :: ReadPrec [StepState]
readPrec :: ReadPrec StepState
$creadPrec :: ReadPrec StepState
readList :: ReadS [StepState]
$creadList :: ReadS [StepState]
readsPrec :: Int -> ReadS StepState
$creadsPrec :: Int -> ReadS StepState
Prelude.Read,
StepState -> StepState -> Bool
(StepState -> StepState -> Bool)
-> (StepState -> StepState -> Bool) -> Eq StepState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StepState -> StepState -> Bool
$c/= :: StepState -> StepState -> Bool
== :: StepState -> StepState -> Bool
$c== :: StepState -> StepState -> Bool
Prelude.Eq,
Eq StepState
Eq StepState
-> (StepState -> StepState -> Ordering)
-> (StepState -> StepState -> Bool)
-> (StepState -> StepState -> Bool)
-> (StepState -> StepState -> Bool)
-> (StepState -> StepState -> Bool)
-> (StepState -> StepState -> StepState)
-> (StepState -> StepState -> StepState)
-> Ord StepState
StepState -> StepState -> Bool
StepState -> StepState -> Ordering
StepState -> StepState -> StepState
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 :: StepState -> StepState -> StepState
$cmin :: StepState -> StepState -> StepState
max :: StepState -> StepState -> StepState
$cmax :: StepState -> StepState -> StepState
>= :: StepState -> StepState -> Bool
$c>= :: StepState -> StepState -> Bool
> :: StepState -> StepState -> Bool
$c> :: StepState -> StepState -> Bool
<= :: StepState -> StepState -> Bool
$c<= :: StepState -> StepState -> Bool
< :: StepState -> StepState -> Bool
$c< :: StepState -> StepState -> Bool
compare :: StepState -> StepState -> Ordering
$ccompare :: StepState -> StepState -> Ordering
$cp1Ord :: Eq StepState
Prelude.Ord,
(forall x. StepState -> Rep StepState x)
-> (forall x. Rep StepState x -> StepState) -> Generic StepState
forall x. Rep StepState x -> StepState
forall x. StepState -> Rep StepState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StepState x -> StepState
$cfrom :: forall x. StepState -> Rep StepState x
Prelude.Generic
)
deriving newtype
( Int -> StepState -> Int
StepState -> Int
(Int -> StepState -> Int)
-> (StepState -> Int) -> Hashable StepState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StepState -> Int
$chash :: StepState -> Int
hashWithSalt :: Int -> StepState -> Int
$chashWithSalt :: Int -> StepState -> Int
Prelude.Hashable,
StepState -> ()
(StepState -> ()) -> NFData StepState
forall a. (a -> ()) -> NFData a
rnf :: StepState -> ()
$crnf :: StepState -> ()
Prelude.NFData,
Text -> Either String StepState
(Text -> Either String StepState) -> FromText StepState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StepState
$cfromText :: Text -> Either String StepState
Core.FromText,
StepState -> Text
(StepState -> Text) -> ToText StepState
forall a. (a -> Text) -> ToText a
toText :: StepState -> Text
$ctoText :: StepState -> Text
Core.ToText,
StepState -> ByteString
(StepState -> ByteString) -> ToByteString StepState
forall a. (a -> ByteString) -> ToByteString a
toBS :: StepState -> ByteString
$ctoBS :: StepState -> ByteString
Core.ToByteString,
StepState -> ByteStringBuilder
(StepState -> ByteStringBuilder) -> ToLog StepState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StepState -> ByteStringBuilder
$cbuild :: StepState -> ByteStringBuilder
Core.ToLog,
HeaderName -> StepState -> [Header]
(HeaderName -> StepState -> [Header]) -> ToHeader StepState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StepState -> [Header]
$ctoHeader :: HeaderName -> StepState -> [Header]
Core.ToHeader,
StepState -> QueryString
(StepState -> QueryString) -> ToQuery StepState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StepState -> QueryString
$ctoQuery :: StepState -> QueryString
Core.ToQuery,
Value -> Parser [StepState]
Value -> Parser StepState
(Value -> Parser StepState)
-> (Value -> Parser [StepState]) -> FromJSON StepState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StepState]
$cparseJSONList :: Value -> Parser [StepState]
parseJSON :: Value -> Parser StepState
$cparseJSON :: Value -> Parser StepState
Core.FromJSON,
FromJSONKeyFunction [StepState]
FromJSONKeyFunction StepState
FromJSONKeyFunction StepState
-> FromJSONKeyFunction [StepState] -> FromJSONKey StepState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StepState]
$cfromJSONKeyList :: FromJSONKeyFunction [StepState]
fromJSONKey :: FromJSONKeyFunction StepState
$cfromJSONKey :: FromJSONKeyFunction StepState
Core.FromJSONKey,
[StepState] -> Encoding
[StepState] -> Value
StepState -> Encoding
StepState -> Value
(StepState -> Value)
-> (StepState -> Encoding)
-> ([StepState] -> Value)
-> ([StepState] -> Encoding)
-> ToJSON StepState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StepState] -> Encoding
$ctoEncodingList :: [StepState] -> Encoding
toJSONList :: [StepState] -> Value
$ctoJSONList :: [StepState] -> Value
toEncoding :: StepState -> Encoding
$ctoEncoding :: StepState -> Encoding
toJSON :: StepState -> Value
$ctoJSON :: StepState -> Value
Core.ToJSON,
ToJSONKeyFunction [StepState]
ToJSONKeyFunction StepState
ToJSONKeyFunction StepState
-> ToJSONKeyFunction [StepState] -> ToJSONKey StepState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StepState]
$ctoJSONKeyList :: ToJSONKeyFunction [StepState]
toJSONKey :: ToJSONKeyFunction StepState
$ctoJSONKey :: ToJSONKeyFunction StepState
Core.ToJSONKey,
[Node] -> Either String StepState
([Node] -> Either String StepState) -> FromXML StepState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StepState
$cparseXML :: [Node] -> Either String StepState
Core.FromXML,
StepState -> XML
(StepState -> XML) -> ToXML StepState
forall a. (a -> XML) -> ToXML a
toXML :: StepState -> XML
$ctoXML :: StepState -> XML
Core.ToXML
)
pattern StepState_CANCELLED :: StepState
pattern $bStepState_CANCELLED :: StepState
$mStepState_CANCELLED :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_CANCELLED = StepState' "CANCELLED"
pattern StepState_CANCEL_PENDING :: StepState
pattern $bStepState_CANCEL_PENDING :: StepState
$mStepState_CANCEL_PENDING :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_CANCEL_PENDING = StepState' "CANCEL_PENDING"
pattern StepState_COMPLETED :: StepState
pattern $bStepState_COMPLETED :: StepState
$mStepState_COMPLETED :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_COMPLETED = StepState' "COMPLETED"
pattern StepState_FAILED :: StepState
pattern $bStepState_FAILED :: StepState
$mStepState_FAILED :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_FAILED = StepState' "FAILED"
pattern StepState_INTERRUPTED :: StepState
pattern $bStepState_INTERRUPTED :: StepState
$mStepState_INTERRUPTED :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_INTERRUPTED = StepState' "INTERRUPTED"
pattern StepState_PENDING :: StepState
pattern $bStepState_PENDING :: StepState
$mStepState_PENDING :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_PENDING = StepState' "PENDING"
pattern StepState_RUNNING :: StepState
pattern $bStepState_RUNNING :: StepState
$mStepState_RUNNING :: forall r. StepState -> (Void# -> r) -> (Void# -> r) -> r
StepState_RUNNING = StepState' "RUNNING"
{-# COMPLETE
StepState_CANCELLED,
StepState_CANCEL_PENDING,
StepState_COMPLETED,
StepState_FAILED,
StepState_INTERRUPTED,
StepState_PENDING,
StepState_RUNNING,
StepState'
#-}