{-# 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.ObjectiveStatus
-- 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.ObjectiveStatus
  ( ObjectiveStatus
      ( ..,
        ObjectiveStatus_Failed,
        ObjectiveStatus_Pending,
        ObjectiveStatus_Succeeded
      ),
  )
where

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

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

pattern ObjectiveStatus_Failed :: ObjectiveStatus
pattern $bObjectiveStatus_Failed :: ObjectiveStatus
$mObjectiveStatus_Failed :: forall r. ObjectiveStatus -> (Void# -> r) -> (Void# -> r) -> r
ObjectiveStatus_Failed = ObjectiveStatus' "Failed"

pattern ObjectiveStatus_Pending :: ObjectiveStatus
pattern $bObjectiveStatus_Pending :: ObjectiveStatus
$mObjectiveStatus_Pending :: forall r. ObjectiveStatus -> (Void# -> r) -> (Void# -> r) -> r
ObjectiveStatus_Pending = ObjectiveStatus' "Pending"

pattern ObjectiveStatus_Succeeded :: ObjectiveStatus
pattern $bObjectiveStatus_Succeeded :: ObjectiveStatus
$mObjectiveStatus_Succeeded :: forall r. ObjectiveStatus -> (Void# -> r) -> (Void# -> r) -> r
ObjectiveStatus_Succeeded = ObjectiveStatus' "Succeeded"

{-# COMPLETE
  ObjectiveStatus_Failed,
  ObjectiveStatus_Pending,
  ObjectiveStatus_Succeeded,
  ObjectiveStatus'
  #-}