{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.HyperParameterTuningJobSummary
-- 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.HyperParameterTuningJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.HyperParameterTuningJobStatus
import Amazonka.SageMaker.Types.HyperParameterTuningJobStrategyType
import Amazonka.SageMaker.Types.ObjectiveStatusCounters
import Amazonka.SageMaker.Types.ResourceLimits
import Amazonka.SageMaker.Types.TrainingJobStatusCounters

-- | Provides summary information about a hyperparameter tuning job.
--
-- /See:/ 'newHyperParameterTuningJobSummary' smart constructor.
data HyperParameterTuningJobSummary = HyperParameterTuningJobSummary'
  { -- | The date and time that the tuning job ended.
    HyperParameterTuningJobSummary -> Maybe POSIX
hyperParameterTuningEndTime :: Prelude.Maybe Data.POSIX,
    -- | The date and time that the tuning job was modified.
    HyperParameterTuningJobSummary -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The ResourceLimits object that specifies the maximum number of training
    -- jobs and parallel training jobs allowed for this tuning job.
    HyperParameterTuningJobSummary -> Maybe ResourceLimits
resourceLimits :: Prelude.Maybe ResourceLimits,
    -- | The name of the tuning job.
    HyperParameterTuningJobSummary -> Text
hyperParameterTuningJobName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the tuning job.
    HyperParameterTuningJobSummary -> Text
hyperParameterTuningJobArn :: Prelude.Text,
    -- | The status of the tuning job.
    HyperParameterTuningJobSummary -> HyperParameterTuningJobStatus
hyperParameterTuningJobStatus :: HyperParameterTuningJobStatus,
    -- | Specifies the search strategy hyperparameter tuning uses to choose which
    -- hyperparameters to evaluate at each iteration.
    HyperParameterTuningJobSummary
-> HyperParameterTuningJobStrategyType
strategy :: HyperParameterTuningJobStrategyType,
    -- | The date and time that the tuning job was created.
    HyperParameterTuningJobSummary -> POSIX
creationTime :: Data.POSIX,
    -- | The TrainingJobStatusCounters object that specifies the numbers of
    -- training jobs, categorized by status, that this tuning job launched.
    HyperParameterTuningJobSummary -> TrainingJobStatusCounters
trainingJobStatusCounters :: TrainingJobStatusCounters,
    -- | The ObjectiveStatusCounters object that specifies the numbers of
    -- training jobs, categorized by objective metric status, that this tuning
    -- job launched.
    HyperParameterTuningJobSummary -> ObjectiveStatusCounters
objectiveStatusCounters :: ObjectiveStatusCounters
  }
  deriving (HyperParameterTuningJobSummary
-> HyperParameterTuningJobSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobSummary -> Bool
$c/= :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobSummary -> Bool
== :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobSummary -> Bool
$c== :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobSummary -> Bool
Prelude.Eq, ReadPrec [HyperParameterTuningJobSummary]
ReadPrec HyperParameterTuningJobSummary
Int -> ReadS HyperParameterTuningJobSummary
ReadS [HyperParameterTuningJobSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HyperParameterTuningJobSummary]
$creadListPrec :: ReadPrec [HyperParameterTuningJobSummary]
readPrec :: ReadPrec HyperParameterTuningJobSummary
$creadPrec :: ReadPrec HyperParameterTuningJobSummary
readList :: ReadS [HyperParameterTuningJobSummary]
$creadList :: ReadS [HyperParameterTuningJobSummary]
readsPrec :: Int -> ReadS HyperParameterTuningJobSummary
$creadsPrec :: Int -> ReadS HyperParameterTuningJobSummary
Prelude.Read, Int -> HyperParameterTuningJobSummary -> ShowS
[HyperParameterTuningJobSummary] -> ShowS
HyperParameterTuningJobSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HyperParameterTuningJobSummary] -> ShowS
$cshowList :: [HyperParameterTuningJobSummary] -> ShowS
show :: HyperParameterTuningJobSummary -> String
$cshow :: HyperParameterTuningJobSummary -> String
showsPrec :: Int -> HyperParameterTuningJobSummary -> ShowS
$cshowsPrec :: Int -> HyperParameterTuningJobSummary -> ShowS
Prelude.Show, forall x.
Rep HyperParameterTuningJobSummary x
-> HyperParameterTuningJobSummary
forall x.
HyperParameterTuningJobSummary
-> Rep HyperParameterTuningJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep HyperParameterTuningJobSummary x
-> HyperParameterTuningJobSummary
$cfrom :: forall x.
HyperParameterTuningJobSummary
-> Rep HyperParameterTuningJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'HyperParameterTuningJobSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'hyperParameterTuningEndTime', 'hyperParameterTuningJobSummary_hyperParameterTuningEndTime' - The date and time that the tuning job ended.
--
-- 'lastModifiedTime', 'hyperParameterTuningJobSummary_lastModifiedTime' - The date and time that the tuning job was modified.
--
-- 'resourceLimits', 'hyperParameterTuningJobSummary_resourceLimits' - The ResourceLimits object that specifies the maximum number of training
-- jobs and parallel training jobs allowed for this tuning job.
--
-- 'hyperParameterTuningJobName', 'hyperParameterTuningJobSummary_hyperParameterTuningJobName' - The name of the tuning job.
--
-- 'hyperParameterTuningJobArn', 'hyperParameterTuningJobSummary_hyperParameterTuningJobArn' - The Amazon Resource Name (ARN) of the tuning job.
--
-- 'hyperParameterTuningJobStatus', 'hyperParameterTuningJobSummary_hyperParameterTuningJobStatus' - The status of the tuning job.
--
-- 'strategy', 'hyperParameterTuningJobSummary_strategy' - Specifies the search strategy hyperparameter tuning uses to choose which
-- hyperparameters to evaluate at each iteration.
--
-- 'creationTime', 'hyperParameterTuningJobSummary_creationTime' - The date and time that the tuning job was created.
--
-- 'trainingJobStatusCounters', 'hyperParameterTuningJobSummary_trainingJobStatusCounters' - The TrainingJobStatusCounters object that specifies the numbers of
-- training jobs, categorized by status, that this tuning job launched.
--
-- 'objectiveStatusCounters', 'hyperParameterTuningJobSummary_objectiveStatusCounters' - The ObjectiveStatusCounters object that specifies the numbers of
-- training jobs, categorized by objective metric status, that this tuning
-- job launched.
newHyperParameterTuningJobSummary ::
  -- | 'hyperParameterTuningJobName'
  Prelude.Text ->
  -- | 'hyperParameterTuningJobArn'
  Prelude.Text ->
  -- | 'hyperParameterTuningJobStatus'
  HyperParameterTuningJobStatus ->
  -- | 'strategy'
  HyperParameterTuningJobStrategyType ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'trainingJobStatusCounters'
  TrainingJobStatusCounters ->
  -- | 'objectiveStatusCounters'
  ObjectiveStatusCounters ->
  HyperParameterTuningJobSummary
newHyperParameterTuningJobSummary :: Text
-> Text
-> HyperParameterTuningJobStatus
-> HyperParameterTuningJobStrategyType
-> UTCTime
-> TrainingJobStatusCounters
-> ObjectiveStatusCounters
-> HyperParameterTuningJobSummary
newHyperParameterTuningJobSummary
  Text
pHyperParameterTuningJobName_
  Text
pHyperParameterTuningJobArn_
  HyperParameterTuningJobStatus
pHyperParameterTuningJobStatus_
  HyperParameterTuningJobStrategyType
pStrategy_
  UTCTime
pCreationTime_
  TrainingJobStatusCounters
pTrainingJobStatusCounters_
  ObjectiveStatusCounters
pObjectiveStatusCounters_ =
    HyperParameterTuningJobSummary'
      { $sel:hyperParameterTuningEndTime:HyperParameterTuningJobSummary' :: Maybe POSIX
hyperParameterTuningEndTime =
          forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:HyperParameterTuningJobSummary' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
        $sel:resourceLimits:HyperParameterTuningJobSummary' :: Maybe ResourceLimits
resourceLimits = forall a. Maybe a
Prelude.Nothing,
        $sel:hyperParameterTuningJobName:HyperParameterTuningJobSummary' :: Text
hyperParameterTuningJobName =
          Text
pHyperParameterTuningJobName_,
        $sel:hyperParameterTuningJobArn:HyperParameterTuningJobSummary' :: Text
hyperParameterTuningJobArn =
          Text
pHyperParameterTuningJobArn_,
        $sel:hyperParameterTuningJobStatus:HyperParameterTuningJobSummary' :: HyperParameterTuningJobStatus
hyperParameterTuningJobStatus =
          HyperParameterTuningJobStatus
pHyperParameterTuningJobStatus_,
        $sel:strategy:HyperParameterTuningJobSummary' :: HyperParameterTuningJobStrategyType
strategy = HyperParameterTuningJobStrategyType
pStrategy_,
        $sel:creationTime:HyperParameterTuningJobSummary' :: POSIX
creationTime =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
        $sel:trainingJobStatusCounters:HyperParameterTuningJobSummary' :: TrainingJobStatusCounters
trainingJobStatusCounters =
          TrainingJobStatusCounters
pTrainingJobStatusCounters_,
        $sel:objectiveStatusCounters:HyperParameterTuningJobSummary' :: ObjectiveStatusCounters
objectiveStatusCounters =
          ObjectiveStatusCounters
pObjectiveStatusCounters_
      }

-- | The date and time that the tuning job ended.
hyperParameterTuningJobSummary_hyperParameterTuningEndTime :: Lens.Lens' HyperParameterTuningJobSummary (Prelude.Maybe Prelude.UTCTime)
hyperParameterTuningJobSummary_hyperParameterTuningEndTime :: Lens' HyperParameterTuningJobSummary (Maybe UTCTime)
hyperParameterTuningJobSummary_hyperParameterTuningEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {Maybe POSIX
hyperParameterTuningEndTime :: Maybe POSIX
$sel:hyperParameterTuningEndTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe POSIX
hyperParameterTuningEndTime} -> Maybe POSIX
hyperParameterTuningEndTime) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} Maybe POSIX
a -> HyperParameterTuningJobSummary
s {$sel:hyperParameterTuningEndTime:HyperParameterTuningJobSummary' :: Maybe POSIX
hyperParameterTuningEndTime = Maybe POSIX
a} :: HyperParameterTuningJobSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The date and time that the tuning job was modified.
hyperParameterTuningJobSummary_lastModifiedTime :: Lens.Lens' HyperParameterTuningJobSummary (Prelude.Maybe Prelude.UTCTime)
hyperParameterTuningJobSummary_lastModifiedTime :: Lens' HyperParameterTuningJobSummary (Maybe UTCTime)
hyperParameterTuningJobSummary_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} Maybe POSIX
a -> HyperParameterTuningJobSummary
s {$sel:lastModifiedTime:HyperParameterTuningJobSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: HyperParameterTuningJobSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The ResourceLimits object that specifies the maximum number of training
-- jobs and parallel training jobs allowed for this tuning job.
hyperParameterTuningJobSummary_resourceLimits :: Lens.Lens' HyperParameterTuningJobSummary (Prelude.Maybe ResourceLimits)
hyperParameterTuningJobSummary_resourceLimits :: Lens' HyperParameterTuningJobSummary (Maybe ResourceLimits)
hyperParameterTuningJobSummary_resourceLimits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {Maybe ResourceLimits
resourceLimits :: Maybe ResourceLimits
$sel:resourceLimits:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe ResourceLimits
resourceLimits} -> Maybe ResourceLimits
resourceLimits) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} Maybe ResourceLimits
a -> HyperParameterTuningJobSummary
s {$sel:resourceLimits:HyperParameterTuningJobSummary' :: Maybe ResourceLimits
resourceLimits = Maybe ResourceLimits
a} :: HyperParameterTuningJobSummary)

