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