{-# 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.DetailedAlgorithmStatus
-- 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.DetailedAlgorithmStatus
  ( DetailedAlgorithmStatus
      ( ..,
        DetailedAlgorithmStatus_Completed,
        DetailedAlgorithmStatus_Failed,
        DetailedAlgorithmStatus_InProgress,
        DetailedAlgorithmStatus_NotStarted
      ),
  )
where

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

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

pattern DetailedAlgorithmStatus_Completed :: DetailedAlgorithmStatus
pattern $bDetailedAlgorithmStatus_Completed :: DetailedAlgorithmStatus
$mDetailedAlgorithmStatus_Completed :: forall r.
DetailedAlgorithmStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailedAlgorithmStatus_Completed = DetailedAlgorithmStatus' "Completed"

pattern DetailedAlgorithmStatus_Failed :: DetailedAlgorithmStatus
pattern $bDetailedAlgorithmStatus_Failed :: DetailedAlgorithmStatus
$mDetailedAlgorithmStatus_Failed :: forall r.
DetailedAlgorithmStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailedAlgorithmStatus_Failed = DetailedAlgorithmStatus' "Failed"

pattern DetailedAlgorithmStatus_InProgress :: DetailedAlgorithmStatus
pattern $bDetailedAlgorithmStatus_InProgress :: DetailedAlgorithmStatus
$mDetailedAlgorithmStatus_InProgress :: forall r.
DetailedAlgorithmStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailedAlgorithmStatus_InProgress = DetailedAlgorithmStatus' "InProgress"

pattern DetailedAlgorithmStatus_NotStarted :: DetailedAlgorithmStatus
pattern $bDetailedAlgorithmStatus_NotStarted :: DetailedAlgorithmStatus
$mDetailedAlgorithmStatus_NotStarted :: forall r.
DetailedAlgorithmStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailedAlgorithmStatus_NotStarted = DetailedAlgorithmStatus' "NotStarted"

{-# COMPLETE
  DetailedAlgorithmStatus_Completed,
  DetailedAlgorithmStatus_Failed,
  DetailedAlgorithmStatus_InProgress,
  DetailedAlgorithmStatus_NotStarted,
  DetailedAlgorithmStatus'
  #-}