AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrainingJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/AlgorithmSpecification.h>
13#include <aws/sagemaker/model/Channel.h>
14#include <aws/sagemaker/model/CheckpointConfig.h>
15#include <aws/sagemaker/model/DebugHookConfig.h>
16#include <aws/sagemaker/model/DebugRuleConfiguration.h>
17#include <aws/sagemaker/model/DebugRuleEvaluationStatus.h>
18#include <aws/sagemaker/model/ExperimentConfig.h>
19#include <aws/sagemaker/model/MetricData.h>
20#include <aws/sagemaker/model/ModelArtifacts.h>
21#include <aws/sagemaker/model/ModelPackageConfig.h>
22#include <aws/sagemaker/model/OutputDataConfig.h>
23#include <aws/sagemaker/model/ProfilerConfig.h>
24#include <aws/sagemaker/model/ResourceConfig.h>
25#include <aws/sagemaker/model/RetryStrategy.h>
26#include <aws/sagemaker/model/SecondaryStatus.h>
27#include <aws/sagemaker/model/SecondaryStatusTransition.h>
28#include <aws/sagemaker/model/StoppingCondition.h>
29#include <aws/sagemaker/model/Tag.h>
30#include <aws/sagemaker/model/TensorBoardOutputConfig.h>
31#include <aws/sagemaker/model/TrainingJobStatus.h>
32#include <aws/sagemaker/model/VpcConfig.h>
33
34#include <utility>
35
36namespace Aws {
37namespace Utils {
38namespace Json {
39class JsonValue;
40class JsonView;
41} // namespace Json
42} // namespace Utils
43namespace SageMaker {
44namespace Model {
45
52 public:
53 AWS_SAGEMAKER_API TrainingJob() = default;
54 AWS_SAGEMAKER_API TrainingJob(Aws::Utils::Json::JsonView jsonValue);
55 AWS_SAGEMAKER_API TrainingJob& operator=(Aws::Utils::Json::JsonView jsonValue);
56 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
57
59
62 inline const Aws::String& GetTrainingJobName() const { return m_trainingJobName; }
63 inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; }
64 template <typename TrainingJobNameT = Aws::String>
65 void SetTrainingJobName(TrainingJobNameT&& value) {
66 m_trainingJobNameHasBeenSet = true;
67 m_trainingJobName = std::forward<TrainingJobNameT>(value);
68 }
69 template <typename TrainingJobNameT = Aws::String>
70 TrainingJob& WithTrainingJobName(TrainingJobNameT&& value) {
71 SetTrainingJobName(std::forward<TrainingJobNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTrainingJobArn() const { return m_trainingJobArn; }
81 inline bool TrainingJobArnHasBeenSet() const { return m_trainingJobArnHasBeenSet; }
82 template <typename TrainingJobArnT = Aws::String>
83 void SetTrainingJobArn(TrainingJobArnT&& value) {
84 m_trainingJobArnHasBeenSet = true;
85 m_trainingJobArn = std::forward<TrainingJobArnT>(value);
86 }
87 template <typename TrainingJobArnT = Aws::String>
88 TrainingJob& WithTrainingJobArn(TrainingJobArnT&& value) {
89 SetTrainingJobArn(std::forward<TrainingJobArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetTuningJobArn() const { return m_tuningJobArn; }
100 inline bool TuningJobArnHasBeenSet() const { return m_tuningJobArnHasBeenSet; }
101 template <typename TuningJobArnT = Aws::String>
102 void SetTuningJobArn(TuningJobArnT&& value) {
103 m_tuningJobArnHasBeenSet = true;
104 m_tuningJobArn = std::forward<TuningJobArnT>(value);
105 }
106 template <typename TuningJobArnT = Aws::String>
107 TrainingJob& WithTuningJobArn(TuningJobArnT&& value) {
108 SetTuningJobArn(std::forward<TuningJobArnT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetLabelingJobArn() const { return m_labelingJobArn; }
118 inline bool LabelingJobArnHasBeenSet() const { return m_labelingJobArnHasBeenSet; }
119 template <typename LabelingJobArnT = Aws::String>
120 void SetLabelingJobArn(LabelingJobArnT&& value) {
121 m_labelingJobArnHasBeenSet = true;
122 m_labelingJobArn = std::forward<LabelingJobArnT>(value);
123 }
124 template <typename LabelingJobArnT = Aws::String>
125 TrainingJob& WithLabelingJobArn(LabelingJobArnT&& value) {
126 SetLabelingJobArn(std::forward<LabelingJobArnT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetAutoMLJobArn() const { return m_autoMLJobArn; }
136 inline bool AutoMLJobArnHasBeenSet() const { return m_autoMLJobArnHasBeenSet; }
137 template <typename AutoMLJobArnT = Aws::String>
138 void SetAutoMLJobArn(AutoMLJobArnT&& value) {
139 m_autoMLJobArnHasBeenSet = true;
140 m_autoMLJobArn = std::forward<AutoMLJobArnT>(value);
141 }
142 template <typename AutoMLJobArnT = Aws::String>
143 TrainingJob& WithAutoMLJobArn(AutoMLJobArnT&& value) {
144 SetAutoMLJobArn(std::forward<AutoMLJobArnT>(value));
145 return *this;
146 }
148
150
154 inline const ModelArtifacts& GetModelArtifacts() const { return m_modelArtifacts; }
155 inline bool ModelArtifactsHasBeenSet() const { return m_modelArtifactsHasBeenSet; }
156 template <typename ModelArtifactsT = ModelArtifacts>
157 void SetModelArtifacts(ModelArtifactsT&& value) {
158 m_modelArtifactsHasBeenSet = true;
159 m_modelArtifacts = std::forward<ModelArtifactsT>(value);
160 }
161 template <typename ModelArtifactsT = ModelArtifacts>
162 TrainingJob& WithModelArtifacts(ModelArtifactsT&& value) {
163 SetModelArtifacts(std::forward<ModelArtifactsT>(value));
164 return *this;
165 }
167
169
180 inline TrainingJobStatus GetTrainingJobStatus() const { return m_trainingJobStatus; }
181 inline bool TrainingJobStatusHasBeenSet() const { return m_trainingJobStatusHasBeenSet; }
183 m_trainingJobStatusHasBeenSet = true;
184 m_trainingJobStatus = value;
185 }
188 return *this;
189 }
191
193
221 inline SecondaryStatus GetSecondaryStatus() const { return m_secondaryStatus; }
222 inline bool SecondaryStatusHasBeenSet() const { return m_secondaryStatusHasBeenSet; }
224 m_secondaryStatusHasBeenSet = true;
225 m_secondaryStatus = value;
226 }
228 SetSecondaryStatus(value);
229 return *this;
230 }
232
234
237 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
238 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
239 template <typename FailureReasonT = Aws::String>
240 void SetFailureReason(FailureReasonT&& value) {
241 m_failureReasonHasBeenSet = true;
242 m_failureReason = std::forward<FailureReasonT>(value);
243 }
244 template <typename FailureReasonT = Aws::String>
245 TrainingJob& WithFailureReason(FailureReasonT&& value) {
246 SetFailureReason(std::forward<FailureReasonT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
256 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
257 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
258 void SetHyperParameters(HyperParametersT&& value) {
259 m_hyperParametersHasBeenSet = true;
260 m_hyperParameters = std::forward<HyperParametersT>(value);
261 }
262 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
263 TrainingJob& WithHyperParameters(HyperParametersT&& value) {
264 SetHyperParameters(std::forward<HyperParametersT>(value));
265 return *this;
266 }
267 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
268 TrainingJob& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
269 m_hyperParametersHasBeenSet = true;
270 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
271 return *this;
272 }
274
276
280 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
281 inline bool AlgorithmSpecificationHasBeenSet() const { return m_algorithmSpecificationHasBeenSet; }
282 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
283 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) {
284 m_algorithmSpecificationHasBeenSet = true;
285 m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value);
286 }
287 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
288 TrainingJob& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) {
289 SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value));
290 return *this;
291 }
293
295
299 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
300 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
301 template <typename RoleArnT = Aws::String>
302 void SetRoleArn(RoleArnT&& value) {
303 m_roleArnHasBeenSet = true;
304 m_roleArn = std::forward<RoleArnT>(value);
305 }
306 template <typename RoleArnT = Aws::String>
307 TrainingJob& WithRoleArn(RoleArnT&& value) {
308 SetRoleArn(std::forward<RoleArnT>(value));
309 return *this;
310 }
312
314
319 inline const Aws::Vector<Channel>& GetInputDataConfig() const { return m_inputDataConfig; }
320 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
321 template <typename InputDataConfigT = Aws::Vector<Channel>>
322 void SetInputDataConfig(InputDataConfigT&& value) {
323 m_inputDataConfigHasBeenSet = true;
324 m_inputDataConfig = std::forward<InputDataConfigT>(value);
325 }
326 template <typename InputDataConfigT = Aws::Vector<Channel>>
327 TrainingJob& WithInputDataConfig(InputDataConfigT&& value) {
328 SetInputDataConfig(std::forward<InputDataConfigT>(value));
329 return *this;
330 }
331 template <typename InputDataConfigT = Channel>
332 TrainingJob& AddInputDataConfig(InputDataConfigT&& value) {
333 m_inputDataConfigHasBeenSet = true;
334 m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value));
335 return *this;
336 }
338
340
344 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
345 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
346 template <typename OutputDataConfigT = OutputDataConfig>
347 void SetOutputDataConfig(OutputDataConfigT&& value) {
348 m_outputDataConfigHasBeenSet = true;
349 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
350 }
351 template <typename OutputDataConfigT = OutputDataConfig>
352 TrainingJob& WithOutputDataConfig(OutputDataConfigT&& value) {
353 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
354 return *this;
355 }
357
359
363 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
364 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
365 template <typename ResourceConfigT = ResourceConfig>
366 void SetResourceConfig(ResourceConfigT&& value) {
367 m_resourceConfigHasBeenSet = true;
368 m_resourceConfig = std::forward<ResourceConfigT>(value);
369 }
370 template <typename ResourceConfigT = ResourceConfig>
371 TrainingJob& WithResourceConfig(ResourceConfigT&& value) {
372 SetResourceConfig(std::forward<ResourceConfigT>(value));
373 return *this;
374 }
376
378
386 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
387 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
388 template <typename VpcConfigT = VpcConfig>
389 void SetVpcConfig(VpcConfigT&& value) {
390 m_vpcConfigHasBeenSet = true;
391 m_vpcConfig = std::forward<VpcConfigT>(value);
392 }
393 template <typename VpcConfigT = VpcConfig>
394 TrainingJob& WithVpcConfig(VpcConfigT&& value) {
395 SetVpcConfig(std::forward<VpcConfigT>(value));
396 return *this;
397 }
399
401
410 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
411 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
412 template <typename StoppingConditionT = StoppingCondition>
413 void SetStoppingCondition(StoppingConditionT&& value) {
414 m_stoppingConditionHasBeenSet = true;
415 m_stoppingCondition = std::forward<StoppingConditionT>(value);
416 }
417 template <typename StoppingConditionT = StoppingCondition>
418 TrainingJob& WithStoppingCondition(StoppingConditionT&& value) {
419 SetStoppingCondition(std::forward<StoppingConditionT>(value));
420 return *this;
421 }
423
425
428 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
429 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
430 template <typename CreationTimeT = Aws::Utils::DateTime>
431 void SetCreationTime(CreationTimeT&& value) {
432 m_creationTimeHasBeenSet = true;
433 m_creationTime = std::forward<CreationTimeT>(value);
434 }
435 template <typename CreationTimeT = Aws::Utils::DateTime>
436 TrainingJob& WithCreationTime(CreationTimeT&& value) {
437 SetCreationTime(std::forward<CreationTimeT>(value));
438 return *this;
439 }
441
443
450 inline const Aws::Utils::DateTime& GetTrainingStartTime() const { return m_trainingStartTime; }
451 inline bool TrainingStartTimeHasBeenSet() const { return m_trainingStartTimeHasBeenSet; }
452 template <typename TrainingStartTimeT = Aws::Utils::DateTime>
453 void SetTrainingStartTime(TrainingStartTimeT&& value) {
454 m_trainingStartTimeHasBeenSet = true;
455 m_trainingStartTime = std::forward<TrainingStartTimeT>(value);
456 }
457 template <typename TrainingStartTimeT = Aws::Utils::DateTime>
458 TrainingJob& WithTrainingStartTime(TrainingStartTimeT&& value) {
459 SetTrainingStartTime(std::forward<TrainingStartTimeT>(value));
460 return *this;
461 }
463
465
472 inline const Aws::Utils::DateTime& GetTrainingEndTime() const { return m_trainingEndTime; }
473 inline bool TrainingEndTimeHasBeenSet() const { return m_trainingEndTimeHasBeenSet; }
474 template <typename TrainingEndTimeT = Aws::Utils::DateTime>
475 void SetTrainingEndTime(TrainingEndTimeT&& value) {
476 m_trainingEndTimeHasBeenSet = true;
477 m_trainingEndTime = std::forward<TrainingEndTimeT>(value);
478 }
479 template <typename TrainingEndTimeT = Aws::Utils::DateTime>
480 TrainingJob& WithTrainingEndTime(TrainingEndTimeT&& value) {
481 SetTrainingEndTime(std::forward<TrainingEndTimeT>(value));
482 return *this;
483 }
485
487
491 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
492 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
493 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
494 void SetLastModifiedTime(LastModifiedTimeT&& value) {
495 m_lastModifiedTimeHasBeenSet = true;
496 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
497 }
498 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
499 TrainingJob& WithLastModifiedTime(LastModifiedTimeT&& value) {
500 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
501 return *this;
502 }
504
506
510 inline const Aws::Vector<SecondaryStatusTransition>& GetSecondaryStatusTransitions() const { return m_secondaryStatusTransitions; }
511 inline bool SecondaryStatusTransitionsHasBeenSet() const { return m_secondaryStatusTransitionsHasBeenSet; }
512 template <typename SecondaryStatusTransitionsT = Aws::Vector<SecondaryStatusTransition>>
513 void SetSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) {
514 m_secondaryStatusTransitionsHasBeenSet = true;
515 m_secondaryStatusTransitions = std::forward<SecondaryStatusTransitionsT>(value);
516 }
517 template <typename SecondaryStatusTransitionsT = Aws::Vector<SecondaryStatusTransition>>
518 TrainingJob& WithSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) {
519 SetSecondaryStatusTransitions(std::forward<SecondaryStatusTransitionsT>(value));
520 return *this;
521 }
522 template <typename SecondaryStatusTransitionsT = SecondaryStatusTransition>
523 TrainingJob& AddSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) {
524 m_secondaryStatusTransitionsHasBeenSet = true;
525 m_secondaryStatusTransitions.emplace_back(std::forward<SecondaryStatusTransitionsT>(value));
526 return *this;
527 }
529
531
535 inline const Aws::Vector<MetricData>& GetFinalMetricDataList() const { return m_finalMetricDataList; }
536 inline bool FinalMetricDataListHasBeenSet() const { return m_finalMetricDataListHasBeenSet; }
537 template <typename FinalMetricDataListT = Aws::Vector<MetricData>>
538 void SetFinalMetricDataList(FinalMetricDataListT&& value) {
539 m_finalMetricDataListHasBeenSet = true;
540 m_finalMetricDataList = std::forward<FinalMetricDataListT>(value);
541 }
542 template <typename FinalMetricDataListT = Aws::Vector<MetricData>>
543 TrainingJob& WithFinalMetricDataList(FinalMetricDataListT&& value) {
544 SetFinalMetricDataList(std::forward<FinalMetricDataListT>(value));
545 return *this;
546 }
547 template <typename FinalMetricDataListT = MetricData>
548 TrainingJob& AddFinalMetricDataList(FinalMetricDataListT&& value) {
549 m_finalMetricDataListHasBeenSet = true;
550 m_finalMetricDataList.emplace_back(std::forward<FinalMetricDataListT>(value));
551 return *this;
552 }
554
556
561 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
562 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
563 inline void SetEnableNetworkIsolation(bool value) {
564 m_enableNetworkIsolationHasBeenSet = true;
565 m_enableNetworkIsolation = value;
566 }
569 return *this;
570 }
572
574
581 inline bool GetEnableInterContainerTrafficEncryption() const { return m_enableInterContainerTrafficEncryption; }
582 inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; }
584 m_enableInterContainerTrafficEncryptionHasBeenSet = true;
585 m_enableInterContainerTrafficEncryption = value;
586 }
589 return *this;
590 }
592
594
600 inline bool GetEnableManagedSpotTraining() const { return m_enableManagedSpotTraining; }
601 inline bool EnableManagedSpotTrainingHasBeenSet() const { return m_enableManagedSpotTrainingHasBeenSet; }
602 inline void SetEnableManagedSpotTraining(bool value) {
603 m_enableManagedSpotTrainingHasBeenSet = true;
604 m_enableManagedSpotTraining = value;
605 }
608 return *this;
609 }
611
613
614 inline const CheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
615 inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; }
616 template <typename CheckpointConfigT = CheckpointConfig>
617 void SetCheckpointConfig(CheckpointConfigT&& value) {
618 m_checkpointConfigHasBeenSet = true;
619 m_checkpointConfig = std::forward<CheckpointConfigT>(value);
620 }
621 template <typename CheckpointConfigT = CheckpointConfig>
622 TrainingJob& WithCheckpointConfig(CheckpointConfigT&& value) {
623 SetCheckpointConfig(std::forward<CheckpointConfigT>(value));
624 return *this;
625 }
627
629
632 inline int GetTrainingTimeInSeconds() const { return m_trainingTimeInSeconds; }
633 inline bool TrainingTimeInSecondsHasBeenSet() const { return m_trainingTimeInSecondsHasBeenSet; }
634 inline void SetTrainingTimeInSeconds(int value) {
635 m_trainingTimeInSecondsHasBeenSet = true;
636 m_trainingTimeInSeconds = value;
637 }
640 return *this;
641 }
643
645
648 inline int GetBillableTimeInSeconds() const { return m_billableTimeInSeconds; }
649 inline bool BillableTimeInSecondsHasBeenSet() const { return m_billableTimeInSecondsHasBeenSet; }
650 inline void SetBillableTimeInSeconds(int value) {
651 m_billableTimeInSecondsHasBeenSet = true;
652 m_billableTimeInSeconds = value;
653 }
656 return *this;
657 }
659
661
662 inline const DebugHookConfig& GetDebugHookConfig() const { return m_debugHookConfig; }
663 inline bool DebugHookConfigHasBeenSet() const { return m_debugHookConfigHasBeenSet; }
664 template <typename DebugHookConfigT = DebugHookConfig>
665 void SetDebugHookConfig(DebugHookConfigT&& value) {
666 m_debugHookConfigHasBeenSet = true;
667 m_debugHookConfig = std::forward<DebugHookConfigT>(value);
668 }
669 template <typename DebugHookConfigT = DebugHookConfig>
670 TrainingJob& WithDebugHookConfig(DebugHookConfigT&& value) {
671 SetDebugHookConfig(std::forward<DebugHookConfigT>(value));
672 return *this;
673 }
675
677
678 inline const ExperimentConfig& GetExperimentConfig() const { return m_experimentConfig; }
679 inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; }
680 template <typename ExperimentConfigT = ExperimentConfig>
681 void SetExperimentConfig(ExperimentConfigT&& value) {
682 m_experimentConfigHasBeenSet = true;
683 m_experimentConfig = std::forward<ExperimentConfigT>(value);
684 }
685 template <typename ExperimentConfigT = ExperimentConfig>
686 TrainingJob& WithExperimentConfig(ExperimentConfigT&& value) {
687 SetExperimentConfig(std::forward<ExperimentConfigT>(value));
688 return *this;
689 }
691
693
696 inline const Aws::Vector<DebugRuleConfiguration>& GetDebugRuleConfigurations() const { return m_debugRuleConfigurations; }
697 inline bool DebugRuleConfigurationsHasBeenSet() const { return m_debugRuleConfigurationsHasBeenSet; }
698 template <typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
699 void SetDebugRuleConfigurations(DebugRuleConfigurationsT&& value) {
700 m_debugRuleConfigurationsHasBeenSet = true;
701 m_debugRuleConfigurations = std::forward<DebugRuleConfigurationsT>(value);
702 }
703 template <typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
704 TrainingJob& WithDebugRuleConfigurations(DebugRuleConfigurationsT&& value) {
705 SetDebugRuleConfigurations(std::forward<DebugRuleConfigurationsT>(value));
706 return *this;
707 }
708 template <typename DebugRuleConfigurationsT = DebugRuleConfiguration>
709 TrainingJob& AddDebugRuleConfigurations(DebugRuleConfigurationsT&& value) {
710 m_debugRuleConfigurationsHasBeenSet = true;
711 m_debugRuleConfigurations.emplace_back(std::forward<DebugRuleConfigurationsT>(value));
712 return *this;
713 }
715
717
718 inline const TensorBoardOutputConfig& GetTensorBoardOutputConfig() const { return m_tensorBoardOutputConfig; }
719 inline bool TensorBoardOutputConfigHasBeenSet() const { return m_tensorBoardOutputConfigHasBeenSet; }
720 template <typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
721 void SetTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) {
722 m_tensorBoardOutputConfigHasBeenSet = true;
723 m_tensorBoardOutputConfig = std::forward<TensorBoardOutputConfigT>(value);
724 }
725 template <typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
726 TrainingJob& WithTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) {
727 SetTensorBoardOutputConfig(std::forward<TensorBoardOutputConfigT>(value));
728 return *this;
729 }
731
733
737 inline const Aws::Vector<DebugRuleEvaluationStatus>& GetDebugRuleEvaluationStatuses() const { return m_debugRuleEvaluationStatuses; }
738 inline bool DebugRuleEvaluationStatusesHasBeenSet() const { return m_debugRuleEvaluationStatusesHasBeenSet; }
739 template <typename DebugRuleEvaluationStatusesT = Aws::Vector<DebugRuleEvaluationStatus>>
740 void SetDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) {
741 m_debugRuleEvaluationStatusesHasBeenSet = true;
742 m_debugRuleEvaluationStatuses = std::forward<DebugRuleEvaluationStatusesT>(value);
743 }
744 template <typename DebugRuleEvaluationStatusesT = Aws::Vector<DebugRuleEvaluationStatus>>
745 TrainingJob& WithDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) {
746 SetDebugRuleEvaluationStatuses(std::forward<DebugRuleEvaluationStatusesT>(value));
747 return *this;
748 }
749 template <typename DebugRuleEvaluationStatusesT = DebugRuleEvaluationStatus>
750 TrainingJob& AddDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) {
751 m_debugRuleEvaluationStatusesHasBeenSet = true;
752 m_debugRuleEvaluationStatuses.emplace_back(std::forward<DebugRuleEvaluationStatusesT>(value));
753 return *this;
754 }
756
758
762 inline const Aws::String& GetOutputModelPackageArn() const { return m_outputModelPackageArn; }
763 inline bool OutputModelPackageArnHasBeenSet() const { return m_outputModelPackageArnHasBeenSet; }
764 template <typename OutputModelPackageArnT = Aws::String>
765 void SetOutputModelPackageArn(OutputModelPackageArnT&& value) {
766 m_outputModelPackageArnHasBeenSet = true;
767 m_outputModelPackageArn = std::forward<OutputModelPackageArnT>(value);
768 }
769 template <typename OutputModelPackageArnT = Aws::String>
770 TrainingJob& WithOutputModelPackageArn(OutputModelPackageArnT&& value) {
771 SetOutputModelPackageArn(std::forward<OutputModelPackageArnT>(value));
772 return *this;
773 }
775
777
780 inline const ModelPackageConfig& GetModelPackageConfig() const { return m_modelPackageConfig; }
781 inline bool ModelPackageConfigHasBeenSet() const { return m_modelPackageConfigHasBeenSet; }
782 template <typename ModelPackageConfigT = ModelPackageConfig>
783 void SetModelPackageConfig(ModelPackageConfigT&& value) {
784 m_modelPackageConfigHasBeenSet = true;
785 m_modelPackageConfig = std::forward<ModelPackageConfigT>(value);
786 }
787 template <typename ModelPackageConfigT = ModelPackageConfig>
788 TrainingJob& WithModelPackageConfig(ModelPackageConfigT&& value) {
789 SetModelPackageConfig(std::forward<ModelPackageConfigT>(value));
790 return *this;
791 }
793
795
796 inline const ProfilerConfig& GetProfilerConfig() const { return m_profilerConfig; }
797 inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
798 template <typename ProfilerConfigT = ProfilerConfig>
799 void SetProfilerConfig(ProfilerConfigT&& value) {
800 m_profilerConfigHasBeenSet = true;
801 m_profilerConfig = std::forward<ProfilerConfigT>(value);
802 }
803 template <typename ProfilerConfigT = ProfilerConfig>
804 TrainingJob& WithProfilerConfig(ProfilerConfigT&& value) {
805 SetProfilerConfig(std::forward<ProfilerConfigT>(value));
806 return *this;
807 }
809
811
814 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
815 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
816 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
817 void SetEnvironment(EnvironmentT&& value) {
818 m_environmentHasBeenSet = true;
819 m_environment = std::forward<EnvironmentT>(value);
820 }
821 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
822 TrainingJob& WithEnvironment(EnvironmentT&& value) {
823 SetEnvironment(std::forward<EnvironmentT>(value));
824 return *this;
825 }
826 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
827 TrainingJob& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
828 m_environmentHasBeenSet = true;
829 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
830 return *this;
831 }
833
835
839 inline const RetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
840 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
841 template <typename RetryStrategyT = RetryStrategy>
842 void SetRetryStrategy(RetryStrategyT&& value) {
843 m_retryStrategyHasBeenSet = true;
844 m_retryStrategy = std::forward<RetryStrategyT>(value);
845 }
846 template <typename RetryStrategyT = RetryStrategy>
847 TrainingJob& WithRetryStrategy(RetryStrategyT&& value) {
848 SetRetryStrategy(std::forward<RetryStrategyT>(value));
849 return *this;
850 }
852
854
861 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
862 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
863 template <typename TagsT = Aws::Vector<Tag>>
864 void SetTags(TagsT&& value) {
865 m_tagsHasBeenSet = true;
866 m_tags = std::forward<TagsT>(value);
867 }
868 template <typename TagsT = Aws::Vector<Tag>>
869 TrainingJob& WithTags(TagsT&& value) {
870 SetTags(std::forward<TagsT>(value));
871 return *this;
872 }
873 template <typename TagsT = Tag>
874 TrainingJob& AddTags(TagsT&& value) {
875 m_tagsHasBeenSet = true;
876 m_tags.emplace_back(std::forward<TagsT>(value));
877 return *this;
878 }
880 private:
881 Aws::String m_trainingJobName;
882
883 Aws::String m_trainingJobArn;
884
885 Aws::String m_tuningJobArn;
886
887 Aws::String m_labelingJobArn;
888
889 Aws::String m_autoMLJobArn;
890
891 ModelArtifacts m_modelArtifacts;
892
894
895 SecondaryStatus m_secondaryStatus{SecondaryStatus::NOT_SET};
896
897 Aws::String m_failureReason;
898
899 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
900
901 AlgorithmSpecification m_algorithmSpecification;
902
903 Aws::String m_roleArn;
904
905 Aws::Vector<Channel> m_inputDataConfig;
906
907 OutputDataConfig m_outputDataConfig;
908
909 ResourceConfig m_resourceConfig;
910
911 VpcConfig m_vpcConfig;
912
913 StoppingCondition m_stoppingCondition;
914
915 Aws::Utils::DateTime m_creationTime{};
916
917 Aws::Utils::DateTime m_trainingStartTime{};
918
919 Aws::Utils::DateTime m_trainingEndTime{};
920
921 Aws::Utils::DateTime m_lastModifiedTime{};
922
923 Aws::Vector<SecondaryStatusTransition> m_secondaryStatusTransitions;
924
925 Aws::Vector<MetricData> m_finalMetricDataList;
926
927 bool m_enableNetworkIsolation{false};
928
929 bool m_enableInterContainerTrafficEncryption{false};
930
931 bool m_enableManagedSpotTraining{false};
932
933 CheckpointConfig m_checkpointConfig;
934
935 int m_trainingTimeInSeconds{0};
936
937 int m_billableTimeInSeconds{0};
938
939 DebugHookConfig m_debugHookConfig;
940
941 ExperimentConfig m_experimentConfig;
942
943 Aws::Vector<DebugRuleConfiguration> m_debugRuleConfigurations;
944
945 TensorBoardOutputConfig m_tensorBoardOutputConfig;
946
947 Aws::Vector<DebugRuleEvaluationStatus> m_debugRuleEvaluationStatuses;
948
949 Aws::String m_outputModelPackageArn;
950
951 ModelPackageConfig m_modelPackageConfig;
952
953 ProfilerConfig m_profilerConfig;
954
956
957 RetryStrategy m_retryStrategy;
958
959 Aws::Vector<Tag> m_tags;
960 bool m_trainingJobNameHasBeenSet = false;
961 bool m_trainingJobArnHasBeenSet = false;
962 bool m_tuningJobArnHasBeenSet = false;
963 bool m_labelingJobArnHasBeenSet = false;
964 bool m_autoMLJobArnHasBeenSet = false;
965 bool m_modelArtifactsHasBeenSet = false;
966 bool m_trainingJobStatusHasBeenSet = false;
967 bool m_secondaryStatusHasBeenSet = false;
968 bool m_failureReasonHasBeenSet = false;
969 bool m_hyperParametersHasBeenSet = false;
970 bool m_algorithmSpecificationHasBeenSet = false;
971 bool m_roleArnHasBeenSet = false;
972 bool m_inputDataConfigHasBeenSet = false;
973 bool m_outputDataConfigHasBeenSet = false;
974 bool m_resourceConfigHasBeenSet = false;
975 bool m_vpcConfigHasBeenSet = false;
976 bool m_stoppingConditionHasBeenSet = false;
977 bool m_creationTimeHasBeenSet = false;
978 bool m_trainingStartTimeHasBeenSet = false;
979 bool m_trainingEndTimeHasBeenSet = false;
980 bool m_lastModifiedTimeHasBeenSet = false;
981 bool m_secondaryStatusTransitionsHasBeenSet = false;
982 bool m_finalMetricDataListHasBeenSet = false;
983 bool m_enableNetworkIsolationHasBeenSet = false;
984 bool m_enableInterContainerTrafficEncryptionHasBeenSet = false;
985 bool m_enableManagedSpotTrainingHasBeenSet = false;
986 bool m_checkpointConfigHasBeenSet = false;
987 bool m_trainingTimeInSecondsHasBeenSet = false;
988 bool m_billableTimeInSecondsHasBeenSet = false;
989 bool m_debugHookConfigHasBeenSet = false;
990 bool m_experimentConfigHasBeenSet = false;
991 bool m_debugRuleConfigurationsHasBeenSet = false;
992 bool m_tensorBoardOutputConfigHasBeenSet = false;
993 bool m_debugRuleEvaluationStatusesHasBeenSet = false;
994 bool m_outputModelPackageArnHasBeenSet = false;
995 bool m_modelPackageConfigHasBeenSet = false;
996 bool m_profilerConfigHasBeenSet = false;
997 bool m_environmentHasBeenSet = false;
998 bool m_retryStrategyHasBeenSet = false;
999 bool m_tagsHasBeenSet = false;
1000};
1001
1002} // namespace Model
1003} // namespace SageMaker
1004} // 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:65
void SetTuningJobArn(TuningJobArnT &&value)
TrainingJob & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
void SetVpcConfig(VpcConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
TrainingJob & WithTrainingJobName(TrainingJobNameT &&value)
Definition TrainingJob.h:70
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)
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)
TrainingJob & WithOutputModelPackageArn(OutputModelPackageArnT &&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)
TrainingJob & WithModelPackageConfig(ModelPackageConfigT &&value)
void SetEnvironment(EnvironmentT &&value)
const Aws::Utils::DateTime & GetTrainingEndTime() const
TrainingJob & WithCheckpointConfig(CheckpointConfigT &&value)
bool DebugRuleEvaluationStatusesHasBeenSet() const
const Aws::String & GetOutputModelPackageArn() 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)
void SetModelPackageConfig(ModelPackageConfigT &&value)
const Aws::String & GetTrainingJobName() const
Definition TrainingJob.h:62
void SetHyperParameters(HyperParametersT &&value)
TrainingJob & WithRoleArn(RoleArnT &&value)
void SetTrainingJobArn(TrainingJobArnT &&value)
Definition TrainingJob.h:83
bool GetEnableInterContainerTrafficEncryption() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetTrainingJobArn() const
Definition TrainingJob.h:80
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:99
void SetLastModifiedTime(LastModifiedTimeT &&value)
TrainingJob & WithInputDataConfig(InputDataConfigT &&value)
const Aws::String & GetAutoMLJobArn() const
void SetOutputModelPackageArn(OutputModelPackageArnT &&value)
TrainingJob & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
void SetTrainingStartTime(TrainingStartTimeT &&value)
TrainingJob & WithOutputDataConfig(OutputDataConfigT &&value)
TrainingJob & WithTrainingJobArn(TrainingJobArnT &&value)
Definition TrainingJob.h:88
TrainingJob & WithDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT &&value)
void SetResourceConfig(ResourceConfigT &&value)
void SetEnableInterContainerTrafficEncryption(bool value)
const ModelPackageConfig & GetModelPackageConfig() const
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