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

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

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

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

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

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

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

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

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

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