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