AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HyperParameterTrainingJobSummary.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/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/FinalHyperParameterTuningJobObjectiveMetric.h>
12#include <aws/sagemaker/model/ObjectiveStatus.h>
13#include <aws/sagemaker/model/TrainingJobStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKER_API HyperParameterTrainingJobSummary() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetTrainingJobDefinitionName() const { return m_trainingJobDefinitionName; }
45 inline bool TrainingJobDefinitionNameHasBeenSet() const { return m_trainingJobDefinitionNameHasBeenSet; }
46 template <typename TrainingJobDefinitionNameT = Aws::String>
47 void SetTrainingJobDefinitionName(TrainingJobDefinitionNameT&& value) {
48 m_trainingJobDefinitionNameHasBeenSet = true;
49 m_trainingJobDefinitionName = std::forward<TrainingJobDefinitionNameT>(value);
50 }
51 template <typename TrainingJobDefinitionNameT = Aws::String>
53 SetTrainingJobDefinitionName(std::forward<TrainingJobDefinitionNameT>(value));
54 return *this;
55 }
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>
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>
89 SetTrainingJobArn(std::forward<TrainingJobArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetTuningJobName() const { return m_tuningJobName; }
99 inline bool TuningJobNameHasBeenSet() const { return m_tuningJobNameHasBeenSet; }
100 template <typename TuningJobNameT = Aws::String>
101 void SetTuningJobName(TuningJobNameT&& value) {
102 m_tuningJobNameHasBeenSet = true;
103 m_tuningJobName = std::forward<TuningJobNameT>(value);
104 }
105 template <typename TuningJobNameT = Aws::String>
107 SetTuningJobName(std::forward<TuningJobNameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
117 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
118 template <typename CreationTimeT = Aws::Utils::DateTime>
119 void SetCreationTime(CreationTimeT&& value) {
120 m_creationTimeHasBeenSet = true;
121 m_creationTime = std::forward<CreationTimeT>(value);
122 }
123 template <typename CreationTimeT = Aws::Utils::DateTime>
125 SetCreationTime(std::forward<CreationTimeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetTrainingStartTime() const { return m_trainingStartTime; }
135 inline bool TrainingStartTimeHasBeenSet() const { return m_trainingStartTimeHasBeenSet; }
136 template <typename TrainingStartTimeT = Aws::Utils::DateTime>
137 void SetTrainingStartTime(TrainingStartTimeT&& value) {
138 m_trainingStartTimeHasBeenSet = true;
139 m_trainingStartTime = std::forward<TrainingStartTimeT>(value);
140 }
141 template <typename TrainingStartTimeT = Aws::Utils::DateTime>
143 SetTrainingStartTime(std::forward<TrainingStartTimeT>(value));
144 return *this;
145 }
147
149
156 inline const Aws::Utils::DateTime& GetTrainingEndTime() const { return m_trainingEndTime; }
157 inline bool TrainingEndTimeHasBeenSet() const { return m_trainingEndTimeHasBeenSet; }
158 template <typename TrainingEndTimeT = Aws::Utils::DateTime>
159 void SetTrainingEndTime(TrainingEndTimeT&& value) {
160 m_trainingEndTimeHasBeenSet = true;
161 m_trainingEndTime = std::forward<TrainingEndTimeT>(value);
162 }
163 template <typename TrainingEndTimeT = Aws::Utils::DateTime>
165 SetTrainingEndTime(std::forward<TrainingEndTimeT>(value));
166 return *this;
167 }
169
171
174 inline TrainingJobStatus GetTrainingJobStatus() const { return m_trainingJobStatus; }
175 inline bool TrainingJobStatusHasBeenSet() const { return m_trainingJobStatusHasBeenSet; }
177 m_trainingJobStatusHasBeenSet = true;
178 m_trainingJobStatus = value;
179 }
182 return *this;
183 }
185
187
190 inline const Aws::Map<Aws::String, Aws::String>& GetTunedHyperParameters() const { return m_tunedHyperParameters; }
191 inline bool TunedHyperParametersHasBeenSet() const { return m_tunedHyperParametersHasBeenSet; }
192 template <typename TunedHyperParametersT = Aws::Map<Aws::String, Aws::String>>
193 void SetTunedHyperParameters(TunedHyperParametersT&& value) {
194 m_tunedHyperParametersHasBeenSet = true;
195 m_tunedHyperParameters = std::forward<TunedHyperParametersT>(value);
196 }
197 template <typename TunedHyperParametersT = Aws::Map<Aws::String, Aws::String>>
199 SetTunedHyperParameters(std::forward<TunedHyperParametersT>(value));
200 return *this;
201 }
202 template <typename TunedHyperParametersKeyT = Aws::String, typename TunedHyperParametersValueT = Aws::String>
203 HyperParameterTrainingJobSummary& AddTunedHyperParameters(TunedHyperParametersKeyT&& key, TunedHyperParametersValueT&& value) {
204 m_tunedHyperParametersHasBeenSet = true;
205 m_tunedHyperParameters.emplace(std::forward<TunedHyperParametersKeyT>(key), std::forward<TunedHyperParametersValueT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
215 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
216 template <typename FailureReasonT = Aws::String>
217 void SetFailureReason(FailureReasonT&& value) {
218 m_failureReasonHasBeenSet = true;
219 m_failureReason = std::forward<FailureReasonT>(value);
220 }
221 template <typename FailureReasonT = Aws::String>
223 SetFailureReason(std::forward<FailureReasonT>(value));
224 return *this;
225 }
227
229
236 return m_finalHyperParameterTuningJobObjectiveMetric;
237 }
239 return m_finalHyperParameterTuningJobObjectiveMetricHasBeenSet;
240 }
241 template <typename FinalHyperParameterTuningJobObjectiveMetricT = FinalHyperParameterTuningJobObjectiveMetric>
242 void SetFinalHyperParameterTuningJobObjectiveMetric(FinalHyperParameterTuningJobObjectiveMetricT&& value) {
243 m_finalHyperParameterTuningJobObjectiveMetricHasBeenSet = true;
244 m_finalHyperParameterTuningJobObjectiveMetric = std::forward<FinalHyperParameterTuningJobObjectiveMetricT>(value);
245 }
246 template <typename FinalHyperParameterTuningJobObjectiveMetricT = FinalHyperParameterTuningJobObjectiveMetric>
247 HyperParameterTrainingJobSummary& WithFinalHyperParameterTuningJobObjectiveMetric(FinalHyperParameterTuningJobObjectiveMetricT&& value) {
248 SetFinalHyperParameterTuningJobObjectiveMetric(std::forward<FinalHyperParameterTuningJobObjectiveMetricT>(value));
249 return *this;
250 }
252
254
264 inline ObjectiveStatus GetObjectiveStatus() const { return m_objectiveStatus; }
265 inline bool ObjectiveStatusHasBeenSet() const { return m_objectiveStatusHasBeenSet; }
267 m_objectiveStatusHasBeenSet = true;
268 m_objectiveStatus = value;
269 }
271 SetObjectiveStatus(value);
272 return *this;
273 }
275 private:
276 Aws::String m_trainingJobDefinitionName;
277
278 Aws::String m_trainingJobName;
279
280 Aws::String m_trainingJobArn;
281
282 Aws::String m_tuningJobName;
283
284 Aws::Utils::DateTime m_creationTime{};
285
286 Aws::Utils::DateTime m_trainingStartTime{};
287
288 Aws::Utils::DateTime m_trainingEndTime{};
289
291
292 Aws::Map<Aws::String, Aws::String> m_tunedHyperParameters;
293
294 Aws::String m_failureReason;
295
296 FinalHyperParameterTuningJobObjectiveMetric m_finalHyperParameterTuningJobObjectiveMetric;
297
298 ObjectiveStatus m_objectiveStatus{ObjectiveStatus::NOT_SET};
299 bool m_trainingJobDefinitionNameHasBeenSet = false;
300 bool m_trainingJobNameHasBeenSet = false;
301 bool m_trainingJobArnHasBeenSet = false;
302 bool m_tuningJobNameHasBeenSet = false;
303 bool m_creationTimeHasBeenSet = false;
304 bool m_trainingStartTimeHasBeenSet = false;
305 bool m_trainingEndTimeHasBeenSet = false;
306 bool m_trainingJobStatusHasBeenSet = false;
307 bool m_tunedHyperParametersHasBeenSet = false;
308 bool m_failureReasonHasBeenSet = false;
309 bool m_finalHyperParameterTuningJobObjectiveMetricHasBeenSet = false;
310 bool m_objectiveStatusHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace SageMaker
315} // namespace Aws
HyperParameterTrainingJobSummary & WithTrainingStartTime(TrainingStartTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterTrainingJobSummary & WithTrainingJobName(TrainingJobNameT &&value)
HyperParameterTrainingJobSummary & WithTrainingJobArn(TrainingJobArnT &&value)
HyperParameterTrainingJobSummary & WithFailureReason(FailureReasonT &&value)
AWS_SAGEMAKER_API HyperParameterTrainingJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const FinalHyperParameterTuningJobObjectiveMetric & GetFinalHyperParameterTuningJobObjectiveMetric() const
HyperParameterTrainingJobSummary & WithObjectiveStatus(ObjectiveStatus value)
HyperParameterTrainingJobSummary & WithTrainingJobDefinitionName(TrainingJobDefinitionNameT &&value)
HyperParameterTrainingJobSummary & WithTuningJobName(TuningJobNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTunedHyperParameters() const
HyperParameterTrainingJobSummary & AddTunedHyperParameters(TunedHyperParametersKeyT &&key, TunedHyperParametersValueT &&value)
AWS_SAGEMAKER_API HyperParameterTrainingJobSummary()=default
AWS_SAGEMAKER_API HyperParameterTrainingJobSummary(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTrainingJobSummary & WithTrainingEndTime(TrainingEndTimeT &&value)
HyperParameterTrainingJobSummary & WithFinalHyperParameterTuningJobObjectiveMetric(FinalHyperParameterTuningJobObjectiveMetricT &&value)
HyperParameterTrainingJobSummary & WithTrainingJobStatus(TrainingJobStatus value)
HyperParameterTrainingJobSummary & WithTunedHyperParameters(TunedHyperParametersT &&value)
HyperParameterTrainingJobSummary & WithCreationTime(CreationTimeT &&value)
void SetFinalHyperParameterTuningJobObjectiveMetric(FinalHyperParameterTuningJobObjectiveMetricT &&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
Aws::Utils::Json::JsonValue JsonValue