-- | The name of the tuning job.
hyperParameterTuningJobSummary_hyperParameterTuningJobName :: Lens.Lens' HyperParameterTuningJobSummary Prelude.Text
hyperParameterTuningJobSummary_hyperParameterTuningJobName :: Lens' HyperParameterTuningJobSummary Text
hyperParameterTuningJobSummary_hyperParameterTuningJobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {Text
hyperParameterTuningJobName :: Text
$sel:hyperParameterTuningJobName:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Text
hyperParameterTuningJobName} -> Text
hyperParameterTuningJobName) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} Text
a -> HyperParameterTuningJobSummary
s {$sel:hyperParameterTuningJobName:HyperParameterTuningJobSummary' :: Text
hyperParameterTuningJobName = Text
a} :: HyperParameterTuningJobSummary)

-- | The Amazon Resource Name (ARN) of the tuning job.
hyperParameterTuningJobSummary_hyperParameterTuningJobArn :: Lens.Lens' HyperParameterTuningJobSummary Prelude.Text
hyperParameterTuningJobSummary_hyperParameterTuningJobArn :: Lens' HyperParameterTuningJobSummary Text
hyperParameterTuningJobSummary_hyperParameterTuningJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {Text
hyperParameterTuningJobArn :: Text
$sel:hyperParameterTuningJobArn:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Text
hyperParameterTuningJobArn} -> Text
hyperParameterTuningJobArn) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} Text
a -> HyperParameterTuningJobSummary
s {$sel:hyperParameterTuningJobArn:HyperParameterTuningJobSummary' :: Text
hyperParameterTuningJobArn = Text
a} :: HyperParameterTuningJobSummary)

