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

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

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

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

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

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