{-# 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.AutoMLJobObjectiveType
-- 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.AutoMLJobObjectiveType
  ( AutoMLJobObjectiveType
      ( ..,
        AutoMLJobObjectiveType_Maximize,
        AutoMLJobObjectiveType_Minimize
      ),
  )
where

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

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

pattern AutoMLJobObjectiveType_Maximize :: AutoMLJobObjectiveType
pattern $bAutoMLJobObjectiveType_Maximize :: AutoMLJobObjectiveType
$mAutoMLJobObjectiveType_Maximize :: forall {r}.
AutoMLJobObjectiveType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoMLJobObjectiveType_Maximize = AutoMLJobObjectiveType' "Maximize"

pattern AutoMLJobObjectiveType_Minimize :: AutoMLJobObjectiveType
pattern $bAutoMLJobObjectiveType_Minimize :: AutoMLJobObjectiveType
$mAutoMLJobObjectiveType_Minimize :: forall {r}.
AutoMLJobObjectiveType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoMLJobObjectiveType_Minimize = AutoMLJobObjectiveType' "Minimize"

{-# COMPLETE
  AutoMLJobObjectiveType_Maximize,
  AutoMLJobObjectiveType_Minimize,
  AutoMLJobObjectiveType'
  #-}