{-# 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.LabelingJobStatus
-- 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.LabelingJobStatus
  ( LabelingJobStatus
      ( ..,
        LabelingJobStatus_Completed,
        LabelingJobStatus_Failed,
        LabelingJobStatus_InProgress,
        LabelingJobStatus_Initializing,
        LabelingJobStatus_Stopped,
        LabelingJobStatus_Stopping
      ),
  )
where

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

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

pattern LabelingJobStatus_Completed :: LabelingJobStatus
pattern $bLabelingJobStatus_Completed :: LabelingJobStatus
$mLabelingJobStatus_Completed :: forall {r}. LabelingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LabelingJobStatus_Completed = LabelingJobStatus' "Completed"

pattern LabelingJobStatus_Failed :: LabelingJobStatus
pattern $bLabelingJobStatus_Failed :: LabelingJobStatus
$mLabelingJobStatus_Failed :: forall {r}. LabelingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LabelingJobStatus_Failed = LabelingJobStatus' "Failed"

pattern LabelingJobStatus_InProgress :: LabelingJobStatus
pattern $bLabelingJobStatus_InProgress :: LabelingJobStatus
$mLabelingJobStatus_InProgress :: forall {r}. LabelingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LabelingJobStatus_InProgress = LabelingJobStatus' "InProgress"

pattern LabelingJobStatus_Initializing :: LabelingJobStatus
pattern $bLabelingJobStatus_Initializing :: LabelingJobStatus
$mLabelingJobStatus_Initializing :: forall {r}. LabelingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LabelingJobStatus_Initializing = LabelingJobStatus' "Initializing"

pattern LabelingJobStatus_Stopped :: LabelingJobStatus
pattern $bLabelingJobStatus_Stopped :: LabelingJobStatus
$mLabelingJobStatus_Stopped :: forall {r}. LabelingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LabelingJobStatus_Stopped = LabelingJobStatus' "Stopped"

pattern LabelingJobStatus_Stopping :: LabelingJobStatus
pattern $bLabelingJobStatus_Stopping :: LabelingJobStatus
$mLabelingJobStatus_Stopping :: forall {r}. LabelingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LabelingJobStatus_Stopping = LabelingJobStatus' "Stopping"

{-# COMPLETE
  LabelingJobStatus_Completed,
  LabelingJobStatus_Failed,
  LabelingJobStatus_InProgress,
  LabelingJobStatus_Initializing,
  LabelingJobStatus_Stopped,
  LabelingJobStatus_Stopping,
  LabelingJobStatus'
  #-}