{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.ProcessingJobStatus
( ProcessingJobStatus
( ..,
ProcessingJobStatus_Completed,
ProcessingJobStatus_Failed,
ProcessingJobStatus_InProgress,
ProcessingJobStatus_Stopped,
ProcessingJobStatus_Stopping
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ProcessingJobStatus = ProcessingJobStatus'
{ ProcessingJobStatus -> Text
fromProcessingJobStatus ::
Core.Text
}
deriving stock
( Int -> ProcessingJobStatus -> ShowS
[ProcessingJobStatus] -> ShowS
ProcessingJobStatus -> String
(Int -> ProcessingJobStatus -> ShowS)
-> (ProcessingJobStatus -> String)
-> ([ProcessingJobStatus] -> ShowS)
-> Show ProcessingJobStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProcessingJobStatus] -> ShowS
$cshowList :: [ProcessingJobStatus] -> ShowS
show :: ProcessingJobStatus -> String
$cshow :: ProcessingJobStatus -> String
showsPrec :: Int -> ProcessingJobStatus -> ShowS
$cshowsPrec :: Int -> ProcessingJobStatus -> ShowS
Prelude.Show,
ReadPrec [ProcessingJobStatus]
ReadPrec ProcessingJobStatus
Int -> ReadS ProcessingJobStatus
ReadS [ProcessingJobStatus]
(Int -> ReadS ProcessingJobStatus)
-> ReadS [ProcessingJobStatus]
-> ReadPrec ProcessingJobStatus
-> ReadPrec [ProcessingJobStatus]
-> Read ProcessingJobStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProcessingJobStatus]
$creadListPrec :: ReadPrec [ProcessingJobStatus]
readPrec :: ReadPrec ProcessingJobStatus
$creadPrec :: ReadPrec ProcessingJobStatus
readList :: ReadS [ProcessingJobStatus]
$creadList :: ReadS [ProcessingJobStatus]
readsPrec :: Int -> ReadS ProcessingJobStatus
$creadsPrec :: Int -> ReadS ProcessingJobStatus
Prelude.Read,
ProcessingJobStatus -> ProcessingJobStatus -> Bool
(ProcessingJobStatus -> ProcessingJobStatus -> Bool)
-> (ProcessingJobStatus -> ProcessingJobStatus -> Bool)
-> Eq ProcessingJobStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
$c/= :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
== :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
$c== :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
Prelude.Eq,
Eq ProcessingJobStatus
Eq ProcessingJobStatus
-> (ProcessingJobStatus -> ProcessingJobStatus -> Ordering)
-> (ProcessingJobStatus -> ProcessingJobStatus -> Bool)
-> (ProcessingJobStatus -> ProcessingJobStatus -> Bool)
-> (ProcessingJobStatus -> ProcessingJobStatus -> Bool)
-> (ProcessingJobStatus -> ProcessingJobStatus -> Bool)
-> (ProcessingJobStatus
-> ProcessingJobStatus -> ProcessingJobStatus)
-> (ProcessingJobStatus
-> ProcessingJobStatus -> ProcessingJobStatus)
-> Ord ProcessingJobStatus
ProcessingJobStatus -> ProcessingJobStatus -> Bool
ProcessingJobStatus -> ProcessingJobStatus -> Ordering
ProcessingJobStatus -> ProcessingJobStatus -> ProcessingJobStatus
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 :: ProcessingJobStatus -> ProcessingJobStatus -> ProcessingJobStatus
$cmin :: ProcessingJobStatus -> ProcessingJobStatus -> ProcessingJobStatus
max :: ProcessingJobStatus -> ProcessingJobStatus -> ProcessingJobStatus
$cmax :: ProcessingJobStatus -> ProcessingJobStatus -> ProcessingJobStatus
>= :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
$c>= :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
> :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
$c> :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
<= :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
$c<= :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
< :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
$c< :: ProcessingJobStatus -> ProcessingJobStatus -> Bool
compare :: ProcessingJobStatus -> ProcessingJobStatus -> Ordering
$ccompare :: ProcessingJobStatus -> ProcessingJobStatus -> Ordering
$cp1Ord :: Eq ProcessingJobStatus
Prelude.Ord,
(forall x. ProcessingJobStatus -> Rep ProcessingJobStatus x)
-> (forall x. Rep ProcessingJobStatus x -> ProcessingJobStatus)
-> Generic ProcessingJobStatus
forall x. Rep ProcessingJobStatus x -> ProcessingJobStatus
forall x. ProcessingJobStatus -> Rep ProcessingJobStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProcessingJobStatus x -> ProcessingJobStatus
$cfrom :: forall x. ProcessingJobStatus -> Rep ProcessingJobStatus x
Prelude.Generic
)
deriving newtype
( Int -> ProcessingJobStatus -> Int
ProcessingJobStatus -> Int
(Int -> ProcessingJobStatus -> Int)
-> (ProcessingJobStatus -> Int) -> Hashable ProcessingJobStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ProcessingJobStatus -> Int
$chash :: ProcessingJobStatus -> Int
hashWithSalt :: Int -> ProcessingJobStatus -> Int
$chashWithSalt :: Int -> ProcessingJobStatus -> Int
Prelude.Hashable,
ProcessingJobStatus -> ()
(ProcessingJobStatus -> ()) -> NFData ProcessingJobStatus
forall a. (a -> ()) -> NFData a
rnf :: ProcessingJobStatus -> ()
$crnf :: ProcessingJobStatus -> ()
Prelude.NFData,
Text -> Either String ProcessingJobStatus
(Text -> Either String ProcessingJobStatus)
-> FromText ProcessingJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProcessingJobStatus
$cfromText :: Text -> Either String ProcessingJobStatus
Core.FromText,
ProcessingJobStatus -> Text
(ProcessingJobStatus -> Text) -> ToText ProcessingJobStatus
forall a. (a -> Text) -> ToText a
toText :: ProcessingJobStatus -> Text
$ctoText :: ProcessingJobStatus -> Text
Core.ToText,
ProcessingJobStatus -> ByteString
(ProcessingJobStatus -> ByteString)
-> ToByteString ProcessingJobStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProcessingJobStatus -> ByteString
$ctoBS :: ProcessingJobStatus -> ByteString
Core.ToByteString,
ProcessingJobStatus -> ByteStringBuilder
(ProcessingJobStatus -> ByteStringBuilder)
-> ToLog ProcessingJobStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProcessingJobStatus -> ByteStringBuilder
$cbuild :: ProcessingJobStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ProcessingJobStatus -> [Header]
(HeaderName -> ProcessingJobStatus -> [Header])
-> ToHeader ProcessingJobStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProcessingJobStatus -> [Header]
$ctoHeader :: HeaderName -> ProcessingJobStatus -> [Header]
Core.ToHeader,
ProcessingJobStatus -> QueryString
(ProcessingJobStatus -> QueryString) -> ToQuery ProcessingJobStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProcessingJobStatus -> QueryString
$ctoQuery :: ProcessingJobStatus -> QueryString
Core.ToQuery,
Value -> Parser [ProcessingJobStatus]
Value -> Parser ProcessingJobStatus
(Value -> Parser ProcessingJobStatus)
-> (Value -> Parser [ProcessingJobStatus])
-> FromJSON ProcessingJobStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ProcessingJobStatus]
$cparseJSONList :: Value -> Parser [ProcessingJobStatus]
parseJSON :: Value -> Parser ProcessingJobStatus
$cparseJSON :: Value -> Parser ProcessingJobStatus
Core.FromJSON,
FromJSONKeyFunction [ProcessingJobStatus]
FromJSONKeyFunction ProcessingJobStatus
FromJSONKeyFunction ProcessingJobStatus
-> FromJSONKeyFunction [ProcessingJobStatus]
-> FromJSONKey ProcessingJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProcessingJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ProcessingJobStatus]
fromJSONKey :: FromJSONKeyFunction ProcessingJobStatus
$cfromJSONKey :: FromJSONKeyFunction ProcessingJobStatus
Core.FromJSONKey,
[ProcessingJobStatus] -> Encoding
[ProcessingJobStatus] -> Value
ProcessingJobStatus -> Encoding
ProcessingJobStatus -> Value
(ProcessingJobStatus -> Value)
-> (ProcessingJobStatus -> Encoding)
-> ([ProcessingJobStatus] -> Value)
-> ([ProcessingJobStatus] -> Encoding)
-> ToJSON ProcessingJobStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ProcessingJobStatus] -> Encoding
$ctoEncodingList :: [ProcessingJobStatus] -> Encoding
toJSONList :: [ProcessingJobStatus] -> Value
$ctoJSONList :: [ProcessingJobStatus] -> Value
toEncoding :: ProcessingJobStatus -> Encoding
$ctoEncoding :: ProcessingJobStatus -> Encoding
toJSON :: ProcessingJobStatus -> Value
$ctoJSON :: ProcessingJobStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ProcessingJobStatus]
ToJSONKeyFunction ProcessingJobStatus
ToJSONKeyFunction ProcessingJobStatus
-> ToJSONKeyFunction [ProcessingJobStatus]
-> ToJSONKey ProcessingJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProcessingJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ProcessingJobStatus]
toJSONKey :: ToJSONKeyFunction ProcessingJobStatus
$ctoJSONKey :: ToJSONKeyFunction ProcessingJobStatus
Core.ToJSONKey,
[Node] -> Either String ProcessingJobStatus
([Node] -> Either String ProcessingJobStatus)
-> FromXML ProcessingJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProcessingJobStatus
$cparseXML :: [Node] -> Either String ProcessingJobStatus
Core.FromXML,
ProcessingJobStatus -> XML
(ProcessingJobStatus -> XML) -> ToXML ProcessingJobStatus
forall a. (a -> XML) -> ToXML a
toXML :: ProcessingJobStatus -> XML
$ctoXML :: ProcessingJobStatus -> XML
Core.ToXML
)
pattern ProcessingJobStatus_Completed :: ProcessingJobStatus
pattern $bProcessingJobStatus_Completed :: ProcessingJobStatus
$mProcessingJobStatus_Completed :: forall r. ProcessingJobStatus -> (Void# -> r) -> (Void# -> r) -> r
ProcessingJobStatus_Completed = ProcessingJobStatus' "Completed"
pattern ProcessingJobStatus_Failed :: ProcessingJobStatus
pattern $bProcessingJobStatus_Failed :: ProcessingJobStatus
$mProcessingJobStatus_Failed :: forall r. ProcessingJobStatus -> (Void# -> r) -> (Void# -> r) -> r
ProcessingJobStatus_Failed = ProcessingJobStatus' "Failed"
pattern ProcessingJobStatus_InProgress :: ProcessingJobStatus
pattern $bProcessingJobStatus_InProgress :: ProcessingJobStatus
$mProcessingJobStatus_InProgress :: forall r. ProcessingJobStatus -> (Void# -> r) -> (Void# -> r) -> r
ProcessingJobStatus_InProgress = ProcessingJobStatus' "InProgress"
pattern ProcessingJobStatus_Stopped :: ProcessingJobStatus
pattern $bProcessingJobStatus_Stopped :: ProcessingJobStatus
$mProcessingJobStatus_Stopped :: forall r. ProcessingJobStatus -> (Void# -> r) -> (Void# -> r) -> r
ProcessingJobStatus_Stopped = ProcessingJobStatus' "Stopped"
pattern ProcessingJobStatus_Stopping :: ProcessingJobStatus
pattern $bProcessingJobStatus_Stopping :: ProcessingJobStatus
$mProcessingJobStatus_Stopping :: forall r. ProcessingJobStatus -> (Void# -> r) -> (Void# -> r) -> r
ProcessingJobStatus_Stopping = ProcessingJobStatus' "Stopping"
{-# COMPLETE
ProcessingJobStatus_Completed,
ProcessingJobStatus_Failed,
ProcessingJobStatus_InProgress,
ProcessingJobStatus_Stopped,
ProcessingJobStatus_Stopping,
ProcessingJobStatus'
#-}