{-# 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.HyperParameterTuningJobObjectiveType
-- 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.HyperParameterTuningJobObjectiveType
  ( HyperParameterTuningJobObjectiveType
      ( ..,
        HyperParameterTuningJobObjectiveType_Maximize,
        HyperParameterTuningJobObjectiveType_Minimize
      ),
  )
where

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

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

pattern HyperParameterTuningJobObjectiveType_Maximize :: HyperParameterTuningJobObjectiveType
pattern $bHyperParameterTuningJobObjectiveType_Maximize :: HyperParameterTuningJobObjectiveType
$mHyperParameterTuningJobObjectiveType_Maximize :: forall {r}.
HyperParameterTuningJobObjectiveType
-> ((# #) -> r) -> ((# #) -> r) -> r
HyperParameterTuningJobObjectiveType_Maximize = HyperParameterTuningJobObjectiveType' "Maximize"

pattern HyperParameterTuningJobObjectiveType_Minimize :: HyperParameterTuningJobObjectiveType
pattern $bHyperParameterTuningJobObjectiveType_Minimize :: HyperParameterTuningJobObjectiveType
$mHyperParameterTuningJobObjectiveType_Minimize :: forall {r}.
HyperParameterTuningJobObjectiveType
-> ((# #) -> r) -> ((# #) -> r) -> r
HyperParameterTuningJobObjectiveType_Minimize = HyperParameterTuningJobObjectiveType' "Minimize"

{-# COMPLETE
  HyperParameterTuningJobObjectiveType_Maximize,
  HyperParameterTuningJobObjectiveType_Minimize,
  HyperParameterTuningJobObjectiveType'
  #-}