{-# 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.Prelude as Prelude
newtype ScheduleStatus = ScheduleStatus'
{ ScheduleStatus -> Text
fromScheduleStatus ::
Core.Text
}
deriving stock
( Int -> ScheduleStatus -> ShowS
[ScheduleStatus] -> ShowS
ScheduleStatus -> String
(Int -> ScheduleStatus -> ShowS)
-> (ScheduleStatus -> String)
-> ([ScheduleStatus] -> ShowS)
-> Show ScheduleStatus
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]
(Int -> ReadS ScheduleStatus)
-> ReadS [ScheduleStatus]
-> ReadPrec ScheduleStatus
-> ReadPrec [ScheduleStatus]
-> Read 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
(ScheduleStatus -> ScheduleStatus -> Bool)
-> (ScheduleStatus -> ScheduleStatus -> Bool) -> Eq ScheduleStatus
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
Eq ScheduleStatus
-> (ScheduleStatus -> ScheduleStatus -> Ordering)
-> (ScheduleStatus -> ScheduleStatus -> Bool)
-> (ScheduleStatus -> ScheduleStatus -> Bool)
-> (ScheduleStatus -> ScheduleStatus -> Bool)
-> (ScheduleStatus -> ScheduleStatus -> Bool)
-> (ScheduleStatus -> ScheduleStatus -> ScheduleStatus)
-> (ScheduleStatus -> ScheduleStatus -> ScheduleStatus)
-> Ord 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
$cp1Ord :: Eq ScheduleStatus
Prelude.Ord,
(forall x. ScheduleStatus -> Rep ScheduleStatus x)
-> (forall x. Rep ScheduleStatus x -> ScheduleStatus)
-> Generic ScheduleStatus
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
( Int -> ScheduleStatus -> Int
ScheduleStatus -> Int
(Int -> ScheduleStatus -> Int)
-> (ScheduleStatus -> Int) -> Hashable ScheduleStatus
forall 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 -> ()
(ScheduleStatus -> ()) -> NFData ScheduleStatus
forall a. (a -> ()) -> NFData a
rnf :: ScheduleStatus -> ()
$crnf :: ScheduleStatus -> ()
Prelude.NFData,
Text -> Either String ScheduleStatus
(Text -> Either String ScheduleStatus) -> FromText ScheduleStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScheduleStatus
$cfromText :: Text -> Either String ScheduleStatus
Core.FromText,
ScheduleStatus -> Text
(ScheduleStatus -> Text) -> ToText ScheduleStatus
forall a. (a -> Text) -> ToText a
toText :: ScheduleStatus -> Text
$ctoText :: ScheduleStatus -> Text
Core.ToText,
ScheduleStatus -> ByteString
(ScheduleStatus -> ByteString) -> ToByteString ScheduleStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScheduleStatus -> ByteString
$ctoBS :: ScheduleStatus -> ByteString
Core.ToByteString,
ScheduleStatus -> ByteStringBuilder
(ScheduleStatus -> ByteStringBuilder) -> ToLog ScheduleStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScheduleStatus -> ByteStringBuilder
$cbuild :: ScheduleStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ScheduleStatus -> [Header]
(HeaderName -> ScheduleStatus -> [Header])
-> ToHeader ScheduleStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScheduleStatus -> [Header]
$ctoHeader :: HeaderName -> ScheduleStatus -> [Header]
Core.ToHeader,
ScheduleStatus -> QueryString
(ScheduleStatus -> QueryString) -> ToQuery ScheduleStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScheduleStatus -> QueryString
$ctoQuery :: ScheduleStatus -> QueryString
Core.ToQuery,
Value -> Parser [ScheduleStatus]
Value -> Parser ScheduleStatus
(Value -> Parser ScheduleStatus)
-> (Value -> Parser [ScheduleStatus]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ScheduleStatus]
FromJSONKeyFunction ScheduleStatus
FromJSONKeyFunction ScheduleStatus
-> FromJSONKeyFunction [ScheduleStatus]
-> FromJSONKey ScheduleStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScheduleStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ScheduleStatus]
fromJSONKey :: FromJSONKeyFunction ScheduleStatus
$cfromJSONKey :: FromJSONKeyFunction ScheduleStatus
Core.FromJSONKey,
[ScheduleStatus] -> Encoding
[ScheduleStatus] -> Value
ScheduleStatus -> Encoding
ScheduleStatus -> Value
(ScheduleStatus -> Value)
-> (ScheduleStatus -> Encoding)
-> ([ScheduleStatus] -> Value)
-> ([ScheduleStatus] -> Encoding)
-> ToJSON ScheduleStatus
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
Core.ToJSON,
ToJSONKeyFunction [ScheduleStatus]
ToJSONKeyFunction ScheduleStatus
ToJSONKeyFunction ScheduleStatus
-> ToJSONKeyFunction [ScheduleStatus] -> ToJSONKey ScheduleStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScheduleStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ScheduleStatus]
toJSONKey :: ToJSONKeyFunction ScheduleStatus
$ctoJSONKey :: ToJSONKeyFunction ScheduleStatus
Core.ToJSONKey,
[Node] -> Either String ScheduleStatus
([Node] -> Either String ScheduleStatus) -> FromXML ScheduleStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScheduleStatus
$cparseXML :: [Node] -> Either String ScheduleStatus
Core.FromXML,
ScheduleStatus -> XML
(ScheduleStatus -> XML) -> ToXML ScheduleStatus
forall a. (a -> XML) -> ToXML a
toXML :: ScheduleStatus -> XML
$ctoXML :: ScheduleStatus -> XML
Core.ToXML
)
pattern ScheduleStatus_Failed :: ScheduleStatus
pattern $bScheduleStatus_Failed :: ScheduleStatus
$mScheduleStatus_Failed :: forall r. ScheduleStatus -> (Void# -> r) -> (Void# -> r) -> r
ScheduleStatus_Failed = ScheduleStatus' "Failed"
pattern ScheduleStatus_Pending :: ScheduleStatus
pattern $bScheduleStatus_Pending :: ScheduleStatus
$mScheduleStatus_Pending :: forall r. ScheduleStatus -> (Void# -> r) -> (Void# -> r) -> r
ScheduleStatus_Pending = ScheduleStatus' "Pending"
pattern ScheduleStatus_Scheduled :: ScheduleStatus
pattern $bScheduleStatus_Scheduled :: ScheduleStatus
$mScheduleStatus_Scheduled :: forall r. ScheduleStatus -> (Void# -> r) -> (Void# -> r) -> r
ScheduleStatus_Scheduled = ScheduleStatus' "Scheduled"
pattern ScheduleStatus_Stopped :: ScheduleStatus
pattern $bScheduleStatus_Stopped :: ScheduleStatus
$mScheduleStatus_Stopped :: forall r. ScheduleStatus -> (Void# -> r) -> (Void# -> r) -> r
ScheduleStatus_Stopped = ScheduleStatus' "Stopped"
{-# COMPLETE
ScheduleStatus_Failed,
ScheduleStatus_Pending,
ScheduleStatus_Scheduled,
ScheduleStatus_Stopped,
ScheduleStatus'
#-}