-- | The status of the tuning job.
hyperParameterTuningJobSummary_hyperParameterTuningJobStatus :: Lens.Lens' HyperParameterTuningJobSummary HyperParameterTuningJobStatus
hyperParameterTuningJobSummary_hyperParameterTuningJobStatus :: Lens' HyperParameterTuningJobSummary HyperParameterTuningJobStatus
hyperParameterTuningJobSummary_hyperParameterTuningJobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {HyperParameterTuningJobStatus
hyperParameterTuningJobStatus :: HyperParameterTuningJobStatus
$sel:hyperParameterTuningJobStatus:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> HyperParameterTuningJobStatus
hyperParameterTuningJobStatus} -> HyperParameterTuningJobStatus
hyperParameterTuningJobStatus) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} HyperParameterTuningJobStatus
a -> HyperParameterTuningJobSummary
s {$sel:hyperParameterTuningJobStatus:HyperParameterTuningJobSummary' :: HyperParameterTuningJobStatus
hyperParameterTuningJobStatus = HyperParameterTuningJobStatus
a} :: HyperParameterTuningJobSummary)

-- | Specifies the search strategy hyperparameter tuning uses to choose which
-- hyperparameters to evaluate at each iteration.
hyperParameterTuningJobSummary_strategy :: Lens.Lens' HyperParameterTuningJobSummary HyperParameterTuningJobStrategyType
hyperParameterTuningJobSummary_strategy :: Lens'
  HyperParameterTuningJobSummary HyperParameterTuningJobStrategyType
