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

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

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

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

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

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