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