hyperParameterTuningJobSummary_strategy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {HyperParameterTuningJobStrategyType
strategy :: HyperParameterTuningJobStrategyType
$sel:strategy:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobStrategyType
strategy} -> HyperParameterTuningJobStrategyType
strategy) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} HyperParameterTuningJobStrategyType
a -> HyperParameterTuningJobSummary
s {$sel:strategy:HyperParameterTuningJobSummary' :: HyperParameterTuningJobStrategyType
strategy = HyperParameterTuningJobStrategyType
a} :: HyperParameterTuningJobSummary)

-- | The date and time that the tuning job was created.
hyperParameterTuningJobSummary_creationTime :: Lens.Lens' HyperParameterTuningJobSummary Prelude.UTCTime
hyperParameterTuningJobSummary_creationTime :: Lens' HyperParameterTuningJobSummary UTCTime
hyperParameterTuningJobSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} POSIX
a -> HyperParameterTuningJobSummary
s {$sel:creationTime:HyperParameterTuningJobSummary' :: POSIX
creationTime = POSIX
a} :: HyperParameterTuningJobSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The TrainingJobStatusCounters object that specifies the numbers of
-- training jobs, categorized by status, that this tuning job launched.
hyperParameterTuningJobSummary_trainingJobStatusCounters :: Lens.Lens' HyperParameterTuningJobSummary TrainingJobStatusCounters
hyperParameterTuningJobSummary_trainingJobStatusCounters :: Lens' HyperParameterTuningJobSummary TrainingJobStatusCounters
hyperParameterTuningJobSummary_trainingJobStatusCounters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {TrainingJobStatusCounters
trainingJobStatusCounters :: TrainingJobStatusCounters
$sel:trainingJobStatusCounters:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> TrainingJobStatusCounters
trainingJobStatusCounters} -> TrainingJobStatusCounters
trainingJobStatusCounters) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} TrainingJobStatusCounters
a -> HyperParameterTuningJobSummary
s {$sel:trainingJobStatusCounters:HyperParameterTuningJobSummary' :: TrainingJobStatusCounters
trainingJobStatusCounters = TrainingJobStatusCounters
a} :: HyperParameterTuningJobSummary)

