{-# 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.HyperParameterTuningJobWarmStartType
-- 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.HyperParameterTuningJobWarmStartType
  ( HyperParameterTuningJobWarmStartType
      ( ..,
        HyperParameterTuningJobWarmStartType_IdenticalDataAndAlgorithm,
        HyperParameterTuningJobWarmStartType_TransferLearning
      ),
  )
where

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

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

pattern HyperParameterTuningJobWarmStartType_IdenticalDataAndAlgorithm :: HyperParameterTuningJobWarmStartType
pattern $bHyperParameterTuningJobWarmStartType_IdenticalDataAndAlgorithm :: HyperParameterTuningJobWarmStartType
$mHyperParameterTuningJobWarmStartType_IdenticalDataAndAlgorithm :: forall {r}.
HyperParameterTuningJobWarmStartType
-> ((# #) -> r) -> ((# #) -> r) -> r
HyperParameterTuningJobWarmStartType_IdenticalDataAndAlgorithm = HyperParameterTuningJobWarmStartType' "IdenticalDataAndAlgorithm"

pattern HyperParameterTuningJobWarmStartType_TransferLearning :: HyperParameterTuningJobWarmStartType
pattern $bHyperParameterTuningJobWarmStartType_TransferLearning :: HyperParameterTuningJobWarmStartType
$mHyperParameterTuningJobWarmStartType_TransferLearning :: forall {r}.
HyperParameterTuningJobWarmStartType
-> ((# #) -> r) -> ((# #) -> r) -> r
HyperParameterTuningJobWarmStartType_TransferLearning = HyperParameterTuningJobWarmStartType' "TransferLearning"

{-# COMPLETE
  HyperParameterTuningJobWarmStartType_IdenticalDataAndAlgorithm,
  HyperParameterTuningJobWarmStartType_TransferLearning,
  HyperParameterTuningJobWarmStartType'
  #-}