{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype LabelingJobStatus = LabelingJobStatus'
  { LabelingJobStatus -> Text
fromLabelingJobStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> LabelingJobStatus -> ShowS
[LabelingJobStatus] -> ShowS
LabelingJobStatus -> String
(Int -> LabelingJobStatus -> ShowS)
-> (LabelingJobStatus -> String)
-> ([LabelingJobStatus] -> ShowS)
-> Show LabelingJobStatus
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]
(Int -> ReadS LabelingJobStatus)
-> ReadS [LabelingJobStatus]
-> ReadPrec LabelingJobStatus
-> ReadPrec [LabelingJobStatus]
-> Read 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
(LabelingJobStatus -> LabelingJobStatus -> Bool)
-> (LabelingJobStatus -> LabelingJobStatus -> Bool)
-> Eq LabelingJobStatus
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
Eq LabelingJobStatus
-> (LabelingJobStatus -> LabelingJobStatus -> Ordering)
-> (LabelingJobStatus -> LabelingJobStatus -> Bool)
-> (LabelingJobStatus -> LabelingJobStatus -> Bool)
-> (LabelingJobStatus -> LabelingJobStatus -> Bool)
-> (LabelingJobStatus -> LabelingJobStatus -> Bool)
-> (LabelingJobStatus -> LabelingJobStatus -> LabelingJobStatus)
-> (LabelingJobStatus -> LabelingJobStatus -> LabelingJobStatus)
-> Ord 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
$cp1Ord :: Eq LabelingJobStatus
Prelude.Ord,
      (forall x. LabelingJobStatus -> Rep LabelingJobStatus x)
-> (forall x. Rep LabelingJobStatus x -> LabelingJobStatus)
-> Generic LabelingJobStatus
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
    ( Int -> LabelingJobStatus -> Int
LabelingJobStatus -> Int
(Int -> LabelingJobStatus -> Int)
-> (LabelingJobStatus -> Int) -> Hashable LabelingJobStatus
forall 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 -> ()
(LabelingJobStatus -> ()) -> NFData LabelingJobStatus
forall a. (a -> ()) -> NFData a
rnf :: LabelingJobStatus -> ()
$crnf :: LabelingJobStatus -> ()
Prelude.NFData,
      Text -> Either String LabelingJobStatus
(Text -> Either String LabelingJobStatus)
-> FromText LabelingJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LabelingJobStatus
$cfromText :: Text -> Either String LabelingJobStatus
Core.FromText,
      LabelingJobStatus -> Text
(LabelingJobStatus -> Text) -> ToText LabelingJobStatus
forall a. (a -> Text) -> ToText a
toText :: LabelingJobStatus -> Text
$ctoText :: LabelingJobStatus -> Text
Core.ToText,
      LabelingJobStatus -> ByteString
(LabelingJobStatus -> ByteString) -> ToByteString LabelingJobStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: LabelingJobStatus -> ByteString
$ctoBS :: LabelingJobStatus -> ByteString
Core.ToByteString,
      LabelingJobStatus -> ByteStringBuilder
(LabelingJobStatus -> ByteStringBuilder) -> ToLog LabelingJobStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LabelingJobStatus -> ByteStringBuilder
$cbuild :: LabelingJobStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> LabelingJobStatus -> [Header]
(HeaderName -> LabelingJobStatus -> [Header])
-> ToHeader LabelingJobStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LabelingJobStatus -> [Header]
$ctoHeader :: HeaderName -> LabelingJobStatus -> [Header]
Core.ToHeader,
      LabelingJobStatus -> QueryString
(LabelingJobStatus -> QueryString) -> ToQuery LabelingJobStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LabelingJobStatus -> QueryString
$ctoQuery :: LabelingJobStatus -> QueryString
Core.ToQuery,
      Value -> Parser [LabelingJobStatus]
Value -> Parser LabelingJobStatus
(Value -> Parser LabelingJobStatus)
-> (Value -> Parser [LabelingJobStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [LabelingJobStatus]
FromJSONKeyFunction LabelingJobStatus
FromJSONKeyFunction LabelingJobStatus
-> FromJSONKeyFunction [LabelingJobStatus]
-> FromJSONKey LabelingJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LabelingJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [LabelingJobStatus]
fromJSONKey :: FromJSONKeyFunction LabelingJobStatus
$cfromJSONKey :: FromJSONKeyFunction LabelingJobStatus
Core.FromJSONKey,
      [LabelingJobStatus] -> Encoding
[LabelingJobStatus] -> Value
LabelingJobStatus -> Encoding
LabelingJobStatus -> Value
(LabelingJobStatus -> Value)
-> (LabelingJobStatus -> Encoding)
-> ([LabelingJobStatus] -> Value)
-> ([LabelingJobStatus] -> Encoding)
-> ToJSON LabelingJobStatus
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
Core.ToJSON,
      ToJSONKeyFunction [LabelingJobStatus]
ToJSONKeyFunction LabelingJobStatus
ToJSONKeyFunction LabelingJobStatus
-> ToJSONKeyFunction [LabelingJobStatus]
-> ToJSONKey LabelingJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LabelingJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [LabelingJobStatus]
toJSONKey :: ToJSONKeyFunction LabelingJobStatus
$ctoJSONKey :: ToJSONKeyFunction LabelingJobStatus
Core.ToJSONKey,
      [Node] -> Either String LabelingJobStatus
([Node] -> Either String LabelingJobStatus)
-> FromXML LabelingJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LabelingJobStatus
$cparseXML :: [Node] -> Either String LabelingJobStatus
Core.FromXML,
      LabelingJobStatus -> XML
(LabelingJobStatus -> XML) -> ToXML LabelingJobStatus
forall a. (a -> XML) -> ToXML a
toXML :: LabelingJobStatus -> XML
$ctoXML :: LabelingJobStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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

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