AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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#include <aws/sagemaker/model/WarmPoolStatus.h>
34
35#include <utility>
36
37namespace Aws {
38namespace Utils {
39namespace Json {
40class JsonValue;
41class JsonView;
42} // namespace Json
43} // namespace Utils
44namespace SageMaker {
45namespace Model {
46
53 public:
54 AWS_SAGEMAKER_API TrainingJob() = default;
55 AWS_SAGEMAKER_API TrainingJob(Aws::Utils::Json::JsonView jsonValue);
56 AWS_SAGEMAKER_API TrainingJob& operator=(Aws::Utils::Json::JsonView jsonValue);
57 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
58
60
63 inline const Aws::String& GetTrainingJobName() const { return m_trainingJobName; }
64 inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; }
65 template <typename TrainingJobNameT = Aws::String>
66 void SetTrainingJobName(TrainingJobNameT&& value) {
67 m_trainingJobNameHasBeenSet = true;
68 m_trainingJobName = std::forward<TrainingJobNameT>(value);
69 }
70 template <typename TrainingJobNameT = Aws::String>
71 TrainingJob& WithTrainingJobName(TrainingJobNameT&& value) {
72 SetTrainingJobName(std::forward<TrainingJobNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTrainingJobArn() const { return m_trainingJobArn; }
82 inline bool TrainingJobArnHasBeenSet() const { return m_trainingJobArnHasBeenSet; }
83 template <typename TrainingJobArnT = Aws::String>
84 void SetTrainingJobArn(TrainingJobArnT&& value) {
85 m_trainingJobArnHasBeenSet = true;
86 m_trainingJobArn = std::forward<TrainingJobArnT>(value);
87 }
88 template <typename TrainingJobArnT = Aws::String>
89 TrainingJob& WithTrainingJobArn(TrainingJobArnT&& value) {
90 SetTrainingJobArn(std::forward<TrainingJobArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetTuningJobArn() const { return m_tuningJobArn; }
101 inline bool TuningJobArnHasBeenSet() const { return m_tuningJobArnHasBeenSet; }
102 template <typename TuningJobArnT = Aws::String>
103 void SetTuningJobArn(TuningJobArnT&& value) {
104 m_tuningJobArnHasBeenSet = true;
105 m_tuningJobArn = std::forward<TuningJobArnT>(value);
106 }
107 template <typename TuningJobArnT = Aws::String>
108 TrainingJob& WithTuningJobArn(TuningJobArnT&& value) {
109 SetTuningJobArn(std::forward<TuningJobArnT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetLabelingJobArn() const { return m_labelingJobArn; }
119 inline bool LabelingJobArnHasBeenSet() const { return m_labelingJobArnHasBeenSet; }
120 template <typename LabelingJobArnT = Aws::String>
121 void SetLabelingJobArn(LabelingJobArnT&& value) {
122 m_labelingJobArnHasBeenSet = true;
123 m_labelingJobArn = std::forward<LabelingJobArnT>(value);
124 }
125 template <typename LabelingJobArnT = Aws::String>
126 TrainingJob& WithLabelingJobArn(LabelingJobArnT&& value) {
127 SetLabelingJobArn(std::forward<LabelingJobArnT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetAutoMLJobArn() const { return m_autoMLJobArn; }
137 inline bool AutoMLJobArnHasBeenSet() const { return m_autoMLJobArnHasBeenSet; }
138 template <typename AutoMLJobArnT = Aws::String>
139 void SetAutoMLJobArn(AutoMLJobArnT&& value) {
140 m_autoMLJobArnHasBeenSet = true;
141 m_autoMLJobArn = std::forward<AutoMLJobArnT>(value);
142 }
143 template <typename AutoMLJobArnT = Aws::String>
144 TrainingJob& WithAutoMLJobArn(AutoMLJobArnT&& value) {
145 SetAutoMLJobArn(std::forward<AutoMLJobArnT>(value));
146 return *this;
147 }
149
151
155 inline const ModelArtifacts& GetModelArtifacts() const { return m_modelArtifacts; }
156 inline bool ModelArtifactsHasBeenSet() const { return m_modelArtifactsHasBeenSet; }
157 template <typename ModelArtifactsT = ModelArtifacts>
158 void SetModelArtifacts(ModelArtifactsT&& value) {
159 m_modelArtifactsHasBeenSet = true;
160 m_modelArtifacts = std::forward<ModelArtifactsT>(value);
161 }
162 template <typename ModelArtifactsT = ModelArtifacts>
163 TrainingJob& WithModelArtifacts(ModelArtifactsT&& value) {
164 SetModelArtifacts(std::forward<ModelArtifactsT>(value));
165 return *this;
166 }
168
170
181 inline TrainingJobStatus GetTrainingJobStatus() const { return m_trainingJobStatus; }
182 inline bool TrainingJobStatusHasBeenSet() const { return m_trainingJobStatusHasBeenSet; }
184 m_trainingJobStatusHasBeenSet = true;
185 m_trainingJobStatus = value;
186 }
189 return *this;
190 }
192
194
222 inline SecondaryStatus GetSecondaryStatus() const { return m_secondaryStatus; }
223 inline bool SecondaryStatusHasBeenSet() const { return m_secondaryStatusHasBeenSet; }
225 m_secondaryStatusHasBeenSet = true;
226 m_secondaryStatus = value;
227 }
229 SetSecondaryStatus(value);
230 return *this;
231 }
233
235
238 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
239 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
240 template <typename FailureReasonT = Aws::String>
241 void SetFailureReason(FailureReasonT&& value) {
242 m_failureReasonHasBeenSet = true;
243 m_failureReason = std::forward<FailureReasonT>(value);
244 }
245 template <typename FailureReasonT = Aws::String>
246 TrainingJob& WithFailureReason(FailureReasonT&& value) {
247 SetFailureReason(std::forward<FailureReasonT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
257 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
258 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
259 void SetHyperParameters(HyperParametersT&& value) {
260 m_hyperParametersHasBeenSet = true;
261 m_hyperParameters = std::forward<HyperParametersT>(value);
262 }
263 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
264 TrainingJob& WithHyperParameters(HyperParametersT&& value) {
265 SetHyperParameters(std::forward<HyperParametersT>(value));
266 return *this;
267 }
268 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
269 TrainingJob& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
270 m_hyperParametersHasBeenSet = true;
271 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
272 return *this;
273 }
275
277
281 inline const AlgorithmSpecification& GetAlgorithmSpecification() const { return m_algorithmSpecification; }
282 inline bool AlgorithmSpecificationHasBeenSet() const { return m_algorithmSpecificationHasBeenSet; }
283 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
284 void SetAlgorithmSpecification(AlgorithmSpecificationT&& value) {
285 m_algorithmSpecificationHasBeenSet = true;
286 m_algorithmSpecification = std::forward<AlgorithmSpecificationT>(value);
287 }
288 template <typename AlgorithmSpecificationT = AlgorithmSpecification>
289 TrainingJob& WithAlgorithmSpecification(AlgorithmSpecificationT&& value) {
290 SetAlgorithmSpecification(std::forward<AlgorithmSpecificationT>(value));
291 return *this;
292 }
294
296
300 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
301 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
302 template <typename RoleArnT = Aws::String>
303 void SetRoleArn(RoleArnT&& value) {
304 m_roleArnHasBeenSet = true;
305 m_roleArn = std::forward<RoleArnT>(value);
306 }
307 template <typename RoleArnT = Aws::String>
308 TrainingJob& WithRoleArn(RoleArnT&& value) {
309 SetRoleArn(std::forward<RoleArnT>(value));
310 return *this;
311 }
313
315
320 inline const Aws::Vector<Channel>& GetInputDataConfig() const { return m_inputDataConfig; }
321 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
322 template <typename InputDataConfigT = Aws::Vector<Channel>>
323 void SetInputDataConfig(InputDataConfigT&& value) {
324 m_inputDataConfigHasBeenSet = true;
325 m_inputDataConfig = std::forward<InputDataConfigT>(value);
326 }
327 template <typename InputDataConfigT = Aws::Vector<Channel>>
328 TrainingJob& WithInputDataConfig(InputDataConfigT&& value) {
329 SetInputDataConfig(std::forward<InputDataConfigT>(value));
330 return *this;
331 }
332 template <typename InputDataConfigT = Channel>
333 TrainingJob& AddInputDataConfig(InputDataConfigT&& value) {
334 m_inputDataConfigHasBeenSet = true;
335 m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value));
336 return *this;
337 }
339
341
345 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
346 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
347 template <typename OutputDataConfigT = OutputDataConfig>
348 void SetOutputDataConfig(OutputDataConfigT&& value) {
349 m_outputDataConfigHasBeenSet = true;
350 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
351 }
352 template <typename OutputDataConfigT = OutputDataConfig>
353 TrainingJob& WithOutputDataConfig(OutputDataConfigT&& value) {
354 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
355 return *this;
356 }
358
360
364 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
365 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
366 template <typename ResourceConfigT = ResourceConfig>
367 void SetResourceConfig(ResourceConfigT&& value) {
368 m_resourceConfigHasBeenSet = true;
369 m_resourceConfig = std::forward<ResourceConfigT>(value);
370 }
371 template <typename ResourceConfigT = ResourceConfig>
372 TrainingJob& WithResourceConfig(ResourceConfigT&& value) {
373 SetResourceConfig(std::forward<ResourceConfigT>(value));
374 return *this;
375 }
377
379
382 inline const WarmPoolStatus& GetWarmPoolStatus() const { return m_warmPoolStatus; }
383 inline bool WarmPoolStatusHasBeenSet() const { return m_warmPoolStatusHasBeenSet; }
384 template <typename WarmPoolStatusT = WarmPoolStatus>
385 void SetWarmPoolStatus(WarmPoolStatusT&& value) {
386 m_warmPoolStatusHasBeenSet = true;
387 m_warmPoolStatus = std::forward<WarmPoolStatusT>(value);
388 }
389 template <typename WarmPoolStatusT = WarmPoolStatus>
390 TrainingJob& WithWarmPoolStatus(WarmPoolStatusT&& value) {
391 SetWarmPoolStatus(std::forward<WarmPoolStatusT>(value));
392 return *this;
393 }
395
397
405 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
406 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
407 template <typename VpcConfigT = VpcConfig>
408 void SetVpcConfig(VpcConfigT&& value) {
409 m_vpcConfigHasBeenSet = true;
410 m_vpcConfig = std::forward<VpcConfigT>(value);
411 }
412 template <typename VpcConfigT = VpcConfig>
413 TrainingJob& WithVpcConfig(VpcConfigT&& value) {
414 SetVpcConfig(std::forward<VpcConfigT>(value));
415 return *this;
416 }
418
420
429 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
430 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
431 template <typename StoppingConditionT = StoppingCondition>
432 void SetStoppingCondition(StoppingConditionT&& value) {
433 m_stoppingConditionHasBeenSet = true;
434 m_stoppingCondition = std::forward<StoppingConditionT>(value);
435 }
436 template <typename StoppingConditionT = StoppingCondition>
437 TrainingJob& WithStoppingCondition(StoppingConditionT&& value) {
438 SetStoppingCondition(std::forward<StoppingConditionT>(value));
439 return *this;
440 }
442
444
447 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
448 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
449 template <typename CreationTimeT = Aws::Utils::DateTime>
450 void SetCreationTime(CreationTimeT&& value) {
451 m_creationTimeHasBeenSet = true;
452 m_creationTime = std::forward<CreationTimeT>(value);
453 }
454 template <typename CreationTimeT = Aws::Utils::DateTime>
455 TrainingJob& WithCreationTime(CreationTimeT&& value) {
456 SetCreationTime(std::forward<CreationTimeT>(value));
457 return *this;
458 }
460
462
469 inline const Aws::Utils::DateTime& GetTrainingStartTime() const { return m_trainingStartTime; }
470 inline bool TrainingStartTimeHasBeenSet() const { return m_trainingStartTimeHasBeenSet; }
471 template <typename TrainingStartTimeT = Aws::Utils::DateTime>
472 void SetTrainingStartTime(TrainingStartTimeT&& value) {
473 m_trainingStartTimeHasBeenSet = true;
474 m_trainingStartTime = std::forward<TrainingStartTimeT>(value);
475 }
476 template <typename TrainingStartTimeT = Aws::Utils::DateTime>
477 TrainingJob& WithTrainingStartTime(TrainingStartTimeT&& value) {
478 SetTrainingStartTime(std::forward<TrainingStartTimeT>(value));
479 return *this;
480 }
482
484
491 inline const Aws::Utils::DateTime& GetTrainingEndTime() const { return m_trainingEndTime; }
492 inline bool TrainingEndTimeHasBeenSet() const { return m_trainingEndTimeHasBeenSet; }
493 template <typename TrainingEndTimeT = Aws::Utils::DateTime>
494 void SetTrainingEndTime(TrainingEndTimeT&& value) {
495 m_trainingEndTimeHasBeenSet = true;
496 m_trainingEndTime = std::forward<TrainingEndTimeT>(value);
497 }
498 template <typename TrainingEndTimeT = Aws::Utils::DateTime>
499 TrainingJob& WithTrainingEndTime(TrainingEndTimeT&& value) {
500 SetTrainingEndTime(std::forward<TrainingEndTimeT>(value));
501 return *this;
502 }
504
506
510 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
511 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
512 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
513 void SetLastModifiedTime(LastModifiedTimeT&& value) {
514 m_lastModifiedTimeHasBeenSet = true;
515 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
516 }
517 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
518 TrainingJob& WithLastModifiedTime(LastModifiedTimeT&& value) {
519 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
520 return *this;
521 }
523
525
529 inline const Aws::Vector<SecondaryStatusTransition>& GetSecondaryStatusTransitions() const { return m_secondaryStatusTransitions; }
530 inline bool SecondaryStatusTransitionsHasBeenSet() const { return m_secondaryStatusTransitionsHasBeenSet; }
531 template <typename SecondaryStatusTransitionsT = Aws::Vector<SecondaryStatusTransition>>
532 void SetSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) {
533 m_secondaryStatusTransitionsHasBeenSet = true;
534 m_secondaryStatusTransitions = std::forward<SecondaryStatusTransitionsT>(value);
535 }
536 template <typename SecondaryStatusTransitionsT = Aws::Vector<SecondaryStatusTransition>>
537 TrainingJob& WithSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) {
538 SetSecondaryStatusTransitions(std::forward<SecondaryStatusTransitionsT>(value));
539 return *this;
540 }
541 template <typename SecondaryStatusTransitionsT = SecondaryStatusTransition>
542 TrainingJob& AddSecondaryStatusTransitions(SecondaryStatusTransitionsT&& value) {
543 m_secondaryStatusTransitionsHasBeenSet = true;
544 m_secondaryStatusTransitions.emplace_back(std::forward<SecondaryStatusTransitionsT>(value));
545 return *this;
546 }
548
550
554 inline const Aws::Vector<MetricData>& GetFinalMetricDataList() const { return m_finalMetricDataList; }
555 inline bool FinalMetricDataListHasBeenSet() const { return m_finalMetricDataListHasBeenSet; }
556 template <typename FinalMetricDataListT = Aws::Vector<MetricData>>
557 void SetFinalMetricDataList(FinalMetricDataListT&& value) {
558 m_finalMetricDataListHasBeenSet = true;
559 m_finalMetricDataList = std::forward<FinalMetricDataListT>(value);
560 }
561 template <typename FinalMetricDataListT = Aws::Vector<MetricData>>
562 TrainingJob& WithFinalMetricDataList(FinalMetricDataListT&& value) {
563 SetFinalMetricDataList(std::forward<FinalMetricDataListT>(value));
564 return *this;
565 }
566 template <typename FinalMetricDataListT = MetricData>
567 TrainingJob& AddFinalMetricDataList(FinalMetricDataListT&& value) {
568 m_finalMetricDataListHasBeenSet = true;
569 m_finalMetricDataList.emplace_back(std::forward<FinalMetricDataListT>(value));
570 return *this;
571 }
573
575
580 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
581 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
582 inline void SetEnableNetworkIsolation(bool value) {
583 m_enableNetworkIsolationHasBeenSet = true;
584 m_enableNetworkIsolation = value;
585 }
588 return *this;
589 }
591
593
600 inline bool GetEnableInterContainerTrafficEncryption() const { return m_enableInterContainerTrafficEncryption; }
601 inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; }
603 m_enableInterContainerTrafficEncryptionHasBeenSet = true;
604 m_enableInterContainerTrafficEncryption = value;
605 }
608 return *this;
609 }
611
613
619 inline bool GetEnableManagedSpotTraining() const { return m_enableManagedSpotTraining; }
620 inline bool EnableManagedSpotTrainingHasBeenSet() const { return m_enableManagedSpotTrainingHasBeenSet; }
621 inline void SetEnableManagedSpotTraining(bool value) {
622 m_enableManagedSpotTrainingHasBeenSet = true;
623 m_enableManagedSpotTraining = value;
624 }
627 return *this;
628 }
630
632
633 inline const CheckpointConfig& GetCheckpointConfig() const { return m_checkpointConfig; }
634 inline bool CheckpointConfigHasBeenSet() const { return m_checkpointConfigHasBeenSet; }
635 template <typename CheckpointConfigT = CheckpointConfig>
636 void SetCheckpointConfig(CheckpointConfigT&& value) {
637 m_checkpointConfigHasBeenSet = true;
638 m_checkpointConfig = std::forward<CheckpointConfigT>(value);
639 }
640 template <typename CheckpointConfigT = CheckpointConfig>
641 TrainingJob& WithCheckpointConfig(CheckpointConfigT&& value) {
642 SetCheckpointConfig(std::forward<CheckpointConfigT>(value));
643 return *this;
644 }
646
648
651 inline int GetTrainingTimeInSeconds() const { return m_trainingTimeInSeconds; }
652 inline bool TrainingTimeInSecondsHasBeenSet() const { return m_trainingTimeInSecondsHasBeenSet; }
653 inline void SetTrainingTimeInSeconds(int value) {
654 m_trainingTimeInSecondsHasBeenSet = true;
655 m_trainingTimeInSeconds = value;
656 }
659 return *this;
660 }
662
664
667 inline int GetBillableTimeInSeconds() const { return m_billableTimeInSeconds; }
668 inline bool BillableTimeInSecondsHasBeenSet() const { return m_billableTimeInSecondsHasBeenSet; }
669 inline void SetBillableTimeInSeconds(int value) {
670 m_billableTimeInSecondsHasBeenSet = true;
671 m_billableTimeInSeconds = value;
672 }
675 return *this;
676 }
678
680
681 inline const DebugHookConfig& GetDebugHookConfig() const { return m_debugHookConfig; }
682 inline bool DebugHookConfigHasBeenSet() const { return m_debugHookConfigHasBeenSet; }
683 template <typename DebugHookConfigT = DebugHookConfig>
684 void SetDebugHookConfig(DebugHookConfigT&& value) {
685 m_debugHookConfigHasBeenSet = true;
686 m_debugHookConfig = std::forward<DebugHookConfigT>(value);
687 }
688 template <typename DebugHookConfigT = DebugHookConfig>
689 TrainingJob& WithDebugHookConfig(DebugHookConfigT&& value) {
690 SetDebugHookConfig(std::forward<DebugHookConfigT>(value));
691 return *this;
692 }
694
696
697 inline const ExperimentConfig& GetExperimentConfig() const { return m_experimentConfig; }
698 inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; }
699 template <typename ExperimentConfigT = ExperimentConfig>
700 void SetExperimentConfig(ExperimentConfigT&& value) {
701 m_experimentConfigHasBeenSet = true;
702 m_experimentConfig = std::forward<ExperimentConfigT>(value);
703 }
704 template <typename ExperimentConfigT = ExperimentConfig>
705 TrainingJob& WithExperimentConfig(ExperimentConfigT&& value) {
706 SetExperimentConfig(std::forward<ExperimentConfigT>(value));
707 return *this;
708 }
710
712
715 inline const Aws::Vector<DebugRuleConfiguration>& GetDebugRuleConfigurations() const { return m_debugRuleConfigurations; }
716 inline bool DebugRuleConfigurationsHasBeenSet() const { return m_debugRuleConfigurationsHasBeenSet; }
717 template <typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
718 void SetDebugRuleConfigurations(DebugRuleConfigurationsT&& value) {
719 m_debugRuleConfigurationsHasBeenSet = true;
720 m_debugRuleConfigurations = std::forward<DebugRuleConfigurationsT>(value);
721 }
722 template <typename DebugRuleConfigurationsT = Aws::Vector<DebugRuleConfiguration>>
723 TrainingJob& WithDebugRuleConfigurations(DebugRuleConfigurationsT&& value) {
724 SetDebugRuleConfigurations(std::forward<DebugRuleConfigurationsT>(value));
725 return *this;
726 }
727 template <typename DebugRuleConfigurationsT = DebugRuleConfiguration>
728 TrainingJob& AddDebugRuleConfigurations(DebugRuleConfigurationsT&& value) {
729 m_debugRuleConfigurationsHasBeenSet = true;
730 m_debugRuleConfigurations.emplace_back(std::forward<DebugRuleConfigurationsT>(value));
731 return *this;
732 }
734
736
737 inline const TensorBoardOutputConfig& GetTensorBoardOutputConfig() const { return m_tensorBoardOutputConfig; }
738 inline bool TensorBoardOutputConfigHasBeenSet() const { return m_tensorBoardOutputConfigHasBeenSet; }
739 template <typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
740 void SetTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) {
741 m_tensorBoardOutputConfigHasBeenSet = true;
742 m_tensorBoardOutputConfig = std::forward<TensorBoardOutputConfigT>(value);
743 }
744 template <typename TensorBoardOutputConfigT = TensorBoardOutputConfig>
745 TrainingJob& WithTensorBoardOutputConfig(TensorBoardOutputConfigT&& value) {
746 SetTensorBoardOutputConfig(std::forward<TensorBoardOutputConfigT>(value));
747 return *this;
748 }
750
752
756 inline const Aws::Vector<DebugRuleEvaluationStatus>& GetDebugRuleEvaluationStatuses() const { return m_debugRuleEvaluationStatuses; }
757 inline bool DebugRuleEvaluationStatusesHasBeenSet() const { return m_debugRuleEvaluationStatusesHasBeenSet; }
758 template <typename DebugRuleEvaluationStatusesT = Aws::Vector<DebugRuleEvaluationStatus>>
759 void SetDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) {
760 m_debugRuleEvaluationStatusesHasBeenSet = true;
761 m_debugRuleEvaluationStatuses = std::forward<DebugRuleEvaluationStatusesT>(value);
762 }
763 template <typename DebugRuleEvaluationStatusesT = Aws::Vector<DebugRuleEvaluationStatus>>
764 TrainingJob& WithDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) {
765 SetDebugRuleEvaluationStatuses(std::forward<DebugRuleEvaluationStatusesT>(value));
766 return *this;
767 }
768 template <typename DebugRuleEvaluationStatusesT = DebugRuleEvaluationStatus>
769 TrainingJob& AddDebugRuleEvaluationStatuses(DebugRuleEvaluationStatusesT&& value) {
770 m_debugRuleEvaluationStatusesHasBeenSet = true;
771 m_debugRuleEvaluationStatuses.emplace_back(std::forward<DebugRuleEvaluationStatusesT>(value));
772 return *this;
773 }
775
777
781 inline const Aws::String& GetOutputModelPackageArn() const { return m_outputModelPackageArn; }
782 inline bool OutputModelPackageArnHasBeenSet() const { return m_outputModelPackageArnHasBeenSet; }
783 template <typename OutputModelPackageArnT = Aws::String>
784 void SetOutputModelPackageArn(OutputModelPackageArnT&& value) {
785 m_outputModelPackageArnHasBeenSet = true;
786 m_outputModelPackageArn = std::forward<OutputModelPackageArnT>(value);
787 }
788 template <typename OutputModelPackageArnT = Aws::String>
789 TrainingJob& WithOutputModelPackageArn(OutputModelPackageArnT&& value) {
790 SetOutputModelPackageArn(std::forward<OutputModelPackageArnT>(value));
791 return *this;
792 }
794
796
799 inline const ModelPackageConfig& GetModelPackageConfig() const { return m_modelPackageConfig; }
800 inline bool ModelPackageConfigHasBeenSet() const { return m_modelPackageConfigHasBeenSet; }
801 template <typename ModelPackageConfigT = ModelPackageConfig>
802 void SetModelPackageConfig(ModelPackageConfigT&& value) {
803 m_modelPackageConfigHasBeenSet = true;
804 m_modelPackageConfig = std::forward<ModelPackageConfigT>(value);
805 }
806 template <typename ModelPackageConfigT = ModelPackageConfig>
807 TrainingJob& WithModelPackageConfig(ModelPackageConfigT&& value) {
808 SetModelPackageConfig(std::forward<ModelPackageConfigT>(value));
809 return *this;
810 }
812
814
815 inline const ProfilerConfig& GetProfilerConfig() const { return m_profilerConfig; }
816 inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
817 template <typename ProfilerConfigT = ProfilerConfig>
818 void SetProfilerConfig(ProfilerConfigT&& value) {
819 m_profilerConfigHasBeenSet = true;
820 m_profilerConfig = std::forward<ProfilerConfigT>(value);
821 }
822 template <typename ProfilerConfigT = ProfilerConfig>
823 TrainingJob& WithProfilerConfig(ProfilerConfigT&& value) {
824 SetProfilerConfig(std::forward<ProfilerConfigT>(value));
825 return *this;
826 }
828
830
833 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
834 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
835 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
836 void SetEnvironment(EnvironmentT&& value) {
837 m_environmentHasBeenSet = true;
838 m_environment = std::forward<EnvironmentT>(value);
839 }
840 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
841 TrainingJob& WithEnvironment(EnvironmentT&& value) {
842 SetEnvironment(std::forward<EnvironmentT>(value));
843 return *this;
844 }
845 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
846 TrainingJob& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
847 m_environmentHasBeenSet = true;
848 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
849 return *this;
850 }
852
854
858 inline const RetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
859 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
860 template <typename RetryStrategyT = RetryStrategy>
861 void SetRetryStrategy(RetryStrategyT&& value) {
862 m_retryStrategyHasBeenSet = true;
863 m_retryStrategy = std::forward<RetryStrategyT>(value);
864 }
865 template <typename RetryStrategyT = RetryStrategy>
866 TrainingJob& WithRetryStrategy(RetryStrategyT&& value) {
867 SetRetryStrategy(std::forward<RetryStrategyT>(value));
868 return *this;
869 }
871
873
880 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
881 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
882 template <typename TagsT = Aws::Vector<Tag>>
883 void SetTags(TagsT&& value) {
884 m_tagsHasBeenSet = true;
885 m_tags = std::forward<TagsT>(value);
886 }
887 template <typename TagsT = Aws::Vector<Tag>>
888 TrainingJob& WithTags(TagsT&& value) {
889 SetTags(std::forward<TagsT>(value));
890 return *this;
891 }
892 template <typename TagsT = Tag>
893 TrainingJob& AddTags(TagsT&& value) {
894 m_tagsHasBeenSet = true;
895 m_tags.emplace_back(std::forward<TagsT>(value));
896 return *this;
897 }
899 private:
900 Aws::String m_trainingJobName;
901
902 Aws::String m_trainingJobArn;
903
904 Aws::String m_tuningJobArn;
905
906 Aws::String m_labelingJobArn;
907
908 Aws::String m_autoMLJobArn;
909
910 ModelArtifacts m_modelArtifacts;
911
913
914 SecondaryStatus m_secondaryStatus{SecondaryStatus::NOT_SET};
915
916 Aws::String m_failureReason;
917
918 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
919
920 AlgorithmSpecification m_algorithmSpecification;
921
922 Aws::String m_roleArn;
923
924 Aws::Vector<Channel> m_inputDataConfig;
925
926 OutputDataConfig m_outputDataConfig;
927
928 ResourceConfig m_resourceConfig;
929
930 WarmPoolStatus m_warmPoolStatus;
931
932 VpcConfig m_vpcConfig;
933
934 StoppingCondition m_stoppingCondition;
935
936 Aws::Utils::DateTime m_creationTime{};
937
938 Aws::Utils::DateTime m_trainingStartTime{};
939
940 Aws::Utils::DateTime m_trainingEndTime{};
941
942 Aws::Utils::DateTime m_lastModifiedTime{};
943
944 Aws::Vector<SecondaryStatusTransition> m_secondaryStatusTransitions;
945
946 Aws::Vector<MetricData> m_finalMetricDataList;
947
948 bool m_enableNetworkIsolation{false};
949
950 bool m_enableInterContainerTrafficEncryption{false};
951
952 bool m_enableManagedSpotTraining{false};
953
954 CheckpointConfig m_checkpointConfig;
955
956 int m_trainingTimeInSeconds{0};
957
958 int m_billableTimeInSeconds{0};
959
960 DebugHookConfig m_debugHookConfig;
961
962 ExperimentConfig m_experimentConfig;
963
964 Aws::Vector<DebugRuleConfiguration> m_debugRuleConfigurations;
965
966 TensorBoardOutputConfig m_tensorBoardOutputConfig;
967
968 Aws::Vector<DebugRuleEvaluationStatus> m_debugRuleEvaluationStatuses;
969
970 Aws::String m_outputModelPackageArn;
971
972 ModelPackageConfig m_modelPackageConfig;
973
974 ProfilerConfig m_profilerConfig;
975
977
978 RetryStrategy m_retryStrategy;
979
980 Aws::Vector<Tag> m_tags;
981 bool m_trainingJobNameHasBeenSet = false;
982 bool m_trainingJobArnHasBeenSet = false;
983 bool m_tuningJobArnHasBeenSet = false;
984 bool m_labelingJobArnHasBeenSet = false;
985 bool m_autoMLJobArnHasBeenSet = false;
986 bool m_modelArtifactsHasBeenSet = false;
987 bool m_trainingJobStatusHasBeenSet = false;
988 bool m_secondaryStatusHasBeenSet = false;
989 bool m_failureReasonHasBeenSet = false;
990 bool m_hyperParametersHasBeenSet = false;
991 bool m_algorithmSpecificationHasBeenSet = false;
992 bool m_roleArnHasBeenSet = false;
993 bool m_inputDataConfigHasBeenSet = false;
994 bool m_outputDataConfigHasBeenSet = false;
995 bool m_resourceConfigHasBeenSet = false;
996 bool m_warmPoolStatusHasBeenSet = false;
997 bool m_vpcConfigHasBeenSet = false;
998 bool m_stoppingConditionHasBeenSet = false;
999 bool m_creationTimeHasBeenSet = false;
1000 bool m_trainingStartTimeHasBeenSet = false;
1001 bool m_trainingEndTimeHasBeenSet = false;
1002 bool m_lastModifiedTimeHasBeenSet = false;
1003 bool m_secondaryStatusTransitionsHasBeenSet = false;
1004 bool m_finalMetricDataListHasBeenSet = false;
1005 bool m_enableNetworkIsolationHasBeenSet = false;
1006 bool m_enableInterContainerTrafficEncryptionHasBeenSet = false;
1007 bool m_enableManagedSpotTrainingHasBeenSet = false;
1008 bool m_checkpointConfigHasBeenSet = false;
1009 bool m_trainingTimeInSecondsHasBeenSet = false;
1010 bool m_billableTimeInSecondsHasBeenSet = false;
1011 bool m_debugHookConfigHasBeenSet = false;
1012 bool m_experimentConfigHasBeenSet = false;
1013 bool m_debugRuleConfigurationsHasBeenSet = false;
1014 bool m_tensorBoardOutputConfigHasBeenSet = false;
1015 bool m_debugRuleEvaluationStatusesHasBeenSet = false;
1016 bool m_outputModelPackageArnHasBeenSet = false;
1017 bool m_modelPackageConfigHasBeenSet = false;
1018 bool m_profilerConfigHasBeenSet = false;
1019 bool m_environmentHasBeenSet = false;
1020 bool m_retryStrategyHasBeenSet = false;
1021 bool m_tagsHasBeenSet = false;
1022};
1023
1024} // namespace Model
1025} // namespace SageMaker
1026} // 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:66
void SetTuningJobArn(TuningJobArnT &&value)
TrainingJob & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
void SetVpcConfig(VpcConfigT &&value)
void SetWarmPoolStatus(WarmPoolStatusT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
TrainingJob & WithTrainingJobName(TrainingJobNameT &&value)
Definition TrainingJob.h:71
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)
const WarmPoolStatus & GetWarmPoolStatus() const
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 & WithWarmPoolStatus(WarmPoolStatusT &&value)
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:63
void SetHyperParameters(HyperParametersT &&value)
TrainingJob & WithRoleArn(RoleArnT &&value)
void SetTrainingJobArn(TrainingJobArnT &&value)
Definition TrainingJob.h:84
bool GetEnableInterContainerTrafficEncryption() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetTrainingJobArn() const
Definition TrainingJob.h:81
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
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:89
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