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