-- | The ObjectiveStatusCounters object that specifies the numbers of
-- training jobs, categorized by objective metric status, that this tuning
-- job launched.
hyperParameterTuningJobSummary_objectiveStatusCounters :: Lens.Lens' HyperParameterTuningJobSummary ObjectiveStatusCounters
hyperParameterTuningJobSummary_objectiveStatusCounters :: Lens' HyperParameterTuningJobSummary ObjectiveStatusCounters
hyperParameterTuningJobSummary_objectiveStatusCounters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HyperParameterTuningJobSummary' {ObjectiveStatusCounters
objectiveStatusCounters :: ObjectiveStatusCounters
$sel:objectiveStatusCounters:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> ObjectiveStatusCounters
objectiveStatusCounters} -> ObjectiveStatusCounters
objectiveStatusCounters) (\s :: HyperParameterTuningJobSummary
s@HyperParameterTuningJobSummary' {} ObjectiveStatusCounters
a -> HyperParameterTuningJobSummary
s {$sel:objectiveStatusCounters:HyperParameterTuningJobSummary' :: ObjectiveStatusCounters
objectiveStatusCounters = ObjectiveStatusCounters
a} :: HyperParameterTuningJobSummary)

instance Data.FromJSON HyperParameterTuningJobSummary where
  parseJSON :: Value -> Parser HyperParameterTuningJobSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"HyperParameterTuningJobSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe POSIX
-> Maybe ResourceLimits
-> Text
-> Text
-> HyperParameterTuningJobStatus
-> HyperParameterTuningJobStrategyType
-> POSIX
-> TrainingJobStatusCounters
-> ObjectiveStatusCounters
-> HyperParameterTuningJobSummary
HyperParameterTuningJobSummary'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HyperParameterTuningEndTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResourceLimits")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"HyperParameterTuningJobName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"HyperParameterTuningJobArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"HyperParameterTuningJobStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Strategy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"TrainingJobStatusCounters")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ObjectiveStatusCounters")
      )

instance
  Prelude.Hashable
    HyperParameterTuningJobSummary
  where
  hashWithSalt :: Int -> HyperParameterTuningJobSummary -> Int
