7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sagemaker/model/AlgorithmSpecification.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/OutputDataConfig.h>
14#include <aws/sagemaker/model/ResourceConfig.h>
15#include <aws/sagemaker/model/VpcConfig.h>
16#include <aws/sagemaker/model/StoppingCondition.h>
17#include <aws/sagemaker/model/CheckpointConfig.h>
18#include <aws/sagemaker/model/DebugHookConfig.h>
19#include <aws/sagemaker/model/TensorBoardOutputConfig.h>
20#include <aws/sagemaker/model/ExperimentConfig.h>
21#include <aws/sagemaker/model/ProfilerConfig.h>
22#include <aws/sagemaker/model/RetryStrategy.h>
23#include <aws/sagemaker/model/RemoteDebugConfig.h>
24#include <aws/sagemaker/model/InfraCheckConfig.h>
25#include <aws/sagemaker/model/SessionChainingConfig.h>
26#include <aws/sagemaker/model/Channel.h>
27#include <aws/sagemaker/model/Tag.h>
28#include <aws/sagemaker/model/DebugRuleConfiguration.h>
29#include <aws/sagemaker/model/ProfilerRuleConfiguration.h>
64 template<
typename TrainingJobNameT = Aws::String>
65 void SetTrainingJobName(TrainingJobNameT&& value) { m_trainingJobNameHasBeenSet =
true; m_trainingJobName = std::forward<TrainingJobNameT>(value); }
66 template<
typename TrainingJobNameT = Aws::String>
87 template<
typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
88 void SetHyperParameters(HyperParametersT&& value) { m_hyperParametersHasBeenSet =
true; m_hyperParameters = std::forward<HyperParametersT>(value); }
89 template<
typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
91 template<
typename HyperParametersKeyT = Aws::String,
typename HyperParametersValueT = Aws::String>
93 m_hyperParametersHasBeenSet =
true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
return *
this;
109 template<
typename AlgorithmSpecificationT = AlgorithmSpecification>
110 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) { m_algorithmSpecificationHasBeenSet =
true; m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value); }
111 template<
typename AlgorithmSpecificationT = AlgorithmSpecification>
129 template<
typename RoleArnT = Aws::String>
130 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
131 template<
typename RoleArnT = Aws::String>
153 template<
typename InputDataConfigT = Aws::Vector<Channel>>
154 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet =
true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
155 template<
typename InputDataConfigT = Aws::Vector<Channel>>
157 template<
typename InputDataConfigT = Channel>
168 template<
typename OutputDataConfigT = OutputDataConfig>
169 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet =
true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
170 template<
typename OutputDataConfigT = OutputDataConfig>
186 template<
typename ResourceConfigT = ResourceConfig>
187 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet =
true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
188 template<
typename ResourceConfigT = ResourceConfig>
204 template<
typename VpcConfigT = VpcConfig>
205 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
206 template<
typename VpcConfigT = VpcConfig>
222 template<
typename StoppingConditionT = StoppingCondition>
223 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet =
true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
224 template<
typename StoppingConditionT = StoppingCondition>
243 template<
typename TagsT = Aws::Vector<Tag>>
244 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
245 template<
typename TagsT = Aws::Vector<Tag>>
247 template<
typename TagsT = Tag>
308 template<
typename Checkpo
intConfigT = Checkpo
intConfig>
309 void SetCheckpointConfig(CheckpointConfigT&& value) { m_checkpointConfigHasBeenSet =
true; m_checkpointConfig = std::forward<CheckpointConfigT>(value); }
310 template<
typename Checkpo
intConfigT = Checkpo
intConfig>
318 template<
typename DebugHookConfigT = DebugHookConfig>
319 void SetDebugHookConfig(DebugHookConfigT&& value) { m_debugHookConfigHasBeenSet =
true; m_debugHookConfig = std::forward<DebugHookConfigT>(value); }
320 template<
typename DebugHookConfigT = DebugHookConfig>
331 template<
typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
332 void SetDebugRuleConfigurations(DebugRuleConfigurationsT&& value) { m_debugRuleConfigurationsHasBeenSet =
true; m_debugRuleConfigurations = std::forward<DebugRuleConfigurationsT>(value); }
333 template<
typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
335 template<
typename DebugRuleConfigurationsT = DebugRuleConfiguration>
343 template<
typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
344 void SetTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) { m_tensorBoardOutputConfigHasBeenSet =
true; m_tensorBoardOutputConfig = std::forward<TensorBoardOutputConfigT>(value); }
345 template<
typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
353 template<
typename ExperimentConfigT = ExperimentConfig>
354 void SetExperimentConfig(ExperimentConfigT&& value) { m_experimentConfigHasBeenSet =
true; m_experimentConfig = std::forward<ExperimentConfigT>(value); }
355 template<
typename ExperimentConfigT = ExperimentConfig>
363 template<
typename ProfilerConfigT = ProfilerConfig>
364 void SetProfilerConfig(ProfilerConfigT&& value) { m_profilerConfigHasBeenSet =
true; m_profilerConfig = std::forward<ProfilerConfigT>(value); }
365 template<
typename ProfilerConfigT = ProfilerConfig>
376 template<
typename ProfilerRuleConfigurationsT = Aws::Vector<ProfilerRuleConfiguration>>
377 void SetProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) { m_profilerRuleConfigurationsHasBeenSet =
true; m_profilerRuleConfigurations = std::forward<ProfilerRuleConfigurationsT>(value); }
378 template<
typename ProfilerRuleConfigurationsT = Aws::Vector<ProfilerRuleConfiguration>>
380 template<
typename ProfilerRuleConfigurationsT = ProfilerRuleConfiguration>
396 template<
typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
397 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
398 template<
typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
400 template<
typename EnvironmentKeyT = Aws::String,
typename EnvironmentValueT = Aws::String>
402 m_environmentHasBeenSet =
true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
return *
this;
413 template<
typename RetryStrategyT = RetryStrategy>
414 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet =
true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
415 template<
typename RetryStrategyT = RetryStrategy>
429 template<
typename RemoteDebugConfigT = RemoteDebugConfig>
430 void SetRemoteDebugConfig(RemoteDebugConfigT&& value) { m_remoteDebugConfigHasBeenSet =
true; m_remoteDebugConfig = std::forward<RemoteDebugConfigT>(value); }
431 template<
typename RemoteDebugConfigT = RemoteDebugConfig>
442 template<
typename InfraCheckConfigT = InfraCheckConfig>
443 void SetInfraCheckConfig(InfraCheckConfigT&& value) { m_infraCheckConfigHasBeenSet =
true; m_infraCheckConfig = std::forward<InfraCheckConfigT>(value); }
444 template<
typename InfraCheckConfigT = InfraCheckConfig>
455 template<
typename SessionChainingConfigT = SessionChainingConfig>
456 void SetSessionChainingConfig(SessionChainingConfigT&& value) { m_sessionChainingConfigHasBeenSet =
true; m_sessionChainingConfig = std::forward<SessionChainingConfigT>(value); }
457 template<
typename SessionChainingConfigT = SessionChainingConfig>
463 bool m_trainingJobNameHasBeenSet =
false;
466 bool m_hyperParametersHasBeenSet =
false;
469 bool m_algorithmSpecificationHasBeenSet =
false;
472 bool m_roleArnHasBeenSet =
false;
475 bool m_inputDataConfigHasBeenSet =
false;
478 bool m_outputDataConfigHasBeenSet =
false;
481 bool m_resourceConfigHasBeenSet =
false;
484 bool m_vpcConfigHasBeenSet =
false;
487 bool m_stoppingConditionHasBeenSet =
false;
490 bool m_tagsHasBeenSet =
false;
492 bool m_enableNetworkIsolation{
false};
493 bool m_enableNetworkIsolationHasBeenSet =
false;
495 bool m_enableInterContainerTrafficEncryption{
false};
496 bool m_enableInterContainerTrafficEncryptionHasBeenSet =
false;
498 bool m_enableManagedSpotTraining{
false};
499 bool m_enableManagedSpotTrainingHasBeenSet =
false;
501 CheckpointConfig m_checkpointConfig;
502 bool m_checkpointConfigHasBeenSet =
false;
504 DebugHookConfig m_debugHookConfig;
505 bool m_debugHookConfigHasBeenSet =
false;
508 bool m_debugRuleConfigurationsHasBeenSet =
false;
510 TensorBoardOutputConfig m_tensorBoardOutputConfig;
511 bool m_tensorBoardOutputConfigHasBeenSet =
false;
513 ExperimentConfig m_experimentConfig;
514 bool m_experimentConfigHasBeenSet =
false;
516 ProfilerConfig m_profilerConfig;
517 bool m_profilerConfigHasBeenSet =
false;
520 bool m_profilerRuleConfigurationsHasBeenSet =
false;
523 bool m_environmentHasBeenSet =
false;
525 RetryStrategy m_retryStrategy;
526 bool m_retryStrategyHasBeenSet =
false;
528 RemoteDebugConfig m_remoteDebugConfig;
529 bool m_remoteDebugConfigHasBeenSet =
false;
531 InfraCheckConfig m_infraCheckConfig;
532 bool m_infraCheckConfigHasBeenSet =
false;
534 SessionChainingConfig m_sessionChainingConfig;
535 bool m_sessionChainingConfigHasBeenSet =
false;
const StoppingCondition & GetStoppingCondition() const
virtual const char * GetServiceRequestName() const override
bool VpcConfigHasBeenSet() const
void SetInfraCheckConfig(InfraCheckConfigT &&value)
void SetEnableManagedSpotTraining(bool value)
CreateTrainingJobRequest & WithEnableInterContainerTrafficEncryption(bool value)
CreateTrainingJobRequest & WithResourceConfig(ResourceConfigT &&value)
const Aws::Vector< DebugRuleConfiguration > & GetDebugRuleConfigurations() const
const ResourceConfig & GetResourceConfig() const
bool ResourceConfigHasBeenSet() const
CreateTrainingJobRequest & WithSessionChainingConfig(SessionChainingConfigT &&value)
bool ProfilerRuleConfigurationsHasBeenSet() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRetryStrategy(RetryStrategyT &&value)
bool GetEnableInterContainerTrafficEncryption() const
const InfraCheckConfig & GetInfraCheckConfig() const
CreateTrainingJobRequest & WithVpcConfig(VpcConfigT &&value)
const SessionChainingConfig & GetSessionChainingConfig() const
CreateTrainingJobRequest & WithEnableNetworkIsolation(bool value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
CreateTrainingJobRequest & WithCheckpointConfig(CheckpointConfigT &&value)
CreateTrainingJobRequest & WithDebugRuleConfigurations(DebugRuleConfigurationsT &&value)
AWS_SAGEMAKER_API CreateTrainingJobRequest()=default
const Aws::Vector< Channel > & GetInputDataConfig() const
CreateTrainingJobRequest & WithRemoteDebugConfig(RemoteDebugConfigT &&value)
bool TensorBoardOutputConfigHasBeenSet() const
bool SessionChainingConfigHasBeenSet() const
bool OutputDataConfigHasBeenSet() const
CreateTrainingJobRequest & WithTrainingJobName(TrainingJobNameT &&value)
void SetEnvironment(EnvironmentT &&value)
CreateTrainingJobRequest & AddProfilerRuleConfigurations(ProfilerRuleConfigurationsT &&value)
const ProfilerConfig & GetProfilerConfig() const
const ExperimentConfig & GetExperimentConfig() const
void SetProfilerConfig(ProfilerConfigT &&value)
const CheckpointConfig & GetCheckpointConfig() const
bool InfraCheckConfigHasBeenSet() const
bool ProfilerConfigHasBeenSet() const
CreateTrainingJobRequest & WithTags(TagsT &&value)
CreateTrainingJobRequest & WithEnableManagedSpotTraining(bool value)
void SetDebugHookConfig(DebugHookConfigT &&value)
CreateTrainingJobRequest & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
void SetHyperParameters(HyperParametersT &&value)
const AlgorithmSpecification & GetAlgorithmSpecification() const
CreateTrainingJobRequest & AddInputDataConfig(InputDataConfigT &&value)
void SetEnableInterContainerTrafficEncryption(bool value)
const TensorBoardOutputConfig & GetTensorBoardOutputConfig() const
bool DebugHookConfigHasBeenSet() const
bool EnvironmentHasBeenSet() const
CreateTrainingJobRequest & WithExperimentConfig(ExperimentConfigT &&value)
bool EnableManagedSpotTrainingHasBeenSet() const
bool GetEnableManagedSpotTraining() const
bool AlgorithmSpecificationHasBeenSet() const
const DebugHookConfig & GetDebugHookConfig() const
const Aws::Vector< Tag > & GetTags() const
CreateTrainingJobRequest & WithStoppingCondition(StoppingConditionT &&value)
void SetOutputDataConfig(OutputDataConfigT &&value)
CreateTrainingJobRequest & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
CreateTrainingJobRequest & WithRetryStrategy(RetryStrategyT &&value)
CreateTrainingJobRequest & WithTensorBoardOutputConfig(TensorBoardOutputConfigT &&value)
CreateTrainingJobRequest & WithAlgorithmSpecification(AlgorithmSpecificationT &&value)
const Aws::String & GetTrainingJobName() const
bool GetEnableNetworkIsolation() const
void SetDebugRuleConfigurations(DebugRuleConfigurationsT &&value)
CreateTrainingJobRequest & AddTags(TagsT &&value)
void SetRemoteDebugConfig(RemoteDebugConfigT &&value)
bool DebugRuleConfigurationsHasBeenSet() const
void SetCheckpointConfig(CheckpointConfigT &&value)
void SetTrainingJobName(TrainingJobNameT &&value)
const OutputDataConfig & GetOutputDataConfig() const
CreateTrainingJobRequest & AddDebugRuleConfigurations(DebugRuleConfigurationsT &&value)
void SetProfilerRuleConfigurations(ProfilerRuleConfigurationsT &&value)
bool TagsHasBeenSet() const
void SetInputDataConfig(InputDataConfigT &&value)
const RetryStrategy & GetRetryStrategy() const
void SetTags(TagsT &&value)
bool InputDataConfigHasBeenSet() const
bool RemoteDebugConfigHasBeenSet() const
bool StoppingConditionHasBeenSet() const
CreateTrainingJobRequest & WithHyperParameters(HyperParametersT &&value)
void SetEnableNetworkIsolation(bool value)
void SetSessionChainingConfig(SessionChainingConfigT &&value)
CreateTrainingJobRequest & WithDebugHookConfig(DebugHookConfigT &&value)
bool CheckpointConfigHasBeenSet() const
bool RoleArnHasBeenSet() const
bool EnableNetworkIsolationHasBeenSet() const
void SetExperimentConfig(ExperimentConfigT &&value)
const Aws::String & GetRoleArn() const
void SetTensorBoardOutputConfig(TensorBoardOutputConfigT &&value)
CreateTrainingJobRequest & WithInfraCheckConfig(InfraCheckConfigT &&value)
void SetAlgorithmSpecification(AlgorithmSpecificationT &&value)
bool RetryStrategyHasBeenSet() const
void SetRoleArn(RoleArnT &&value)
const Aws::Vector< ProfilerRuleConfiguration > & GetProfilerRuleConfigurations() const
CreateTrainingJobRequest & WithProfilerRuleConfigurations(ProfilerRuleConfigurationsT &&value)
CreateTrainingJobRequest & WithInputDataConfig(InputDataConfigT &&value)
void SetStoppingCondition(StoppingConditionT &&value)
CreateTrainingJobRequest & WithEnvironment(EnvironmentT &&value)
bool HyperParametersHasBeenSet() const
void SetResourceConfig(ResourceConfigT &&value)
const VpcConfig & GetVpcConfig() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateTrainingJobRequest & WithProfilerConfig(ProfilerConfigT &&value)
bool EnableInterContainerTrafficEncryptionHasBeenSet() const
const RemoteDebugConfig & GetRemoteDebugConfig() const
void SetVpcConfig(VpcConfigT &&value)
bool TrainingJobNameHasBeenSet() const
bool ExperimentConfigHasBeenSet() const
CreateTrainingJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
CreateTrainingJobRequest & WithRoleArn(RoleArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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