{-# 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.ImageStatus
( ImageStatus
( ..,
ImageStatus_CREATED,
ImageStatus_CREATE_FAILED,
ImageStatus_CREATING,
ImageStatus_DELETE_FAILED,
ImageStatus_DELETING,
ImageStatus_UPDATE_FAILED,
ImageStatus_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ImageStatus = ImageStatus'
{ ImageStatus -> Text
fromImageStatus ::
Core.Text
}
deriving stock
( Int -> ImageStatus -> ShowS
[ImageStatus] -> ShowS
ImageStatus -> String
(Int -> ImageStatus -> ShowS)
-> (ImageStatus -> String)
-> ([ImageStatus] -> ShowS)
-> Show ImageStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImageStatus] -> ShowS
$cshowList :: [ImageStatus] -> ShowS
show :: ImageStatus -> String
$cshow :: ImageStatus -> String
showsPrec :: Int -> ImageStatus -> ShowS
$cshowsPrec :: Int -> ImageStatus -> ShowS
Prelude.Show,
ReadPrec [ImageStatus]
ReadPrec ImageStatus
Int -> ReadS ImageStatus
ReadS [ImageStatus]
(Int -> ReadS ImageStatus)
-> ReadS [ImageStatus]
-> ReadPrec ImageStatus
-> ReadPrec [ImageStatus]
-> Read ImageStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImageStatus]
$creadListPrec :: ReadPrec [ImageStatus]
readPrec :: ReadPrec ImageStatus
$creadPrec :: ReadPrec ImageStatus
readList :: ReadS [ImageStatus]
$creadList :: ReadS [ImageStatus]
readsPrec :: Int -> ReadS ImageStatus
$creadsPrec :: Int -> ReadS ImageStatus
Prelude.Read,
ImageStatus -> ImageStatus -> Bool
(ImageStatus -> ImageStatus -> Bool)
-> (ImageStatus -> ImageStatus -> Bool) -> Eq ImageStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageStatus -> ImageStatus -> Bool
$c/= :: ImageStatus -> ImageStatus -> Bool
== :: ImageStatus -> ImageStatus -> Bool
$c== :: ImageStatus -> ImageStatus -> Bool
Prelude.Eq,
Eq ImageStatus
Eq ImageStatus
-> (ImageStatus -> ImageStatus -> Ordering)
-> (ImageStatus -> ImageStatus -> Bool)
-> (ImageStatus -> ImageStatus -> Bool)
-> (ImageStatus -> ImageStatus -> Bool)
-> (ImageStatus -> ImageStatus -> Bool)
-> (ImageStatus -> ImageStatus -> ImageStatus)
-> (ImageStatus -> ImageStatus -> ImageStatus)
-> Ord ImageStatus
ImageStatus -> ImageStatus -> Bool
ImageStatus -> ImageStatus -> Ordering
ImageStatus -> ImageStatus -> ImageStatus
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 :: ImageStatus -> ImageStatus -> ImageStatus
$cmin :: ImageStatus -> ImageStatus -> ImageStatus
max :: ImageStatus -> ImageStatus -> ImageStatus
$cmax :: ImageStatus -> ImageStatus -> ImageStatus
>= :: ImageStatus -> ImageStatus -> Bool
$c>= :: ImageStatus -> ImageStatus -> Bool
> :: ImageStatus -> ImageStatus -> Bool
$c> :: ImageStatus -> ImageStatus -> Bool
<= :: ImageStatus -> ImageStatus -> Bool
$c<= :: ImageStatus -> ImageStatus -> Bool
< :: ImageStatus -> ImageStatus -> Bool
$c< :: ImageStatus -> ImageStatus -> Bool
compare :: ImageStatus -> ImageStatus -> Ordering
$ccompare :: ImageStatus -> ImageStatus -> Ordering
$cp1Ord :: Eq ImageStatus
Prelude.Ord,
(forall x. ImageStatus -> Rep ImageStatus x)
-> (forall x. Rep ImageStatus x -> ImageStatus)
-> Generic ImageStatus
forall x. Rep ImageStatus x -> ImageStatus
forall x. ImageStatus -> Rep ImageStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImageStatus x -> ImageStatus
$cfrom :: forall x. ImageStatus -> Rep ImageStatus x
Prelude.Generic
)
deriving newtype
( Int -> ImageStatus -> Int
ImageStatus -> Int
(Int -> ImageStatus -> Int)
-> (ImageStatus -> Int) -> Hashable ImageStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ImageStatus -> Int
$chash :: ImageStatus -> Int
hashWithSalt :: Int -> ImageStatus -> Int
$chashWithSalt :: Int -> ImageStatus -> Int
Prelude.Hashable,
ImageStatus -> ()
(ImageStatus -> ()) -> NFData ImageStatus
forall a. (a -> ()) -> NFData a
rnf :: ImageStatus -> ()
$crnf :: ImageStatus -> ()
Prelude.NFData,
Text -> Either String ImageStatus
(Text -> Either String ImageStatus) -> FromText ImageStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ImageStatus
$cfromText :: Text -> Either String ImageStatus
Core.FromText,
ImageStatus -> Text
(ImageStatus -> Text) -> ToText ImageStatus
forall a. (a -> Text) -> ToText a
toText :: ImageStatus -> Text
$ctoText :: ImageStatus -> Text
Core.ToText,
ImageStatus -> ByteString
(ImageStatus -> ByteString) -> ToByteString ImageStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ImageStatus -> ByteString
$ctoBS :: ImageStatus -> ByteString
Core.ToByteString,
ImageStatus -> ByteStringBuilder
(ImageStatus -> ByteStringBuilder) -> ToLog ImageStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ImageStatus -> ByteStringBuilder
$cbuild :: ImageStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ImageStatus -> [Header]
(HeaderName -> ImageStatus -> [Header]) -> ToHeader ImageStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ImageStatus -> [Header]
$ctoHeader :: HeaderName -> ImageStatus -> [Header]
Core.ToHeader,
ImageStatus -> QueryString
(ImageStatus -> QueryString) -> ToQuery ImageStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ImageStatus -> QueryString
$ctoQuery :: ImageStatus -> QueryString
Core.ToQuery,
Value -> Parser [ImageStatus]
Value -> Parser ImageStatus
(Value -> Parser ImageStatus)
-> (Value -> Parser [ImageStatus]) -> FromJSON ImageStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImageStatus]
$cparseJSONList :: Value -> Parser [ImageStatus]
parseJSON :: Value -> Parser ImageStatus
$cparseJSON :: Value -> Parser ImageStatus
Core.FromJSON,
FromJSONKeyFunction [ImageStatus]
FromJSONKeyFunction ImageStatus
FromJSONKeyFunction ImageStatus
-> FromJSONKeyFunction [ImageStatus] -> FromJSONKey ImageStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ImageStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ImageStatus]
fromJSONKey :: FromJSONKeyFunction ImageStatus
$cfromJSONKey :: FromJSONKeyFunction ImageStatus
Core.FromJSONKey,
[ImageStatus] -> Encoding
[ImageStatus] -> Value
ImageStatus -> Encoding
ImageStatus -> Value
(ImageStatus -> Value)
-> (ImageStatus -> Encoding)
-> ([ImageStatus] -> Value)
-> ([ImageStatus] -> Encoding)
-> ToJSON ImageStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImageStatus] -> Encoding
$ctoEncodingList :: [ImageStatus] -> Encoding
toJSONList :: [ImageStatus] -> Value
$ctoJSONList :: [ImageStatus] -> Value
toEncoding :: ImageStatus -> Encoding
$ctoEncoding :: ImageStatus -> Encoding
toJSON :: ImageStatus -> Value
$ctoJSON :: ImageStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ImageStatus]
ToJSONKeyFunction ImageStatus
ToJSONKeyFunction ImageStatus
-> ToJSONKeyFunction [ImageStatus] -> ToJSONKey ImageStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ImageStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ImageStatus]
toJSONKey :: ToJSONKeyFunction ImageStatus
$ctoJSONKey :: ToJSONKeyFunction ImageStatus
Core.ToJSONKey,
[Node] -> Either String ImageStatus
([Node] -> Either String ImageStatus) -> FromXML ImageStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ImageStatus
$cparseXML :: [Node] -> Either String ImageStatus
Core.FromXML,
ImageStatus -> XML
(ImageStatus -> XML) -> ToXML ImageStatus
forall a. (a -> XML) -> ToXML a
toXML :: ImageStatus -> XML
$ctoXML :: ImageStatus -> XML
Core.ToXML
)
pattern ImageStatus_CREATED :: ImageStatus
pattern $bImageStatus_CREATED :: ImageStatus
$mImageStatus_CREATED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_CREATED = ImageStatus' "CREATED"
pattern ImageStatus_CREATE_FAILED :: ImageStatus
pattern $bImageStatus_CREATE_FAILED :: ImageStatus
$mImageStatus_CREATE_FAILED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_CREATE_FAILED = ImageStatus' "CREATE_FAILED"
pattern ImageStatus_CREATING :: ImageStatus
pattern $bImageStatus_CREATING :: ImageStatus
$mImageStatus_CREATING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_CREATING = ImageStatus' "CREATING"
pattern ImageStatus_DELETE_FAILED :: ImageStatus
pattern $bImageStatus_DELETE_FAILED :: ImageStatus
$mImageStatus_DELETE_FAILED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_DELETE_FAILED = ImageStatus' "DELETE_FAILED"
pattern ImageStatus_DELETING :: ImageStatus
pattern $bImageStatus_DELETING :: ImageStatus
$mImageStatus_DELETING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_DELETING = ImageStatus' "DELETING"
pattern ImageStatus_UPDATE_FAILED :: ImageStatus
pattern $bImageStatus_UPDATE_FAILED :: ImageStatus
$mImageStatus_UPDATE_FAILED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_UPDATE_FAILED = ImageStatus' "UPDATE_FAILED"
pattern ImageStatus_UPDATING :: ImageStatus
pattern $bImageStatus_UPDATING :: ImageStatus
$mImageStatus_UPDATING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_UPDATING = ImageStatus' "UPDATING"
{-# COMPLETE
ImageStatus_CREATED,
ImageStatus_CREATE_FAILED,
ImageStatus_CREATING,
ImageStatus_DELETE_FAILED,
ImageStatus_DELETING,
ImageStatus_UPDATE_FAILED,
ImageStatus_UPDATING,
ImageStatus'
#-}