hashWithSalt
    Int
_salt
    HyperParameterTuningJobSummary' {Maybe POSIX
Maybe ResourceLimits
Text
POSIX
HyperParameterTuningJobStatus
HyperParameterTuningJobStrategyType
ObjectiveStatusCounters
TrainingJobStatusCounters
objectiveStatusCounters :: ObjectiveStatusCounters
trainingJobStatusCounters :: TrainingJobStatusCounters
creationTime :: POSIX
strategy :: HyperParameterTuningJobStrategyType
hyperParameterTuningJobStatus :: HyperParameterTuningJobStatus
hyperParameterTuningJobArn :: Text
hyperParameterTuningJobName :: Text
resourceLimits :: Maybe ResourceLimits
lastModifiedTime :: Maybe POSIX
hyperParameterTuningEndTime :: Maybe POSIX
$sel:objectiveStatusCounters:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> ObjectiveStatusCounters
$sel:trainingJobStatusCounters:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> TrainingJobStatusCounters
$sel:creationTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> POSIX
$sel:strategy:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobStrategyType
$sel:hyperParameterTuningJobStatus:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> HyperParameterTuningJobStatus
$sel:hyperParameterTuningJobArn:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Text
$sel:hyperParameterTuningJobName:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Text
$sel:resourceLimits:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe ResourceLimits
$sel:lastModifiedTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe POSIX
$sel:hyperParameterTuningEndTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe POSIX
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
hyperParameterTuningEndTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceLimits
resourceLimits
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
hyperParameterTuningJobName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
hyperParameterTuningJobArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` HyperParameterTuningJobStatus
hyperParameterTuningJobStatus
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` HyperParameterTuningJobStrategyType
strategy
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` TrainingJobStatusCounters
trainingJobStatusCounters
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ObjectiveStatusCounters
objectiveStatusCounters

instance
  Prelude.NFData
    HyperParameterTuningJobSummary
  where
  rnf :: HyperParameterTuningJobSummary -> ()
rnf HyperParameterTuningJobSummary' {Maybe POSIX
Maybe ResourceLimits
Text
POSIX
HyperParameterTuningJobStatus
HyperParameterTuningJobStrategyType
ObjectiveStatusCounters
TrainingJobStatusCounters
objectiveStatusCounters :: ObjectiveStatusCounters
trainingJobStatusCounters :: TrainingJobStatusCounters
creationTime :: POSIX
strategy :: HyperParameterTuningJobStrategyType
hyperParameterTuningJobStatus :: HyperParameterTuningJobStatus
hyperParameterTuningJobArn :: Text
hyperParameterTuningJobName :: Text
resourceLimits :: Maybe ResourceLimits
lastModifiedTime :: Maybe POSIX
hyperParameterTuningEndTime :: Maybe POSIX
$sel:objectiveStatusCounters:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> ObjectiveStatusCounters
$sel:trainingJobStatusCounters:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> TrainingJobStatusCounters
$sel:creationTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> POSIX
$sel:strategy:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary
-> HyperParameterTuningJobStrategyType
$sel:hyperParameterTuningJobStatus:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> HyperParameterTuningJobStatus
$sel:hyperParameterTuningJobArn:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Text
$sel:hyperParameterTuningJobName:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Text
$sel:resourceLimits:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe ResourceLimits
$sel:lastModifiedTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe POSIX
$sel:hyperParameterTuningEndTime:HyperParameterTuningJobSummary' :: HyperParameterTuningJobSummary -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
hyperParameterTuningEndTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceLimits
resourceLimits
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
hyperParameterTuningJobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
hyperParameterTuningJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf HyperParameterTuningJobStatus
hyperParameterTuningJobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf HyperParameterTuningJobStrategyType
strategy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf TrainingJobStatusCounters
trainingJobStatusCounters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ObjectiveStatusCounters
objectiveStatusCounters