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

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

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

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

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

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