7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ModelArtifacts.h>
10#include <aws/sagemaker/model/TrainingJobStatus.h>
11#include <aws/sagemaker/model/SecondaryStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/sagemaker/model/AlgorithmSpecification.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/OutputDataConfig.h>
16#include <aws/sagemaker/model/ResourceConfig.h>
17#include <aws/sagemaker/model/VpcConfig.h>
18#include <aws/sagemaker/model/StoppingCondition.h>
19#include <aws/core/utils/DateTime.h>
20#include <aws/sagemaker/model/CheckpointConfig.h>
21#include <aws/sagemaker/model/DebugHookConfig.h>
22#include <aws/sagemaker/model/ExperimentConfig.h>
23#include <aws/sagemaker/model/TensorBoardOutputConfig.h>
24#include <aws/sagemaker/model/ProfilerConfig.h>
25#include <aws/sagemaker/model/RetryStrategy.h>
26#include <aws/sagemaker/model/Channel.h>
27#include <aws/sagemaker/model/SecondaryStatusTransition.h>
28#include <aws/sagemaker/model/MetricData.h>
29#include <aws/sagemaker/model/DebugRuleConfiguration.h>
30#include <aws/sagemaker/model/DebugRuleEvaluationStatus.h>
31#include <aws/sagemaker/model/Tag.h>
71 inline void SetTrainingJobName(
const char* value) { m_trainingJobNameHasBeenSet =
true; m_trainingJobName.assign(value); }
85 inline void SetTrainingJobArn(
const char* value) { m_trainingJobArnHasBeenSet =
true; m_trainingJobArn.assign(value); }
100 inline void SetTuningJobArn(
const char* value) { m_tuningJobArnHasBeenSet =
true; m_tuningJobArn.assign(value); }
114 inline void SetLabelingJobArn(
const char* value) { m_labelingJobArnHasBeenSet =
true; m_labelingJobArn.assign(value); }
128 inline void SetAutoMLJobArn(
const char* value) { m_autoMLJobArnHasBeenSet =
true; m_autoMLJobArn.assign(value); }
212 inline void SetFailureReason(
const char* value) { m_failureReasonHasBeenSet =
true; m_failureReason.assign(value); }
234 inline TrainingJob&
AddHyperParameters(
const char* key,
const char* value) { m_hyperParametersHasBeenSet =
true; m_hyperParameters.emplace(key, value);
return *
this; }
259 inline void SetRoleArn(
const char* value) { m_roleArnHasBeenSet =
true; m_roleArn.assign(value); }
583 inline TrainingJob&
AddEnvironment(
const char* key,
const char* value) { m_environmentHasBeenSet =
true; m_environment.emplace(key, value);
return *
this; }
614 inline TrainingJob&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
619 bool m_trainingJobNameHasBeenSet =
false;
622 bool m_trainingJobArnHasBeenSet =
false;
625 bool m_tuningJobArnHasBeenSet =
false;
628 bool m_labelingJobArnHasBeenSet =
false;
631 bool m_autoMLJobArnHasBeenSet =
false;
634 bool m_modelArtifactsHasBeenSet =
false;
637 bool m_trainingJobStatusHasBeenSet =
false;
640 bool m_secondaryStatusHasBeenSet =
false;
643 bool m_failureReasonHasBeenSet =
false;
646 bool m_hyperParametersHasBeenSet =
false;
649 bool m_algorithmSpecificationHasBeenSet =
false;
652 bool m_roleArnHasBeenSet =
false;
655 bool m_inputDataConfigHasBeenSet =
false;
658 bool m_outputDataConfigHasBeenSet =
false;
661 bool m_resourceConfigHasBeenSet =
false;
664 bool m_vpcConfigHasBeenSet =
false;
667 bool m_stoppingConditionHasBeenSet =
false;
670 bool m_creationTimeHasBeenSet =
false;
673 bool m_trainingStartTimeHasBeenSet =
false;
676 bool m_trainingEndTimeHasBeenSet =
false;
679 bool m_lastModifiedTimeHasBeenSet =
false;
682 bool m_secondaryStatusTransitionsHasBeenSet =
false;
685 bool m_finalMetricDataListHasBeenSet =
false;
687 bool m_enableNetworkIsolation;
688 bool m_enableNetworkIsolationHasBeenSet =
false;
690 bool m_enableInterContainerTrafficEncryption;
691 bool m_enableInterContainerTrafficEncryptionHasBeenSet =
false;
693 bool m_enableManagedSpotTraining;
694 bool m_enableManagedSpotTrainingHasBeenSet =
false;
697 bool m_checkpointConfigHasBeenSet =
false;
699 int m_trainingTimeInSeconds;
700 bool m_trainingTimeInSecondsHasBeenSet =
false;
702 int m_billableTimeInSeconds;
703 bool m_billableTimeInSecondsHasBeenSet =
false;
706 bool m_debugHookConfigHasBeenSet =
false;
709 bool m_experimentConfigHasBeenSet =
false;
712 bool m_debugRuleConfigurationsHasBeenSet =
false;
715 bool m_tensorBoardOutputConfigHasBeenSet =
false;
718 bool m_debugRuleEvaluationStatusesHasBeenSet =
false;
721 bool m_profilerConfigHasBeenSet =
false;
724 bool m_environmentHasBeenSet =
false;
727 bool m_retryStrategyHasBeenSet =
false;
730 bool m_tagsHasBeenSet =
false;
TrainingJob & WithDebugRuleEvaluationStatuses(Aws::Vector< DebugRuleEvaluationStatus > &&value)
TrainingJob & WithHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
TrainingJob & AddDebugRuleEvaluationStatuses(const DebugRuleEvaluationStatus &value)
void SetResourceConfig(ResourceConfig &&value)
const ProfilerConfig & GetProfilerConfig() const
void SetTrainingJobStatus(const TrainingJobStatus &value)
int GetBillableTimeInSeconds() const
void SetAlgorithmSpecification(AlgorithmSpecification &&value)
void SetTrainingJobArn(const Aws::String &value)
TrainingJob & AddInputDataConfig(Channel &&value)
bool TrainingJobNameHasBeenSet() const
TrainingJob & WithModelArtifacts(const ModelArtifacts &value)
TrainingJob & WithTags(const Aws::Vector< Tag > &value)
TrainingJob & WithRoleArn(const Aws::String &value)
TrainingJob & AddHyperParameters(const Aws::String &key, const Aws::String &value)
void SetTrainingStartTime(const Aws::Utils::DateTime &value)
void SetLabelingJobArn(const char *value)
TrainingJob & AddDebugRuleConfigurations(DebugRuleConfiguration &&value)
void SetRoleArn(Aws::String &&value)
TrainingJob & WithTrainingJobStatus(TrainingJobStatus &&value)
bool CreationTimeHasBeenSet() const
const Aws::Vector< SecondaryStatusTransition > & GetSecondaryStatusTransitions() const
TrainingJob & WithTrainingEndTime(Aws::Utils::DateTime &&value)
TrainingJob & AddFinalMetricDataList(const MetricData &value)
TrainingJob & AddHyperParameters(Aws::String &&key, const Aws::String &value)
void SetAutoMLJobArn(const char *value)
TrainingJob & WithTrainingJobName(Aws::String &&value)
TrainingJob & WithAutoMLJobArn(const Aws::String &value)
TrainingJob & WithOutputDataConfig(OutputDataConfig &&value)
TrainingJob & WithLabelingJobArn(Aws::String &&value)
void SetProfilerConfig(ProfilerConfig &&value)
TrainingJob & WithTuningJobArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
bool ResourceConfigHasBeenSet() const
TrainingJob & AddHyperParameters(Aws::String &&key, Aws::String &&value)
const Aws::Vector< Channel > & GetInputDataConfig() const
void SetCreationTime(const Aws::Utils::DateTime &value)
TrainingJob & WithFailureReason(const Aws::String &value)
TrainingJob & WithHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetEnableManagedSpotTraining(bool value)
const VpcConfig & GetVpcConfig() const
bool SecondaryStatusTransitionsHasBeenSet() const
void SetTrainingJobName(Aws::String &&value)
TrainingJob & WithAlgorithmSpecification(const AlgorithmSpecification &value)
const Aws::Utils::DateTime & GetTrainingStartTime() const
void SetFinalMetricDataList(Aws::Vector< MetricData > &&value)
TrainingJob & WithTrainingJobArn(const Aws::String &value)
bool ProfilerConfigHasBeenSet() const
TrainingJob & WithCreationTime(const Aws::Utils::DateTime &value)
TrainingJob & AddDebugRuleConfigurations(const DebugRuleConfiguration &value)
TrainingJob & AddEnvironment(Aws::String &&key, const Aws::String &value)
bool DebugHookConfigHasBeenSet() const
TrainingJob & WithSecondaryStatus(SecondaryStatus &&value)
void SetTuningJobArn(Aws::String &&value)
void SetTrainingTimeInSeconds(int value)
TrainingJob & WithRoleArn(Aws::String &&value)
TrainingJob & WithInputDataConfig(const Aws::Vector< Channel > &value)
bool GetEnableNetworkIsolation() const
TrainingJob & WithDebugRuleConfigurations(const Aws::Vector< DebugRuleConfiguration > &value)
TrainingJob & WithDebugHookConfig(const DebugHookConfig &value)
void SetBillableTimeInSeconds(int value)
bool EnvironmentHasBeenSet() const
bool TensorBoardOutputConfigHasBeenSet() const
void SetResourceConfig(const ResourceConfig &value)
bool TuningJobArnHasBeenSet() const
void SetTrainingJobStatus(TrainingJobStatus &&value)
TrainingJob & WithStoppingCondition(const StoppingCondition &value)
const TensorBoardOutputConfig & GetTensorBoardOutputConfig() const
void SetFailureReason(const char *value)
TrainingJob & WithOutputDataConfig(const OutputDataConfig &value)
TrainingJob & WithExperimentConfig(const ExperimentConfig &value)
void SetTrainingJobName(const Aws::String &value)
TrainingJob & AddHyperParameters(const Aws::String &key, Aws::String &&value)
TrainingJob & AddEnvironment(const char *key, Aws::String &&value)
TrainingJob & WithSecondaryStatus(const SecondaryStatus &value)
TrainingJob & WithLabelingJobArn(const char *value)
void SetEnableNetworkIsolation(bool value)
TrainingJob & WithVpcConfig(const VpcConfig &value)
TrainingJob & WithDebugRuleConfigurations(Aws::Vector< DebugRuleConfiguration > &&value)
bool InputDataConfigHasBeenSet() const
TrainingJob & WithEnableInterContainerTrafficEncryption(bool value)
bool AutoMLJobArnHasBeenSet() const
void SetVpcConfig(VpcConfig &&value)
TrainingJob & WithProfilerConfig(ProfilerConfig &&value)
bool VpcConfigHasBeenSet() const
AWS_SAGEMAKER_API TrainingJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecondaryStatusTransitions(Aws::Vector< SecondaryStatusTransition > &&value)
bool EnableManagedSpotTrainingHasBeenSet() const
const Aws::Vector< DebugRuleConfiguration > & GetDebugRuleConfigurations() const
TrainingJob & WithResourceConfig(ResourceConfig &&value)
const SecondaryStatus & GetSecondaryStatus() const
AWS_SAGEMAKER_API TrainingJob()
TrainingJob & WithCreationTime(Aws::Utils::DateTime &&value)
TrainingJob & AddEnvironment(Aws::String &&key, Aws::String &&value)
void SetTrainingJobArn(Aws::String &&value)
TrainingJob & AddTags(const Tag &value)
void SetFailureReason(const Aws::String &value)
bool SecondaryStatusHasBeenSet() const
bool ExperimentConfigHasBeenSet() const
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
TrainingJob & WithTrainingStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetLabelingJobArn() const
const AlgorithmSpecification & GetAlgorithmSpecification() const
TrainingJob & WithExperimentConfig(ExperimentConfig &&value)
bool RoleArnHasBeenSet() const
bool TrainingJobStatusHasBeenSet() const
bool GetEnableManagedSpotTraining() const
TrainingJob & AddTags(Tag &&value)
void SetOutputDataConfig(const OutputDataConfig &value)
void SetCheckpointConfig(const CheckpointConfig &value)
bool RetryStrategyHasBeenSet() const
TrainingJob & WithTrainingJobStatus(const TrainingJobStatus &value)
void SetLabelingJobArn(Aws::String &&value)
bool CheckpointConfigHasBeenSet() const
bool ModelArtifactsHasBeenSet() const
void SetEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Utils::DateTime & GetTrainingEndTime() const
TrainingJob & WithVpcConfig(VpcConfig &&value)
bool TrainingEndTimeHasBeenSet() const
TrainingJob & WithRoleArn(const char *value)
TrainingJob & AddSecondaryStatusTransitions(const SecondaryStatusTransition &value)
bool DebugRuleEvaluationStatusesHasBeenSet() const
TrainingJob & WithRetryStrategy(RetryStrategy &&value)
void SetStoppingCondition(const StoppingCondition &value)
TrainingJob & WithAutoMLJobArn(const char *value)
const ExperimentConfig & GetExperimentConfig() const
void SetDebugRuleEvaluationStatuses(Aws::Vector< DebugRuleEvaluationStatus > &&value)
AWS_SAGEMAKER_API TrainingJob(Aws::Utils::Json::JsonView jsonValue)
TrainingJob & WithAutoMLJobArn(Aws::String &&value)
TrainingJob & WithTrainingJobName(const Aws::String &value)
void SetTrainingJobArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
void SetAutoMLJobArn(const Aws::String &value)
void SetEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
const CheckpointConfig & GetCheckpointConfig() const
void SetRoleArn(const char *value)
bool AlgorithmSpecificationHasBeenSet() const
void SetSecondaryStatus(const SecondaryStatus &value)
TrainingJob & AddHyperParameters(Aws::String &&key, const char *value)
const ModelArtifacts & GetModelArtifacts() const
bool TrainingTimeInSecondsHasBeenSet() const
TrainingJob & WithFinalMetricDataList(const Aws::Vector< MetricData > &value)
void SetOutputDataConfig(OutputDataConfig &&value)
TrainingJob & WithModelArtifacts(ModelArtifacts &&value)
TrainingJob & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
TrainingJob & WithSecondaryStatusTransitions(Aws::Vector< SecondaryStatusTransition > &&value)
void SetRoleArn(const Aws::String &value)
void SetRetryStrategy(RetryStrategy &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
const OutputDataConfig & GetOutputDataConfig() const
TrainingJob & WithLastModifiedTime(Aws::Utils::DateTime &&value)
TrainingJob & WithSecondaryStatusTransitions(const Aws::Vector< SecondaryStatusTransition > &value)
void SetVpcConfig(const VpcConfig &value)
bool HyperParametersHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecondaryStatus(SecondaryStatus &&value)
void SetTags(const Aws::Vector< Tag > &value)
TrainingJob & WithFinalMetricDataList(Aws::Vector< MetricData > &&value)
bool TagsHasBeenSet() const
bool TrainingStartTimeHasBeenSet() const
const Aws::String & GetTrainingJobName() const
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
const TrainingJobStatus & GetTrainingJobStatus() const
void SetCheckpointConfig(CheckpointConfig &&value)
void SetFinalMetricDataList(const Aws::Vector< MetricData > &value)
TrainingJob & WithLabelingJobArn(const Aws::String &value)
bool GetEnableInterContainerTrafficEncryption() const
bool LastModifiedTimeHasBeenSet() const
void SetDebugRuleConfigurations(Aws::Vector< DebugRuleConfiguration > &&value)
TrainingJob & WithTrainingStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
TrainingJob & AddEnvironment(const Aws::String &key, Aws::String &&value)
const Aws::String & GetTrainingJobArn() const
TrainingJob & WithTuningJobArn(const char *value)
void SetTensorBoardOutputConfig(TensorBoardOutputConfig &&value)
TrainingJob & WithLastModifiedTime(const Aws::Utils::DateTime &value)
TrainingJob & WithEnableManagedSpotTraining(bool value)
TrainingJob & AddDebugRuleEvaluationStatuses(DebugRuleEvaluationStatus &&value)
void SetDebugHookConfig(const DebugHookConfig &value)
void SetExperimentConfig(const ExperimentConfig &value)
void SetStoppingCondition(StoppingCondition &&value)
void SetInputDataConfig(Aws::Vector< Channel > &&value)
TrainingJob & AddEnvironment(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< MetricData > & GetFinalMetricDataList() const
void SetTuningJobArn(const Aws::String &value)
void SetHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetModelArtifacts(ModelArtifacts &&value)
void SetDebugRuleEvaluationStatuses(const Aws::Vector< DebugRuleEvaluationStatus > &value)
TrainingJob & WithTrainingJobName(const char *value)
const StoppingCondition & GetStoppingCondition() const
TrainingJob & WithTensorBoardOutputConfig(TensorBoardOutputConfig &&value)
TrainingJob & AddEnvironment(Aws::String &&key, const char *value)
const Aws::String & GetRoleArn() const
TrainingJob & WithEnableNetworkIsolation(bool value)
TrainingJob & AddHyperParameters(const char *key, Aws::String &&value)
bool DebugRuleConfigurationsHasBeenSet() const
void SetAutoMLJobArn(Aws::String &&value)
const Aws::Vector< DebugRuleEvaluationStatus > & GetDebugRuleEvaluationStatuses() const
void SetAlgorithmSpecification(const AlgorithmSpecification &value)
void SetRetryStrategy(const RetryStrategy &value)
TrainingJob & AddEnvironment(const char *key, const char *value)
void SetInputDataConfig(const Aws::Vector< Channel > &value)
const DebugHookConfig & GetDebugHookConfig() const
TrainingJob & WithTrainingTimeInSeconds(int value)
TrainingJob & WithRetryStrategy(const RetryStrategy &value)
bool EnableInterContainerTrafficEncryptionHasBeenSet() const
TrainingJob & WithTrainingJobArn(Aws::String &&value)
TrainingJob & WithTags(Aws::Vector< Tag > &&value)
bool FailureReasonHasBeenSet() const
TrainingJob & WithInputDataConfig(Aws::Vector< Channel > &&value)
TrainingJob & WithFailureReason(Aws::String &&value)
const RetryStrategy & GetRetryStrategy() const
void SetTensorBoardOutputConfig(const TensorBoardOutputConfig &value)
void SetTrainingStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetFailureReason() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetTuningJobArn() const
TrainingJob & WithResourceConfig(const ResourceConfig &value)
void SetDebugRuleConfigurations(const Aws::Vector< DebugRuleConfiguration > &value)
TrainingJob & WithTrainingJobArn(const char *value)
TrainingJob & WithDebugRuleEvaluationStatuses(const Aws::Vector< DebugRuleEvaluationStatus > &value)
int GetTrainingTimeInSeconds() const
TrainingJob & WithAlgorithmSpecification(AlgorithmSpecification &&value)
const Aws::String & GetAutoMLJobArn() const
bool LabelingJobArnHasBeenSet() const
bool TrainingJobArnHasBeenSet() const
bool EnableNetworkIsolationHasBeenSet() const
void SetSecondaryStatusTransitions(const Aws::Vector< SecondaryStatusTransition > &value)
void SetExperimentConfig(ExperimentConfig &&value)
bool FinalMetricDataListHasBeenSet() const
TrainingJob & WithCheckpointConfig(const CheckpointConfig &value)
void SetModelArtifacts(const ModelArtifacts &value)
void SetTrainingEndTime(const Aws::Utils::DateTime &value)
void SetTuningJobArn(const char *value)
TrainingJob & WithProfilerConfig(const ProfilerConfig &value)
TrainingJob & AddSecondaryStatusTransitions(SecondaryStatusTransition &&value)
TrainingJob & AddInputDataConfig(const Channel &value)
void SetDebugHookConfig(DebugHookConfig &&value)
void SetEnableInterContainerTrafficEncryption(bool value)
TrainingJob & WithTrainingEndTime(const Aws::Utils::DateTime &value)
const ResourceConfig & GetResourceConfig() const
void SetFailureReason(Aws::String &&value)
void SetProfilerConfig(const ProfilerConfig &value)
TrainingJob & WithDebugHookConfig(DebugHookConfig &&value)
void SetTrainingJobName(const char *value)
TrainingJob & AddHyperParameters(const char *key, const char *value)
TrainingJob & WithStoppingCondition(StoppingCondition &&value)
void SetLabelingJobArn(const Aws::String &value)
TrainingJob & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
bool StoppingConditionHasBeenSet() const
bool OutputDataConfigHasBeenSet() const
TrainingJob & WithTuningJobArn(const Aws::String &value)
TrainingJob & AddFinalMetricDataList(MetricData &&value)
TrainingJob & WithCheckpointConfig(CheckpointConfig &&value)
TrainingJob & WithBillableTimeInSeconds(int value)
TrainingJob & WithTensorBoardOutputConfig(const TensorBoardOutputConfig &value)
void SetTrainingEndTime(Aws::Utils::DateTime &&value)
bool BillableTimeInSecondsHasBeenSet() const
TrainingJob & WithFailureReason(const char *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