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