7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/HyperParameterTuningJobObjective.h>
10#include <aws/sagemaker/model/ParameterRanges.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/sagemaker/model/HyperParameterAlgorithmSpecification.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/VpcConfig.h>
15#include <aws/sagemaker/model/OutputDataConfig.h>
16#include <aws/sagemaker/model/ResourceConfig.h>
17#include <aws/sagemaker/model/HyperParameterTuningResourceConfig.h>
18#include <aws/sagemaker/model/StoppingCondition.h>
19#include <aws/sagemaker/model/CheckpointConfig.h>
20#include <aws/sagemaker/model/RetryStrategy.h>
21#include <aws/sagemaker/model/Channel.h>
60 template<
typename DefinitionNameT = Aws::String>
61 void SetDefinitionName(DefinitionNameT&& value) { m_definitionNameHasBeenSet =
true; m_definitionName = std::forward<DefinitionNameT>(value); }
62 template<
typename DefinitionNameT = Aws::String>
70 template<
typename TuningObjectiveT = HyperParameterTuningJobObjective>
71 void SetTuningObjective(TuningObjectiveT&& value) { m_tuningObjectiveHasBeenSet =
true; m_tuningObjective = std::forward<TuningObjectiveT>(value); }
72 template<
typename TuningObjectiveT = HyperParameterTuningJobObjective>
80 template<
typename HyperParameterRangesT = ParameterRanges>
81 void SetHyperParameterRanges(HyperParameterRangesT&& value) { m_hyperParameterRangesHasBeenSet =
true; m_hyperParameterRanges = std::forward<HyperParameterRangesT>(value); }
82 template<
typename HyperParameterRangesT = ParameterRanges>
93 template<
typename StaticHyperParametersT = Aws::Map<Aws::String, Aws::String>>
94 void SetStaticHyperParameters(StaticHyperParametersT&& value) { m_staticHyperParametersHasBeenSet =
true; m_staticHyperParameters = std::forward<StaticHyperParametersT>(value); }
95 template<
typename StaticHyperParametersT = Aws::Map<Aws::String, Aws::String>>
97 template<
typename StaticHyperParametersKeyT = Aws::String,
typename StaticHyperParametersValueT = Aws::String>
99 m_staticHyperParametersHasBeenSet =
true; m_staticHyperParameters.emplace(std::forward<StaticHyperParametersKeyT>(key), std::forward<StaticHyperParametersValueT>(value));
return *
this;
112 template<
typename AlgorithmSpecificationT = HyperParameterAlgorithmSpecification>
113 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) { m_algorithmSpecificationHasBeenSet =
true; m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value); }
114 template<
typename AlgorithmSpecificationT = HyperParameterAlgorithmSpecification>
125 template<
typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
127 template<
typename RoleArnT = Aws::String>
140 template<
typename InputDataConfigT = Aws::Vector<Channel>>
141 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet =
true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
142 template<
typename InputDataConfigT = Aws::Vector<Channel>>
144 template<
typename InputDataConfigT = Channel>
160 template<
typename VpcConfigT = VpcConfig>
161 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
162 template<
typename VpcConfigT = VpcConfig>
173 template<
typename OutputDataConfigT = OutputDataConfig>
174 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet =
true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
175 template<
typename OutputDataConfigT = OutputDataConfig>
193 template<
typename ResourceConfigT = ResourceConfig>
194 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet =
true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
195 template<
typename ResourceConfigT = ResourceConfig>
210 template<
typename HyperParameterTuningResourceConfigT = HyperParameterTuningResourceConfig>
211 void SetHyperParameterTuningResourceConfig(HyperParameterTuningResourceConfigT&& value) { m_hyperParameterTuningResourceConfigHasBeenSet =
true; m_hyperParameterTuningResourceConfig = std::forward<HyperParameterTuningResourceConfigT>(value); }
212 template<
typename HyperParameterTuningResourceConfigT = HyperParameterTuningResourceConfig>
225 template<
typename StoppingConditionT = StoppingCondition>
226 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet =
true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
227 template<
typename StoppingConditionT = StoppingCondition>
275 template<
typename Checkpo
intConfigT = Checkpo
intConfig>
276 void SetCheckpointConfig(CheckpointConfigT&& value) { m_checkpointConfigHasBeenSet =
true; m_checkpointConfig = std::forward<CheckpointConfigT>(value); }
277 template<
typename Checkpo
intConfigT = Checkpo
intConfig>
288 template<
typename RetryStrategyT = RetryStrategy>
289 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet =
true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
290 template<
typename RetryStrategyT = RetryStrategy>
311 template<
typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
312 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
313 template<
typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
315 template<
typename EnvironmentKeyT = Aws::String,
typename EnvironmentValueT = Aws::String>
317 m_environmentHasBeenSet =
true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
return *
this;
323 bool m_definitionNameHasBeenSet =
false;
326 bool m_tuningObjectiveHasBeenSet =
false;
329 bool m_hyperParameterRangesHasBeenSet =
false;
332 bool m_staticHyperParametersHasBeenSet =
false;
335 bool m_algorithmSpecificationHasBeenSet =
false;
338 bool m_roleArnHasBeenSet =
false;
341 bool m_inputDataConfigHasBeenSet =
false;
344 bool m_vpcConfigHasBeenSet =
false;
347 bool m_outputDataConfigHasBeenSet =
false;
350 bool m_resourceConfigHasBeenSet =
false;
353 bool m_hyperParameterTuningResourceConfigHasBeenSet =
false;
356 bool m_stoppingConditionHasBeenSet =
false;
358 bool m_enableNetworkIsolation{
false};
359 bool m_enableNetworkIsolationHasBeenSet =
false;
361 bool m_enableInterContainerTrafficEncryption{
false};
362 bool m_enableInterContainerTrafficEncryptionHasBeenSet =
false;
364 bool m_enableManagedSpotTraining{
false};
365 bool m_enableManagedSpotTrainingHasBeenSet =
false;
367 CheckpointConfig m_checkpointConfig;
368 bool m_checkpointConfigHasBeenSet =
false;
370 RetryStrategy m_retryStrategy;
371 bool m_retryStrategyHasBeenSet =
false;
374 bool m_environmentHasBeenSet =
false;
bool AlgorithmSpecificationHasBeenSet() const
const ParameterRanges & GetHyperParameterRanges() const
HyperParameterTrainingJobDefinition & WithCheckpointConfig(CheckpointConfigT &&value)
HyperParameterTrainingJobDefinition & WithHyperParameterRanges(HyperParameterRangesT &&value)
bool DefinitionNameHasBeenSet() const
void SetEnvironment(EnvironmentT &&value)
void SetEnableNetworkIsolation(bool value)
HyperParameterTrainingJobDefinition & WithStaticHyperParameters(StaticHyperParametersT &&value)
void SetAlgorithmSpecification(AlgorithmSpecificationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
const ResourceConfig & GetResourceConfig() const
void SetHyperParameterTuningResourceConfig(HyperParameterTuningResourceConfigT &&value)
bool GetEnableNetworkIsolation() const
void SetStaticHyperParameters(StaticHyperParametersT &&value)
AWS_SAGEMAKER_API HyperParameterTrainingJobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRoleArn() const
void SetRetryStrategy(RetryStrategyT &&value)
HyperParameterTrainingJobDefinition & WithEnableNetworkIsolation(bool value)
void SetDefinitionName(DefinitionNameT &&value)
bool VpcConfigHasBeenSet() const
void SetRoleArn(RoleArnT &&value)
const StoppingCondition & GetStoppingCondition() const
bool StaticHyperParametersHasBeenSet() const
const OutputDataConfig & GetOutputDataConfig() const
HyperParameterTrainingJobDefinition & WithEnableInterContainerTrafficEncryption(bool value)
void SetResourceConfig(ResourceConfigT &&value)
bool TuningObjectiveHasBeenSet() const
bool ResourceConfigHasBeenSet() const
bool OutputDataConfigHasBeenSet() const
HyperParameterTrainingJobDefinition & WithDefinitionName(DefinitionNameT &&value)
const HyperParameterAlgorithmSpecification & GetAlgorithmSpecification() const
bool EnableInterContainerTrafficEncryptionHasBeenSet() const
bool RetryStrategyHasBeenSet() const
void SetOutputDataConfig(OutputDataConfigT &&value)
void SetInputDataConfig(InputDataConfigT &&value)
HyperParameterTrainingJobDefinition & WithRoleArn(RoleArnT &&value)
HyperParameterTrainingJobDefinition & WithStoppingCondition(StoppingConditionT &&value)
HyperParameterTrainingJobDefinition & WithRetryStrategy(RetryStrategyT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetEnableManagedSpotTraining() const
AWS_SAGEMAKER_API HyperParameterTrainingJobDefinition()=default
HyperParameterTrainingJobDefinition & WithEnableManagedSpotTraining(bool value)
HyperParameterTrainingJobDefinition & WithTuningObjective(TuningObjectiveT &&value)
void SetTuningObjective(TuningObjectiveT &&value)
const HyperParameterTuningResourceConfig & GetHyperParameterTuningResourceConfig() const
bool EnableNetworkIsolationHasBeenSet() const
bool EnableManagedSpotTrainingHasBeenSet() const
const Aws::String & GetDefinitionName() const
HyperParameterTrainingJobDefinition & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
HyperParameterTrainingJobDefinition & WithInputDataConfig(InputDataConfigT &&value)
const RetryStrategy & GetRetryStrategy() const
const CheckpointConfig & GetCheckpointConfig() const
HyperParameterTrainingJobDefinition & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< Channel > & GetInputDataConfig() const
void SetEnableInterContainerTrafficEncryption(bool value)
void SetVpcConfig(VpcConfigT &&value)
AWS_SAGEMAKER_API HyperParameterTrainingJobDefinition(Aws::Utils::Json::JsonView jsonValue)
bool InputDataConfigHasBeenSet() const
HyperParameterTrainingJobDefinition & WithResourceConfig(ResourceConfigT &&value)
bool EnvironmentHasBeenSet() const
bool HyperParameterTuningResourceConfigHasBeenSet() const
bool CheckpointConfigHasBeenSet() const
bool StoppingConditionHasBeenSet() const
bool HyperParameterRangesHasBeenSet() const
HyperParameterTrainingJobDefinition & WithHyperParameterTuningResourceConfig(HyperParameterTuningResourceConfigT &&value)
HyperParameterTrainingJobDefinition & WithVpcConfig(VpcConfigT &&value)
HyperParameterTrainingJobDefinition & WithOutputDataConfig(OutputDataConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetStaticHyperParameters() const
const HyperParameterTuningJobObjective & GetTuningObjective() const
void SetEnableManagedSpotTraining(bool value)
void SetHyperParameterRanges(HyperParameterRangesT &&value)
const VpcConfig & GetVpcConfig() const
bool RoleArnHasBeenSet() const
void SetCheckpointConfig(CheckpointConfigT &&value)
HyperParameterTrainingJobDefinition & AddStaticHyperParameters(StaticHyperParametersKeyT &&key, StaticHyperParametersValueT &&value)
HyperParameterTrainingJobDefinition & WithAlgorithmSpecification(AlgorithmSpecificationT &&value)
HyperParameterTrainingJobDefinition & AddInputDataConfig(InputDataConfigT &&value)
bool GetEnableInterContainerTrafficEncryption() const
void SetStoppingCondition(StoppingConditionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue