{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.ProcessingJobStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.ProcessingJobStatus
  ( ProcessingJobStatus
      ( ..,
        ProcessingJobStatus_Completed,
        ProcessingJobStatus_Failed,
        ProcessingJobStatus_InProgress,
        ProcessingJobStatus_Stopped,
        ProcessingJobStatus_Stopping
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern ProcessingJobStatus_Completed :: ProcessingJobStatus
pattern $bProcessingJobStatus_Completed :: ProcessingJobStatus
$mProcessingJobStatus_Completed :: forall {r}.
ProcessingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingJobStatus_Completed = ProcessingJobStatus' "Completed"

pattern ProcessingJobStatus_Failed :: ProcessingJobStatus
pattern $bProcessingJobStatus_Failed :: ProcessingJobStatus
$mProcessingJobStatus_Failed :: forall {r}.
ProcessingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingJobStatus_Failed = ProcessingJobStatus' "Failed"

pattern ProcessingJobStatus_InProgress :: ProcessingJobStatus
pattern $bProcessingJobStatus_InProgress :: ProcessingJobStatus
$mProcessingJobStatus_InProgress :: forall {r}.
ProcessingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingJobStatus_InProgress = ProcessingJobStatus' "InProgress"

pattern ProcessingJobStatus_Stopped :: ProcessingJobStatus
pattern $bProcessingJobStatus_Stopped :: ProcessingJobStatus
$mProcessingJobStatus_Stopped :: forall {r}.
ProcessingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingJobStatus_Stopped = ProcessingJobStatus' "Stopped"

pattern ProcessingJobStatus_Stopping :: ProcessingJobStatus
pattern $bProcessingJobStatus_Stopping :: ProcessingJobStatus
$mProcessingJobStatus_Stopping :: forall {r}.
ProcessingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingJobStatus_Stopping = ProcessingJobStatus' "Stopping"

{-# COMPLETE
  ProcessingJobStatus_Completed,
  ProcessingJobStatus_Failed,
  ProcessingJobStatus_InProgress,
  ProcessingJobStatus_Stopped,
  ProcessingJobStatus_Stopping,
  ProcessingJobStatus'
  #-}