{-# 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.HyperParameterTuningJobStatus
-- 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.HyperParameterTuningJobStatus
  ( HyperParameterTuningJobStatus
      ( ..,
        HyperParameterTuningJobStatus_Completed,
        HyperParameterTuningJobStatus_Failed,
        HyperParameterTuningJobStatus_InProgress,
        HyperParameterTuningJobStatus_Stopped,
        HyperParameterTuningJobStatus_Stopping
      ),
  )
where

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

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

pattern HyperParameterTuningJobStatus_Completed :: HyperParameterTuningJobStatus
pattern $bHyperParameterTuningJobStatus_Completed :: HyperParameterTuningJobStatus
$mHyperParameterTuningJobStatus_Completed :: forall r.
HyperParameterTuningJobStatus -> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobStatus_Completed = HyperParameterTuningJobStatus' "Completed"

pattern HyperParameterTuningJobStatus_Failed :: HyperParameterTuningJobStatus
pattern $bHyperParameterTuningJobStatus_Failed :: HyperParameterTuningJobStatus
$mHyperParameterTuningJobStatus_Failed :: forall r.
HyperParameterTuningJobStatus -> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobStatus_Failed = HyperParameterTuningJobStatus' "Failed"

pattern HyperParameterTuningJobStatus_InProgress :: HyperParameterTuningJobStatus
pattern $bHyperParameterTuningJobStatus_InProgress :: HyperParameterTuningJobStatus
$mHyperParameterTuningJobStatus_InProgress :: forall r.
HyperParameterTuningJobStatus -> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobStatus_InProgress = HyperParameterTuningJobStatus' "InProgress"

pattern HyperParameterTuningJobStatus_Stopped :: HyperParameterTuningJobStatus
pattern $bHyperParameterTuningJobStatus_Stopped :: HyperParameterTuningJobStatus
$mHyperParameterTuningJobStatus_Stopped :: forall r.
HyperParameterTuningJobStatus -> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobStatus_Stopped = HyperParameterTuningJobStatus' "Stopped"

pattern HyperParameterTuningJobStatus_Stopping :: HyperParameterTuningJobStatus
pattern $bHyperParameterTuningJobStatus_Stopping :: HyperParameterTuningJobStatus
$mHyperParameterTuningJobStatus_Stopping :: forall r.
HyperParameterTuningJobStatus -> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobStatus_Stopping = HyperParameterTuningJobStatus' "Stopping"

{-# COMPLETE
  HyperParameterTuningJobStatus_Completed,
  HyperParameterTuningJobStatus_Failed,
  HyperParameterTuningJobStatus_InProgress,
  HyperParameterTuningJobStatus_Stopped,
  HyperParameterTuningJobStatus_Stopping,
  HyperParameterTuningJobStatus'
  #-}