{-# 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.TransformJobStatus
-- 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.TransformJobStatus
  ( TransformJobStatus
      ( ..,
        TransformJobStatus_Completed,
        TransformJobStatus_Failed,
        TransformJobStatus_InProgress,
        TransformJobStatus_Stopped,
        TransformJobStatus_Stopping
      ),
  )
where

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

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

pattern TransformJobStatus_Completed :: TransformJobStatus
pattern $bTransformJobStatus_Completed :: TransformJobStatus
$mTransformJobStatus_Completed :: forall r. TransformJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TransformJobStatus_Completed = TransformJobStatus' "Completed"

pattern TransformJobStatus_Failed :: TransformJobStatus
pattern $bTransformJobStatus_Failed :: TransformJobStatus
$mTransformJobStatus_Failed :: forall r. TransformJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TransformJobStatus_Failed = TransformJobStatus' "Failed"

pattern TransformJobStatus_InProgress :: TransformJobStatus
pattern $bTransformJobStatus_InProgress :: TransformJobStatus
$mTransformJobStatus_InProgress :: forall r. TransformJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TransformJobStatus_InProgress = TransformJobStatus' "InProgress"

pattern TransformJobStatus_Stopped :: TransformJobStatus
pattern $bTransformJobStatus_Stopped :: TransformJobStatus
$mTransformJobStatus_Stopped :: forall r. TransformJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TransformJobStatus_Stopped = TransformJobStatus' "Stopped"

pattern TransformJobStatus_Stopping :: TransformJobStatus
pattern $bTransformJobStatus_Stopping :: TransformJobStatus
$mTransformJobStatus_Stopping :: forall r. TransformJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TransformJobStatus_Stopping = TransformJobStatus' "Stopping"

{-# COMPLETE
  TransformJobStatus_Completed,
  TransformJobStatus_Failed,
  TransformJobStatus_InProgress,
  TransformJobStatus_Stopped,
  TransformJobStatus_Stopping,
  TransformJobStatus'
  #-}