AWS SDK for C++  1.9.159
AWS SDK for C++
HyperParameterTuningJobConfig.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace SageMaker
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
53  inline const HyperParameterTuningJobStrategyType& GetStrategy() const{ return m_strategy; }
54 
63  inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
64 
73  inline void SetStrategy(const HyperParameterTuningJobStrategyType& value) { m_strategyHasBeenSet = true; m_strategy = value; }
74 
83  inline void SetStrategy(HyperParameterTuningJobStrategyType&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
84 
93  inline HyperParameterTuningJobConfig& WithStrategy(const HyperParameterTuningJobStrategyType& value) { SetStrategy(value); return *this;}
94 
103  inline HyperParameterTuningJobConfig& WithStrategy(HyperParameterTuningJobStrategyType&& value) { SetStrategy(std::move(value)); return *this;}
104 
105 
110  inline const HyperParameterTuningJobObjective& GetHyperParameterTuningJobObjective() const{ return m_hyperParameterTuningJobObjective; }
111 
116  inline bool HyperParameterTuningJobObjectiveHasBeenSet() const { return m_hyperParameterTuningJobObjectiveHasBeenSet; }
117 
122  inline void SetHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = value; }
123 
128  inline void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjective&& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = std::move(value); }
129 
134  inline HyperParameterTuningJobConfig& WithHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective& value) { SetHyperParameterTuningJobObjective(value); return *this;}
135 
140  inline HyperParameterTuningJobConfig& WithHyperParameterTuningJobObjective(HyperParameterTuningJobObjective&& value) { SetHyperParameterTuningJobObjective(std::move(value)); return *this;}
141 
142 
147  inline const ResourceLimits& GetResourceLimits() const{ return m_resourceLimits; }
148 
153  inline bool ResourceLimitsHasBeenSet() const { return m_resourceLimitsHasBeenSet; }
154 
159  inline void SetResourceLimits(const ResourceLimits& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = value; }
160 
165  inline void SetResourceLimits(ResourceLimits&& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = std::move(value); }
166 
171  inline HyperParameterTuningJobConfig& WithResourceLimits(const ResourceLimits& value) { SetResourceLimits(value); return *this;}
172 
177  inline HyperParameterTuningJobConfig& WithResourceLimits(ResourceLimits&& value) { SetResourceLimits(std::move(value)); return *this;}
178 
179 
184  inline const ParameterRanges& GetParameterRanges() const{ return m_parameterRanges; }
185 
190  inline bool ParameterRangesHasBeenSet() const { return m_parameterRangesHasBeenSet; }
191 
196  inline void SetParameterRanges(const ParameterRanges& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = value; }
197 
202  inline void SetParameterRanges(ParameterRanges&& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = std::move(value); }
203 
208  inline HyperParameterTuningJobConfig& WithParameterRanges(const ParameterRanges& value) { SetParameterRanges(value); return *this;}
209 
214  inline HyperParameterTuningJobConfig& WithParameterRanges(ParameterRanges&& value) { SetParameterRanges(std::move(value)); return *this;}
215 
216 
228  inline const TrainingJobEarlyStoppingType& GetTrainingJobEarlyStoppingType() const{ return m_trainingJobEarlyStoppingType; }
229 
241  inline bool TrainingJobEarlyStoppingTypeHasBeenSet() const { return m_trainingJobEarlyStoppingTypeHasBeenSet; }
242 
254  inline void SetTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& value) { m_trainingJobEarlyStoppingTypeHasBeenSet = true; m_trainingJobEarlyStoppingType = value; }
255 
267  inline void SetTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType&& value) { m_trainingJobEarlyStoppingTypeHasBeenSet = true; m_trainingJobEarlyStoppingType = std::move(value); }
268 
280  inline HyperParameterTuningJobConfig& WithTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& value) { SetTrainingJobEarlyStoppingType(value); return *this;}
281 
293  inline HyperParameterTuningJobConfig& WithTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType&& value) { SetTrainingJobEarlyStoppingType(std::move(value)); return *this;}
294 
295 
299  inline const TuningJobCompletionCriteria& GetTuningJobCompletionCriteria() const{ return m_tuningJobCompletionCriteria; }
300 
304  inline bool TuningJobCompletionCriteriaHasBeenSet() const { return m_tuningJobCompletionCriteriaHasBeenSet; }
305 
309  inline void SetTuningJobCompletionCriteria(const TuningJobCompletionCriteria& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = value; }
310 
314  inline void SetTuningJobCompletionCriteria(TuningJobCompletionCriteria&& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = std::move(value); }
315 
319  inline HyperParameterTuningJobConfig& WithTuningJobCompletionCriteria(const TuningJobCompletionCriteria& value) { SetTuningJobCompletionCriteria(value); return *this;}
320 
324  inline HyperParameterTuningJobConfig& WithTuningJobCompletionCriteria(TuningJobCompletionCriteria&& value) { SetTuningJobCompletionCriteria(std::move(value)); return *this;}
325 
326  private:
327 
329  bool m_strategyHasBeenSet;
330 
331  HyperParameterTuningJobObjective m_hyperParameterTuningJobObjective;
332  bool m_hyperParameterTuningJobObjectiveHasBeenSet;
333 
334  ResourceLimits m_resourceLimits;
335  bool m_resourceLimitsHasBeenSet;
336 
337  ParameterRanges m_parameterRanges;
338  bool m_parameterRangesHasBeenSet;
339 
340  TrainingJobEarlyStoppingType m_trainingJobEarlyStoppingType;
341  bool m_trainingJobEarlyStoppingTypeHasBeenSet;
342 
343  TuningJobCompletionCriteria m_tuningJobCompletionCriteria;
344  bool m_tuningJobCompletionCriteriaHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace SageMaker
349 } // namespace Aws
Aws::SageMaker::Model::HyperParameterTuningJobConfig::StrategyHasBeenSet
bool StrategyHasBeenSet() const
Definition: HyperParameterTuningJobConfig.h:63
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithTuningJobCompletionCriteria
HyperParameterTuningJobConfig & WithTuningJobCompletionCriteria(TuningJobCompletionCriteria &&value)
Definition: HyperParameterTuningJobConfig.h:324
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithTuningJobCompletionCriteria
HyperParameterTuningJobConfig & WithTuningJobCompletionCriteria(const TuningJobCompletionCriteria &value)
Definition: HyperParameterTuningJobConfig.h:319
Aws::SageMaker::Model::TrainingJobEarlyStoppingType
TrainingJobEarlyStoppingType
Definition: TrainingJobEarlyStoppingType.h:17
Aws::SageMaker::Model::HyperParameterTuningJobConfig::GetHyperParameterTuningJobObjective
const HyperParameterTuningJobObjective & GetHyperParameterTuningJobObjective() const
Definition: HyperParameterTuningJobConfig.h:110
SageMaker_EXPORTS.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetParameterRanges
void SetParameterRanges(ParameterRanges &&value)
Definition: HyperParameterTuningJobConfig.h:202
Aws::SageMaker::Model::HyperParameterTuningJobConfig::HyperParameterTuningJobObjectiveHasBeenSet
bool HyperParameterTuningJobObjectiveHasBeenSet() const
Definition: HyperParameterTuningJobConfig.h:116
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetTuningJobCompletionCriteria
void SetTuningJobCompletionCriteria(const TuningJobCompletionCriteria &value)
Definition: HyperParameterTuningJobConfig.h:309
HyperParameterTuningJobObjective.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithHyperParameterTuningJobObjective
HyperParameterTuningJobConfig & WithHyperParameterTuningJobObjective(HyperParameterTuningJobObjective &&value)
Definition: HyperParameterTuningJobConfig.h:140
HyperParameterTuningJobStrategyType.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetHyperParameterTuningJobObjective
void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjective &&value)
Definition: HyperParameterTuningJobConfig.h:128
Aws::SageMaker::Model::HyperParameterTuningJobConfig::ResourceLimitsHasBeenSet
bool ResourceLimitsHasBeenSet() const
Definition: HyperParameterTuningJobConfig.h:153
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithStrategy
HyperParameterTuningJobConfig & WithStrategy(HyperParameterTuningJobStrategyType &&value)
Definition: HyperParameterTuningJobConfig.h:103
TrainingJobEarlyStoppingType.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::ParameterRangesHasBeenSet
bool ParameterRangesHasBeenSet() const
Definition: HyperParameterTuningJobConfig.h:190
Aws::SageMaker::Model::TuningJobCompletionCriteria
Definition: TuningJobCompletionCriteria.h:30
ResourceLimits.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithTrainingJobEarlyStoppingType
HyperParameterTuningJobConfig & WithTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType &value)
Definition: HyperParameterTuningJobConfig.h:280
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithStrategy
HyperParameterTuningJobConfig & WithStrategy(const HyperParameterTuningJobStrategyType &value)
Definition: HyperParameterTuningJobConfig.h:93
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetTrainingJobEarlyStoppingType
void SetTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType &&value)
Definition: HyperParameterTuningJobConfig.h:267
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetStrategy
void SetStrategy(const HyperParameterTuningJobStrategyType &value)
Definition: HyperParameterTuningJobConfig.h:73
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithParameterRanges
HyperParameterTuningJobConfig & WithParameterRanges(ParameterRanges &&value)
Definition: HyperParameterTuningJobConfig.h:214
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithHyperParameterTuningJobObjective
HyperParameterTuningJobConfig & WithHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective &value)
Definition: HyperParameterTuningJobConfig.h:134
Aws::SageMaker::Model::HyperParameterTuningJobConfig::HyperParameterTuningJobConfig
HyperParameterTuningJobConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::HyperParameterTuningJobConfig::GetTuningJobCompletionCriteria
const TuningJobCompletionCriteria & GetTuningJobCompletionCriteria() const
Definition: HyperParameterTuningJobConfig.h:299
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetTuningJobCompletionCriteria
void SetTuningJobCompletionCriteria(TuningJobCompletionCriteria &&value)
Definition: HyperParameterTuningJobConfig.h:314
TuningJobCompletionCriteria.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::GetTrainingJobEarlyStoppingType
const TrainingJobEarlyStoppingType & GetTrainingJobEarlyStoppingType() const
Definition: HyperParameterTuningJobConfig.h:228
Aws::SageMaker::Model::HyperParameterTuningJobConfig::TrainingJobEarlyStoppingTypeHasBeenSet
bool TrainingJobEarlyStoppingTypeHasBeenSet() const
Definition: HyperParameterTuningJobConfig.h:241
Aws::SageMaker::Model::HyperParameterTuningJobConfig
Definition: HyperParameterTuningJobConfig.h:37
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithParameterRanges
HyperParameterTuningJobConfig & WithParameterRanges(const ParameterRanges &value)
Definition: HyperParameterTuningJobConfig.h:208
Aws::SageMaker::Model::ResourceLimits
Definition: ResourceLimits.h:31
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetResourceLimits
void SetResourceLimits(const ResourceLimits &value)
Definition: HyperParameterTuningJobConfig.h:159
Aws::SageMaker::Model::HyperParameterTuningJobConfig::TuningJobCompletionCriteriaHasBeenSet
bool TuningJobCompletionCriteriaHasBeenSet() const
Definition: HyperParameterTuningJobConfig.h:304
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetHyperParameterTuningJobObjective
void SetHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective &value)
Definition: HyperParameterTuningJobConfig.h:122
Aws::SageMaker::Model::HyperParameterTuningJobConfig::GetStrategy
const HyperParameterTuningJobStrategyType & GetStrategy() const
Definition: HyperParameterTuningJobConfig.h:53
Aws::SageMaker::Model::HyperParameterTuningJobConfig::HyperParameterTuningJobConfig
HyperParameterTuningJobConfig()
Aws::SageMaker::Model::HyperParameterTuningJobConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::HyperParameterTuningJobConfig::GetParameterRanges
const ParameterRanges & GetParameterRanges() const
Definition: HyperParameterTuningJobConfig.h:184
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetStrategy
void SetStrategy(HyperParameterTuningJobStrategyType &&value)
Definition: HyperParameterTuningJobConfig.h:83
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithResourceLimits
HyperParameterTuningJobConfig & WithResourceLimits(ResourceLimits &&value)
Definition: HyperParameterTuningJobConfig.h:177
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetResourceLimits
void SetResourceLimits(ResourceLimits &&value)
Definition: HyperParameterTuningJobConfig.h:165
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithResourceLimits
HyperParameterTuningJobConfig & WithResourceLimits(const ResourceLimits &value)
Definition: HyperParameterTuningJobConfig.h:171
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::HyperParameterTuningJobStrategyType
HyperParameterTuningJobStrategyType
Definition: HyperParameterTuningJobStrategyType.h:17
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetTrainingJobEarlyStoppingType
void SetTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType &value)
Definition: HyperParameterTuningJobConfig.h:254
Aws::SageMaker::Model::HyperParameterTuningJobConfig::operator=
HyperParameterTuningJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::HyperParameterTuningJobConfig::GetResourceLimits
const ResourceLimits & GetResourceLimits() const
Definition: HyperParameterTuningJobConfig.h:147
Aws::SageMaker::Model::ParameterRanges
Definition: ParameterRanges.h:42
ParameterRanges.h
Aws::SageMaker::Model::HyperParameterTuningJobConfig::SetParameterRanges
void SetParameterRanges(const ParameterRanges &value)
Definition: HyperParameterTuningJobConfig.h:196
Aws::SageMaker::Model::HyperParameterTuningJobObjective
Definition: HyperParameterTuningJobObjective.h:37
Aws::SageMaker::Model::HyperParameterTuningJobConfig::WithTrainingJobEarlyStoppingType
HyperParameterTuningJobConfig & WithTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType &&value)
Definition: HyperParameterTuningJobConfig.h:293