AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TrainingJob.h
1
6#pragma once
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>
32#include <utility>
33
34namespace Aws
35{
36namespace Utils
37{
38namespace Json
39{
40 class JsonValue;
41 class JsonView;
42} // namespace Json
43} // namespace Utils
44namespace SageMaker
45{
46namespace Model
47{
48
55 {
56 public:
57 AWS_SAGEMAKER_API TrainingJob() = default;
58 AWS_SAGEMAKER_API TrainingJob(Aws::Utils::Json::JsonView jsonValue);
59 AWS_SAGEMAKER_API TrainingJob& operator=(Aws::Utils::Json::JsonView jsonValue);
60 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
61
62
64
67 inline const Aws::String& GetTrainingJobName() const { return m_trainingJobName; }
68 inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; }
69 template<typename TrainingJobNameT = Aws::String>
70 void SetTrainingJobName(TrainingJobNameT&& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = std::forward<TrainingJobNameT>(value); }
71 template<typename TrainingJobNameT = Aws::String>
72 TrainingJob& WithTrainingJobName(TrainingJobNameT&& value) { SetTrainingJobName(std::forward<TrainingJobNameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetTrainingJobArn() const { return m_trainingJobArn; }
80 inline bool TrainingJobArnHasBeenSet() const { return m_trainingJobArnHasBeenSet; }
81 template<typename TrainingJobArnT = Aws::String>
82 void SetTrainingJobArn(TrainingJobArnT&& value) { m_trainingJobArnHasBeenSet = true; m_trainingJobArn = std::forward<TrainingJobArnT>(value); }
83 template<typename TrainingJobArnT = Aws::String>
84 TrainingJob& WithTrainingJobArn(TrainingJobArnT&& value) { SetTrainingJobArn(std::forward<TrainingJobArnT>(value)); return *this;}
86
88
92 inline const Aws::String& GetTuningJobArn() const { return m_tuningJobArn; }
93 inline bool TuningJobArnHasBeenSet() const { return m_tuningJobArnHasBeenSet; }
94 template<typename TuningJobArnT = Aws::String>
95 void SetTuningJobArn(TuningJobArnT&& value) { m_tuningJobArnHasBeenSet = true; m_tuningJobArn = std::forward<TuningJobArnT>(value); }
96 template<typename TuningJobArnT = Aws::String>
97 TrainingJob& WithTuningJobArn(TuningJobArnT&& value) { SetTuningJobArn(std::forward<TuningJobArnT>(value)); return *this;}
99
101
104 inline const Aws::String& GetLabelingJobArn() const { return m_labelingJobArn; }
105 inline bool LabelingJobArnHasBeenSet() const { return m_labelingJobArnHasBeenSet; }
106 template<typename LabelingJobArnT = Aws::String>
107 void SetLabelingJobArn(LabelingJobArnT&& value) { m_labelingJobArnHasBeenSet = true; m_labelingJobArn = std::forward<LabelingJobArnT>(value); }
108 template<typename LabelingJobArnT = Aws::String>
109 TrainingJob& WithLabelingJobArn(LabelingJobArnT&& value) { SetLabelingJobArn(std::forward<LabelingJobArnT>(value)); return *this;}
111
113
116 inline const Aws::String& GetAutoMLJobArn() const { return m_autoMLJobArn; }
117 inline bool AutoMLJobArnHasBeenSet() const { return m_autoMLJobArnHasBeenSet; }
118 template<typename AutoMLJobArnT = Aws::String>
119 void SetAutoMLJobArn(AutoMLJobArnT&& value) { m_autoMLJobArnHasBeenSet = true; m_autoMLJobArn = std::forward<AutoMLJobArnT>(value); }
120 template<typename AutoMLJobArnT = Aws::String>
121 TrainingJob& WithAutoMLJobArn(AutoMLJobArnT&& value) { SetAutoMLJobArn(std::forward<AutoMLJobArnT>(value)); return *this;}
123
125
129 inline const ModelArtifacts& GetModelArtifacts() const { return m_modelArtifacts; }
130 inline bool ModelArtifactsHasBeenSet() const { return m_modelArtifactsHasBeenSet; }
131 template<typename ModelArtifactsT = ModelArtifacts>
132 void SetModelArtifacts(ModelArtifactsT&& value) { m_modelArtifactsHasBeenSet = true; m_modelArtifacts = std::forward<ModelArtifactsT>(value); }
133 template<typename ModelArtifactsT = ModelArtifacts>
134 TrainingJob& WithModelArtifacts(ModelArtifactsT&& value) { SetModelArtifacts(std::forward<ModelArtifactsT>(value)); return *this;}
136
138
149 inline TrainingJobStatus GetTrainingJobStatus() const { return m_trainingJobStatus; }
150 inline bool TrainingJobStatusHasBeenSet() const { return m_trainingJobStatusHasBeenSet; }
151 inline void SetTrainingJobStatus(TrainingJobStatus value) { m_trainingJobStatusHasBeenSet = true; m_trainingJobStatus = value; }
154
156
184 inline SecondaryStatus GetSecondaryStatus() const { return m_secondaryStatus; }
185 inline bool SecondaryStatusHasBeenSet() const { return m_secondaryStatusHasBeenSet; }
186 inline void SetSecondaryStatus(SecondaryStatus value) { m_secondaryStatusHasBeenSet = true; m_secondaryStatus = value; }
189
191
194 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
195 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
196 template<typename FailureReasonT = Aws::String>
197 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
198 template<typename FailureReasonT = Aws::String>
199 TrainingJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
201
203
206 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
207 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
208 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
209 void SetHyperParameters(HyperParametersT&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::forward<HyperParametersT>(value); }
210 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
211 TrainingJob& WithHyperParameters(HyperParametersT&& value) { SetHyperParameters(std::forward<HyperParametersT>(value)); return *this;}
212 template<typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
213 TrainingJob& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
214 m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value)); return *this;
215 }
217
219
223 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
224 inline bool AlgorithmSpecificationHasBeenSet() const { return m_algorithmSpecificationHasBeenSet; }
225 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
226 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) { m_algorithmSpecificationHasBeenSet = true; m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value); }
227 template<typename AlgorithmSpecificationT = AlgorithmSpecification>
228 TrainingJob& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) { SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value)); return *this;}
230
232
236 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
237 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
238 template<typename RoleArnT = Aws::String>
239 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
240 template<typename RoleArnT = Aws::String>
241 TrainingJob& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
243
245
250 inline const Aws::Vector<Channel>& GetInputDataConfig() const { return m_inputDataConfig; }
251 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
252 template<typename InputDataConfigT = Aws::Vector<Channel>>
253 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
254 template<typename InputDataConfigT = Aws::Vector<Channel>>
255 TrainingJob& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
256 template<typename InputDataConfigT = Channel>
257 TrainingJob& AddInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value)); return *this; }
259
261
265 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
266 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
267 template<typename OutputDataConfigT = OutputDataConfig>
268 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
269 template<typename OutputDataConfigT = OutputDataConfig>
270 TrainingJob& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
272
274
278 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
279 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
280 template<typename ResourceConfigT = ResourceConfig>
281 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
282 template<typename ResourceConfigT = ResourceConfig>
283 TrainingJob& WithResourceConfig(ResourceConfigT&& value) { SetResourceConfig(std::forward<ResourceConfigT>(value)); return *this;}
285
287
295 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
296 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
297 template<typename VpcConfigT = VpcConfig>
298 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
299 template<typename VpcConfigT = VpcConfig>
300 TrainingJob& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
302
304
313 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
314 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
315 template<typename StoppingConditionT = StoppingCondition>
316 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
317 template<typename StoppingConditionT = StoppingCondition>
318 TrainingJob& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
320
322
325 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
326 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
327 template<typename CreationTimeT = Aws::Utils::DateTime>
328 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
329 template<typename CreationTimeT = Aws::Utils::DateTime>
330 TrainingJob& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
332
334
341 inline const Aws::Utils::DateTime& GetTrainingStartTime() const { return m_trainingStartTime; }
342 inline bool TrainingStartTimeHasBeenSet() const { return m_trainingStartTimeHasBeenSet; }
343 template<typename TrainingStartTimeT = Aws::Utils::DateTime>
344 void SetTrainingStartTime(TrainingStartTimeT&& value) { m_trainingStartTimeHasBeenSet = true; m_trainingStartTime = std::forward<TrainingStartTimeT>(value); }
345 template<typename TrainingStartTimeT = Aws::Utils::DateTime>
346 TrainingJob& WithTrainingStartTime(TrainingStartTimeT&& value) { SetTrainingStartTime(std::forward<TrainingStartTimeT>(value)); return *this;}
348
350
357 inline const Aws::Utils::DateTime& GetTrainingEndTime() const { return m_trainingEndTime; }
358 inline bool TrainingEndTimeHasBeenSet() const { return m_trainingEndTimeHasBeenSet; }
359 template<typename TrainingEndTimeT = Aws::Utils::DateTime>
360 void SetTrainingEndTime(TrainingEndTimeT&& value) { m_trainingEndTimeHasBeenSet = true; m_trainingEndTime = std::forward<TrainingEndTimeT>(value); }
361 template<typename TrainingEndTimeT = Aws::Utils::DateTime>
362 TrainingJob& WithTrainingEndTime(TrainingEndTimeT&& value) { SetTrainingEndTime(std::forward<TrainingEndTimeT>(value)); return *this;}
364
366
370 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
371 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
372 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
373 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
374 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
375 TrainingJob& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
377
379
383 inline const Aws::Vector<SecondaryStatusTransition>& GetSecondaryStatusTransitions() const { return m_secondaryStatusTransitions; }
384 inline bool SecondaryStatusTransitionsHasBeenSet() const { return m_secondaryStatusTransitionsHasBeenSet; }
385 template<typename SecondaryStatusTransitionsT = Aws::Vector<SecondaryStatusTransition>>
386 void SetSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) { m_secondaryStatusTransitionsHasBeenSet = true; m_secondaryStatusTransitions = std::forward<SecondaryStatusTransitionsT>(value); }
387 template<typename SecondaryStatusTransitionsT = Aws::Vector<SecondaryStatusTransition>>
388 TrainingJob& WithSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) { SetSecondaryStatusTransitions(std::forward<SecondaryStatusTransitionsT>(value)); return *this;}
389 template<typename SecondaryStatusTransitionsT = SecondaryStatusTransition>
390 TrainingJob& AddSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) { m_secondaryStatusTransitionsHasBeenSet = true; m_secondaryStatusTransitions.emplace_back(std::forward<SecondaryStatusTransitionsT>(value)); return *this; }
392
394
398 inline const Aws::Vector<MetricData>& GetFinalMetricDataList() const { return m_finalMetricDataList; }
399 inline bool FinalMetricDataListHasBeenSet() const { return m_finalMetricDataListHasBeenSet; }
400 template<typename FinalMetricDataListT = Aws::Vector<MetricData>>
401 void SetFinalMetricDataList(FinalMetricDataListT&& value) { m_finalMetricDataListHasBeenSet = true; m_finalMetricDataList = std::forward<FinalMetricDataListT>(value); }
402 template<typename FinalMetricDataListT = Aws::Vector<MetricData>>
403 TrainingJob& WithFinalMetricDataList(FinalMetricDataListT&& value) { SetFinalMetricDataList(std::forward<FinalMetricDataListT>(value)); return *this;}
404 template<typename FinalMetricDataListT = MetricData>
405 TrainingJob& AddFinalMetricDataList(FinalMetricDataListT&& value) { m_finalMetricDataListHasBeenSet = true; m_finalMetricDataList.emplace_back(std::forward<FinalMetricDataListT>(value)); return *this; }
407
409
414 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
415 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
416 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
417 inline TrainingJob& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;}
419
421
428 inline bool GetEnableInterContainerTrafficEncryption() const { return m_enableInterContainerTrafficEncryption; }
429 inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; }
430 inline void SetEnableInterContainerTrafficEncryption(bool value) { m_enableInterContainerTrafficEncryptionHasBeenSet = true; m_enableInterContainerTrafficEncryption = value; }
433
435
441 inline bool GetEnableManagedSpotTraining() const { return m_enableManagedSpotTraining; }
442 inline bool EnableManagedSpotTrainingHasBeenSet() const { return m_enableManagedSpotTrainingHasBeenSet; }
443 inline void SetEnableManagedSpotTraining(bool value) { m_enableManagedSpotTrainingHasBeenSet = true; m_enableManagedSpotTraining = value; }
444 inline TrainingJob& WithEnableManagedSpotTraining(bool value) { SetEnableManagedSpotTraining(value); return *this;}
446
448
449 inline const CheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
450 inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; }
451 template<typename CheckpointConfigT = CheckpointConfig>
452 void SetCheckpointConfig(CheckpointConfigT&& value) { m_checkpointConfigHasBeenSet = true; m_checkpointConfig = std::forward<CheckpointConfigT>(value); }
453 template<typename CheckpointConfigT = CheckpointConfig>
454 TrainingJob& WithCheckpointConfig(CheckpointConfigT&& value) { SetCheckpointConfig(std::forward<CheckpointConfigT>(value)); return *this;}
456
458
461 inline int GetTrainingTimeInSeconds() const { return m_trainingTimeInSeconds; }
462 inline bool TrainingTimeInSecondsHasBeenSet() const { return m_trainingTimeInSecondsHasBeenSet; }
463 inline void SetTrainingTimeInSeconds(int value) { m_trainingTimeInSecondsHasBeenSet = true; m_trainingTimeInSeconds = value; }
464 inline TrainingJob& WithTrainingTimeInSeconds(int value) { SetTrainingTimeInSeconds(value); return *this;}
466
468
471 inline int GetBillableTimeInSeconds() const { return m_billableTimeInSeconds; }
472 inline bool BillableTimeInSecondsHasBeenSet() const { return m_billableTimeInSecondsHasBeenSet; }
473 inline void SetBillableTimeInSeconds(int value) { m_billableTimeInSecondsHasBeenSet = true; m_billableTimeInSeconds = value; }
474 inline TrainingJob& WithBillableTimeInSeconds(int value) { SetBillableTimeInSeconds(value); return *this;}
476
478
479 inline const DebugHookConfig& GetDebugHookConfig() const { return m_debugHookConfig; }
480 inline bool DebugHookConfigHasBeenSet() const { return m_debugHookConfigHasBeenSet; }
481 template<typename DebugHookConfigT = DebugHookConfig>
482 void SetDebugHookConfig(DebugHookConfigT&& value) { m_debugHookConfigHasBeenSet = true; m_debugHookConfig = std::forward<DebugHookConfigT>(value); }
483 template<typename DebugHookConfigT = DebugHookConfig>
484 TrainingJob& WithDebugHookConfig(DebugHookConfigT&& value) { SetDebugHookConfig(std::forward<DebugHookConfigT>(value)); return *this;}
486
488
489 inline const ExperimentConfig& GetExperimentConfig() const { return m_experimentConfig; }
490 inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; }
491 template<typename ExperimentConfigT = ExperimentConfig>
492 void SetExperimentConfig(ExperimentConfigT&& value) { m_experimentConfigHasBeenSet = true; m_experimentConfig = std::forward<ExperimentConfigT>(value); }
493 template<typename ExperimentConfigT = ExperimentConfig>
494 TrainingJob& WithExperimentConfig(ExperimentConfigT&& value) { SetExperimentConfig(std::forward<ExperimentConfigT>(value)); return *this;}
496
498
501 inline const Aws::Vector<DebugRuleConfiguration>& GetDebugRuleConfigurations() const { return m_debugRuleConfigurations; }
502 inline bool DebugRuleConfigurationsHasBeenSet() const { return m_debugRuleConfigurationsHasBeenSet; }
503 template<typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
504 void SetDebugRuleConfigurations(DebugRuleConfigurationsT&& value) { m_debugRuleConfigurationsHasBeenSet = true; m_debugRuleConfigurations = std::forward<DebugRuleConfigurationsT>(value); }
505 template<typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
506 TrainingJob& WithDebugRuleConfigurations(DebugRuleConfigurationsT&& value) { SetDebugRuleConfigurations(std::forward<DebugRuleConfigurationsT>(value)); return *this;}
507 template<typename DebugRuleConfigurationsT = DebugRuleConfiguration>
508 TrainingJob& AddDebugRuleConfigurations(DebugRuleConfigurationsT&& value) { m_debugRuleConfigurationsHasBeenSet = true; m_debugRuleConfigurations.emplace_back(std::forward<DebugRuleConfigurationsT>(value)); return *this; }
510
512
513 inline const TensorBoardOutputConfig& GetTensorBoardOutputConfig() const { return m_tensorBoardOutputConfig; }
514 inline bool TensorBoardOutputConfigHasBeenSet() const { return m_tensorBoardOutputConfigHasBeenSet; }
515 template<typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
516 void SetTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) { m_tensorBoardOutputConfigHasBeenSet = true; m_tensorBoardOutputConfig = std::forward<TensorBoardOutputConfigT>(value); }
517 template<typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
518 TrainingJob& WithTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) { SetTensorBoardOutputConfig(std::forward<TensorBoardOutputConfigT>(value)); return *this;}
520
522
526 inline const Aws::Vector<DebugRuleEvaluationStatus>& GetDebugRuleEvaluationStatuses() const { return m_debugRuleEvaluationStatuses; }
527 inline bool DebugRuleEvaluationStatusesHasBeenSet() const { return m_debugRuleEvaluationStatusesHasBeenSet; }
528 template<typename DebugRuleEvaluationStatusesT = Aws::Vector<DebugRuleEvaluationStatus>>
529 void SetDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) { m_debugRuleEvaluationStatusesHasBeenSet = true; m_debugRuleEvaluationStatuses = std::forward<DebugRuleEvaluationStatusesT>(value); }
530 template<typename DebugRuleEvaluationStatusesT = Aws::Vector<DebugRuleEvaluationStatus>>
531 TrainingJob& WithDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) { SetDebugRuleEvaluationStatuses(std::forward<DebugRuleEvaluationStatusesT>(value)); return *this;}
532 template<typename DebugRuleEvaluationStatusesT = DebugRuleEvaluationStatus>
533 TrainingJob& AddDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) { m_debugRuleEvaluationStatusesHasBeenSet = true; m_debugRuleEvaluationStatuses.emplace_back(std::forward<DebugRuleEvaluationStatusesT>(value)); return *this; }
535
537
538 inline const ProfilerConfig& GetProfilerConfig() const { return m_profilerConfig; }
539 inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
540 template<typename ProfilerConfigT = ProfilerConfig>
541 void SetProfilerConfig(ProfilerConfigT&& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = std::forward<ProfilerConfigT>(value); }
542 template<typename ProfilerConfigT = ProfilerConfig>
543 TrainingJob& WithProfilerConfig(ProfilerConfigT&& value) { SetProfilerConfig(std::forward<ProfilerConfigT>(value)); return *this;}
545
547
550 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
551 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
552 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
553 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
554 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
555 TrainingJob& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
556 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
557 TrainingJob& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
558 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
559 }
561
563
567 inline const RetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
568 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
569 template<typename RetryStrategyT = RetryStrategy>
570 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
571 template<typename RetryStrategyT = RetryStrategy>
572 TrainingJob& WithRetryStrategy(RetryStrategyT&& value) { SetRetryStrategy(std::forward<RetryStrategyT>(value)); return *this;}
574
576
583 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
584 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
585 template<typename TagsT = Aws::Vector<Tag>>
586 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
587 template<typename TagsT = Aws::Vector<Tag>>
588 TrainingJob& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
589 template<typename TagsT = Tag>
590 TrainingJob& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
592 private:
593
594 Aws::String m_trainingJobName;
595 bool m_trainingJobNameHasBeenSet = false;
596
597 Aws::String m_trainingJobArn;
598 bool m_trainingJobArnHasBeenSet = false;
599
600 Aws::String m_tuningJobArn;
601 bool m_tuningJobArnHasBeenSet = false;
602
603 Aws::String m_labelingJobArn;
604 bool m_labelingJobArnHasBeenSet = false;
605
606 Aws::String m_autoMLJobArn;
607 bool m_autoMLJobArnHasBeenSet = false;
608
609 ModelArtifacts m_modelArtifacts;
610 bool m_modelArtifactsHasBeenSet = false;
611
613 bool m_trainingJobStatusHasBeenSet = false;
614
615 SecondaryStatus m_secondaryStatus{SecondaryStatus::NOT_SET};
616 bool m_secondaryStatusHasBeenSet = false;
617
618 Aws::String m_failureReason;
619 bool m_failureReasonHasBeenSet = false;
620
621 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
622 bool m_hyperParametersHasBeenSet = false;
623
624 AlgorithmSpecification m_algorithmSpecification;
625 bool m_algorithmSpecificationHasBeenSet = false;
626
627 Aws::String m_roleArn;
628 bool m_roleArnHasBeenSet = false;
629
630 Aws::Vector<Channel> m_inputDataConfig;
631 bool m_inputDataConfigHasBeenSet = false;
632
633 OutputDataConfig m_outputDataConfig;
634 bool m_outputDataConfigHasBeenSet = false;
635
636 ResourceConfig m_resourceConfig;
637 bool m_resourceConfigHasBeenSet = false;
638
639 VpcConfig m_vpcConfig;
640 bool m_vpcConfigHasBeenSet = false;
641
642 StoppingCondition m_stoppingCondition;
643 bool m_stoppingConditionHasBeenSet = false;
644
645 Aws::Utils::DateTime m_creationTime{};
646 bool m_creationTimeHasBeenSet = false;
647
648 Aws::Utils::DateTime m_trainingStartTime{};
649 bool m_trainingStartTimeHasBeenSet = false;
650
651 Aws::Utils::DateTime m_trainingEndTime{};
652 bool m_trainingEndTimeHasBeenSet = false;
653
654 Aws::Utils::DateTime m_lastModifiedTime{};
655 bool m_lastModifiedTimeHasBeenSet = false;
656
657 Aws::Vector<SecondaryStatusTransition> m_secondaryStatusTransitions;
658 bool m_secondaryStatusTransitionsHasBeenSet = false;
659
660 Aws::Vector<MetricData> m_finalMetricDataList;
661 bool m_finalMetricDataListHasBeenSet = false;
662
663 bool m_enableNetworkIsolation{false};
664 bool m_enableNetworkIsolationHasBeenSet = false;
665
666 bool m_enableInterContainerTrafficEncryption{false};
667 bool m_enableInterContainerTrafficEncryptionHasBeenSet = false;
668
669 bool m_enableManagedSpotTraining{false};
670 bool m_enableManagedSpotTrainingHasBeenSet = false;
671
672 CheckpointConfig m_checkpointConfig;
673 bool m_checkpointConfigHasBeenSet = false;
674
675 int m_trainingTimeInSeconds{0};
676 bool m_trainingTimeInSecondsHasBeenSet = false;
677
678 int m_billableTimeInSeconds{0};
679 bool m_billableTimeInSecondsHasBeenSet = false;
680
681 DebugHookConfig m_debugHookConfig;
682 bool m_debugHookConfigHasBeenSet = false;
683
684 ExperimentConfig m_experimentConfig;
685 bool m_experimentConfigHasBeenSet = false;
686
687 Aws::Vector<DebugRuleConfiguration> m_debugRuleConfigurations;
688 bool m_debugRuleConfigurationsHasBeenSet = false;
689
690 TensorBoardOutputConfig m_tensorBoardOutputConfig;
691 bool m_tensorBoardOutputConfigHasBeenSet = false;
692
693 Aws::Vector<DebugRuleEvaluationStatus> m_debugRuleEvaluationStatuses;
694 bool m_debugRuleEvaluationStatusesHasBeenSet = false;
695
696 ProfilerConfig m_profilerConfig;
697 bool m_profilerConfigHasBeenSet = false;
698
700 bool m_environmentHasBeenSet = false;
701
702 RetryStrategy m_retryStrategy;
703 bool m_retryStrategyHasBeenSet = false;
704
705 Aws::Vector<Tag> m_tags;
706 bool m_tagsHasBeenSet = false;
707 };
708
709} // namespace Model
710} // namespace SageMaker
711} // namespace Aws
SecondaryStatus GetSecondaryStatus() const
const ProfilerConfig & GetProfilerConfig() const
TrainingJob & WithStoppingCondition(StoppingConditionT &&value)
TrainingJob & WithResourceConfig(ResourceConfigT &&value)
TrainingJob & AddSecondaryStatusTransitions(SecondaryStatusTransitionsT &&value)
TrainingJob & WithVpcConfig(VpcConfigT &&value)
void SetAutoMLJobArn(AutoMLJobArnT &&value)
void SetSecondaryStatusTransitions(SecondaryStatusTransitionsT &&value)
TrainingJob & AddDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT &&value)
const Aws::Vector< SecondaryStatusTransition > & GetSecondaryStatusTransitions() const
void SetTrainingJobName(TrainingJobNameT &&value)
Definition TrainingJob.h:70
void SetTuningJobArn(TuningJobArnT &&value)
Definition TrainingJob.h:95
TrainingJob & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
void SetVpcConfig(VpcConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
TrainingJob & WithTrainingJobName(TrainingJobNameT &&value)
Definition TrainingJob.h:72
const Aws::Vector< Channel > & GetInputDataConfig() const
void SetEnableManagedSpotTraining(bool value)
const VpcConfig & GetVpcConfig() const
bool SecondaryStatusTransitionsHasBeenSet() const
void SetRetryStrategy(RetryStrategyT &&value)
const Aws::Utils::DateTime & GetTrainingStartTime() const
TrainingJob & WithExperimentConfig(ExperimentConfigT &&value)
void SetExperimentConfig(ExperimentConfigT &&value)
TrainingJob & WithTrainingJobStatus(TrainingJobStatus value)
TrainingJob & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetTrainingJobStatus(TrainingJobStatus value)
TrainingJob & WithTuningJobArn(TuningJobArnT &&value)
Definition TrainingJob.h:97
void SetStoppingCondition(StoppingConditionT &&value)
TrainingJob & WithEnvironment(EnvironmentT &&value)
const TensorBoardOutputConfig & GetTensorBoardOutputConfig() const
TrainingJob & AddTags(TagsT &&value)
void SetProfilerConfig(ProfilerConfigT &&value)
TrainingJob & WithDebugRuleConfigurations(DebugRuleConfigurationsT &&value)
TrainingJob & AddDebugRuleConfigurations(DebugRuleConfigurationsT &&value)
void SetEnableNetworkIsolation(bool value)
TrainingJob & WithTensorBoardOutputConfig(TensorBoardOutputConfigT &&value)
TrainingJob & WithEnableInterContainerTrafficEncryption(bool value)
AWS_SAGEMAKER_API TrainingJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDebugRuleConfigurations(DebugRuleConfigurationsT &&value)
void SetTrainingEndTime(TrainingEndTimeT &&value)
bool EnableManagedSpotTrainingHasBeenSet() const
TrainingJob & WithProfilerConfig(ProfilerConfigT &&value)
const Aws::Vector< DebugRuleConfiguration > & GetDebugRuleConfigurations() const
TrainingJob & WithFailureReason(FailureReasonT &&value)
TrainingJob & WithAlgorithmSpecification(AlgorithmSpecificationT &&value)
TrainingJob & WithModelArtifacts(ModelArtifactsT &&value)
void SetDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT &&value)
void SetLabelingJobArn(LabelingJobArnT &&value)
TrainingJob & WithDebugHookConfig(DebugHookConfigT &&value)
const Aws::String & GetLabelingJobArn() const
TrainingJob & WithTags(TagsT &&value)
const AlgorithmSpecification & GetAlgorithmSpecification() const
void SetRoleArn(RoleArnT &&value)
TrainingJob & AddFinalMetricDataList(FinalMetricDataListT &&value)
TrainingJob & WithLabelingJobArn(LabelingJobArnT &&value)
void SetCheckpointConfig(CheckpointConfigT &&value)
TrainingJob & WithTrainingEndTime(TrainingEndTimeT &&value)
void SetEnvironment(EnvironmentT &&value)
const Aws::Utils::DateTime & GetTrainingEndTime() const
TrainingJob & WithCheckpointConfig(CheckpointConfigT &&value)
bool DebugRuleEvaluationStatusesHasBeenSet() const
const ExperimentConfig & GetExperimentConfig() const
AWS_SAGEMAKER_API TrainingJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
const CheckpointConfig & GetCheckpointConfig() const
void SetSecondaryStatus(SecondaryStatus value)
TrainingJobStatus GetTrainingJobStatus() const
void SetAlgorithmSpecification(AlgorithmSpecificationT &&value)
const ModelArtifacts & GetModelArtifacts() const
TrainingJob & AddInputDataConfig(InputDataConfigT &&value)
void SetFinalMetricDataList(FinalMetricDataListT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
const OutputDataConfig & GetOutputDataConfig() const
TrainingJob & WithFinalMetricDataList(FinalMetricDataListT &&value)
TrainingJob & WithCreationTime(CreationTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModelArtifacts(ModelArtifactsT &&value)
const Aws::String & GetTrainingJobName() const
Definition TrainingJob.h:67
void SetHyperParameters(HyperParametersT &&value)
TrainingJob & WithRoleArn(RoleArnT &&value)
void SetTrainingJobArn(TrainingJobArnT &&value)
Definition TrainingJob.h:82
bool GetEnableInterContainerTrafficEncryption() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetTrainingJobArn() const
Definition TrainingJob.h:79
void SetTensorBoardOutputConfig(TensorBoardOutputConfigT &&value)
TrainingJob & WithEnableManagedSpotTraining(bool value)
void SetOutputDataConfig(OutputDataConfigT &&value)
void SetCreationTime(CreationTimeT &&value)
const Aws::Vector< MetricData > & GetFinalMetricDataList() const
TrainingJob & WithHyperParameters(HyperParametersT &&value)
const StoppingCondition & GetStoppingCondition() const
const Aws::String & GetRoleArn() const
void SetFailureReason(FailureReasonT &&value)
TrainingJob & WithEnableNetworkIsolation(bool value)
const Aws::Vector< DebugRuleEvaluationStatus > & GetDebugRuleEvaluationStatuses() const
TrainingJob & WithSecondaryStatus(SecondaryStatus value)
AWS_SAGEMAKER_API TrainingJob()=default
const DebugHookConfig & GetDebugHookConfig() const
TrainingJob & WithTrainingStartTime(TrainingStartTimeT &&value)
TrainingJob & WithRetryStrategy(RetryStrategyT &&value)
TrainingJob & WithTrainingTimeInSeconds(int value)
bool EnableInterContainerTrafficEncryptionHasBeenSet() const
const RetryStrategy & GetRetryStrategy() const
const Aws::String & GetFailureReason() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetTuningJobArn() const
Definition TrainingJob.h:92
void SetLastModifiedTime(LastModifiedTimeT &&value)
TrainingJob & WithInputDataConfig(InputDataConfigT &&value)
const Aws::String & GetAutoMLJobArn() const
TrainingJob & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
void SetTrainingStartTime(TrainingStartTimeT &&value)
TrainingJob & WithOutputDataConfig(OutputDataConfigT &&value)
TrainingJob & WithTrainingJobArn(TrainingJobArnT &&value)
Definition TrainingJob.h:84
TrainingJob & WithDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT &&value)
void SetResourceConfig(ResourceConfigT &&value)
void SetEnableInterContainerTrafficEncryption(bool value)
void SetDebugHookConfig(DebugHookConfigT &&value)
void SetInputDataConfig(InputDataConfigT &&value)
const ResourceConfig & GetResourceConfig() const
TrainingJob & WithSecondaryStatusTransitions(SecondaryStatusTransitionsT &&value)
TrainingJob & WithAutoMLJobArn(AutoMLJobArnT &&value)
TrainingJob & WithBillableTimeInSeconds(int 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