{-# 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.CompilationJobStatus
-- 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.CompilationJobStatus
  ( CompilationJobStatus
      ( ..,
        CompilationJobStatus_COMPLETED,
        CompilationJobStatus_FAILED,
        CompilationJobStatus_INPROGRESS,
        CompilationJobStatus_STARTING,
        CompilationJobStatus_STOPPED,
        CompilationJobStatus_STOPPING
      ),
  )
where

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

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

pattern CompilationJobStatus_COMPLETED :: CompilationJobStatus
pattern $bCompilationJobStatus_COMPLETED :: CompilationJobStatus
$mCompilationJobStatus_COMPLETED :: forall {r}.
CompilationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CompilationJobStatus_COMPLETED = CompilationJobStatus' "COMPLETED"

pattern CompilationJobStatus_FAILED :: CompilationJobStatus
pattern $bCompilationJobStatus_FAILED :: CompilationJobStatus
$mCompilationJobStatus_FAILED :: forall {r}.
CompilationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CompilationJobStatus_FAILED = CompilationJobStatus' "FAILED"

pattern CompilationJobStatus_INPROGRESS :: CompilationJobStatus
pattern $bCompilationJobStatus_INPROGRESS :: CompilationJobStatus
$mCompilationJobStatus_INPROGRESS :: forall {r}.
CompilationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CompilationJobStatus_INPROGRESS = CompilationJobStatus' "INPROGRESS"

pattern CompilationJobStatus_STARTING :: CompilationJobStatus
pattern $bCompilationJobStatus_STARTING :: CompilationJobStatus
$mCompilationJobStatus_STARTING :: forall {r}.
CompilationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CompilationJobStatus_STARTING = CompilationJobStatus' "STARTING"

pattern CompilationJobStatus_STOPPED :: CompilationJobStatus
pattern $bCompilationJobStatus_STOPPED :: CompilationJobStatus
$mCompilationJobStatus_STOPPED :: forall {r}.
CompilationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CompilationJobStatus_STOPPED = CompilationJobStatus' "STOPPED"

pattern CompilationJobStatus_STOPPING :: CompilationJobStatus
pattern $bCompilationJobStatus_STOPPING :: CompilationJobStatus
$mCompilationJobStatus_STOPPING :: forall {r}.
CompilationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CompilationJobStatus_STOPPING = CompilationJobStatus' "STOPPING"

{-# COMPLETE
  CompilationJobStatus_COMPLETED,
  CompilationJobStatus_FAILED,
  CompilationJobStatus_INPROGRESS,
  CompilationJobStatus_STARTING,
  CompilationJobStatus_STOPPED,
  CompilationJobStatus_STOPPING,
  CompilationJobStatus'
  #-}