AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrialComponent.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/MetadataProperties.h>
13#include <aws/sagemaker/model/Parent.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/TrialComponentArtifact.h>
16#include <aws/sagemaker/model/TrialComponentMetricSummary.h>
17#include <aws/sagemaker/model/TrialComponentParameterValue.h>
18#include <aws/sagemaker/model/TrialComponentSource.h>
19#include <aws/sagemaker/model/TrialComponentSourceDetail.h>
20#include <aws/sagemaker/model/TrialComponentStatus.h>
21#include <aws/sagemaker/model/UserContext.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace SageMaker {
33namespace Model {
34
43 public:
44 AWS_SAGEMAKER_API TrialComponent() = default;
45 AWS_SAGEMAKER_API TrialComponent(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const Aws::String& GetTrialComponentName() const { return m_trialComponentName; }
54 inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; }
55 template <typename TrialComponentNameT = Aws::String>
56 void SetTrialComponentName(TrialComponentNameT&& value) {
57 m_trialComponentNameHasBeenSet = true;
58 m_trialComponentName = std::forward<TrialComponentNameT>(value);
59 }
60 template <typename TrialComponentNameT = Aws::String>
61 TrialComponent& WithTrialComponentName(TrialComponentNameT&& value) {
62 SetTrialComponentName(std::forward<TrialComponentNameT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetDisplayName() const { return m_displayName; }
73 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
74 template <typename DisplayNameT = Aws::String>
75 void SetDisplayName(DisplayNameT&& value) {
76 m_displayNameHasBeenSet = true;
77 m_displayName = std::forward<DisplayNameT>(value);
78 }
79 template <typename DisplayNameT = Aws::String>
80 TrialComponent& WithDisplayName(DisplayNameT&& value) {
81 SetDisplayName(std::forward<DisplayNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetTrialComponentArn() const { return m_trialComponentArn; }
91 inline bool TrialComponentArnHasBeenSet() const { return m_trialComponentArnHasBeenSet; }
92 template <typename TrialComponentArnT = Aws::String>
93 void SetTrialComponentArn(TrialComponentArnT&& value) {
94 m_trialComponentArnHasBeenSet = true;
95 m_trialComponentArn = std::forward<TrialComponentArnT>(value);
96 }
97 template <typename TrialComponentArnT = Aws::String>
98 TrialComponent& WithTrialComponentArn(TrialComponentArnT&& value) {
99 SetTrialComponentArn(std::forward<TrialComponentArnT>(value));
100 return *this;
101 }
103
105
109 inline const TrialComponentSource& GetSource() const { return m_source; }
110 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
111 template <typename SourceT = TrialComponentSource>
112 void SetSource(SourceT&& value) {
113 m_sourceHasBeenSet = true;
114 m_source = std::forward<SourceT>(value);
115 }
116 template <typename SourceT = TrialComponentSource>
117 TrialComponent& WithSource(SourceT&& value) {
118 SetSource(std::forward<SourceT>(value));
119 return *this;
120 }
122
124
125 inline const TrialComponentStatus& GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 template <typename StatusT = TrialComponentStatus>
128 void SetStatus(StatusT&& value) {
129 m_statusHasBeenSet = true;
130 m_status = std::forward<StatusT>(value);
131 }
132 template <typename StatusT = TrialComponentStatus>
133 TrialComponent& WithStatus(StatusT&& value) {
134 SetStatus(std::forward<StatusT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
144 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
145 template <typename StartTimeT = Aws::Utils::DateTime>
146 void SetStartTime(StartTimeT&& value) {
147 m_startTimeHasBeenSet = true;
148 m_startTime = std::forward<StartTimeT>(value);
149 }
150 template <typename StartTimeT = Aws::Utils::DateTime>
151 TrialComponent& WithStartTime(StartTimeT&& value) {
152 SetStartTime(std::forward<StartTimeT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
162 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
163 template <typename EndTimeT = Aws::Utils::DateTime>
164 void SetEndTime(EndTimeT&& value) {
165 m_endTimeHasBeenSet = true;
166 m_endTime = std::forward<EndTimeT>(value);
167 }
168 template <typename EndTimeT = Aws::Utils::DateTime>
169 TrialComponent& WithEndTime(EndTimeT&& value) {
170 SetEndTime(std::forward<EndTimeT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
180 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
181 template <typename CreationTimeT = Aws::Utils::DateTime>
182 void SetCreationTime(CreationTimeT&& value) {
183 m_creationTimeHasBeenSet = true;
184 m_creationTime = std::forward<CreationTimeT>(value);
185 }
186 template <typename CreationTimeT = Aws::Utils::DateTime>
187 TrialComponent& WithCreationTime(CreationTimeT&& value) {
188 SetCreationTime(std::forward<CreationTimeT>(value));
189 return *this;
190 }
192
194
197 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
198 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
199 template <typename CreatedByT = UserContext>
200 void SetCreatedBy(CreatedByT&& value) {
201 m_createdByHasBeenSet = true;
202 m_createdBy = std::forward<CreatedByT>(value);
203 }
204 template <typename CreatedByT = UserContext>
205 TrialComponent& WithCreatedBy(CreatedByT&& value) {
206 SetCreatedBy(std::forward<CreatedByT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
216 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
217 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
218 void SetLastModifiedTime(LastModifiedTimeT&& value) {
219 m_lastModifiedTimeHasBeenSet = true;
220 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
221 }
222 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
223 TrialComponent& WithLastModifiedTime(LastModifiedTimeT&& value) {
224 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
225 return *this;
226 }
228
230
231 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
232 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
233 template <typename LastModifiedByT = UserContext>
234 void SetLastModifiedBy(LastModifiedByT&& value) {
235 m_lastModifiedByHasBeenSet = true;
236 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
237 }
238 template <typename LastModifiedByT = UserContext>
239 TrialComponent& WithLastModifiedBy(LastModifiedByT&& value) {
240 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Map<Aws::String, TrialComponentParameterValue>& GetParameters() const { return m_parameters; }
250 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
251 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
252 void SetParameters(ParametersT&& value) {
253 m_parametersHasBeenSet = true;
254 m_parameters = std::forward<ParametersT>(value);
255 }
256 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
257 TrialComponent& WithParameters(ParametersT&& value) {
258 SetParameters(std::forward<ParametersT>(value));
259 return *this;
260 }
261 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TrialComponentParameterValue>
262 TrialComponent& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
263 m_parametersHasBeenSet = true;
264 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
274 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
275 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
276 void SetInputArtifacts(InputArtifactsT&& value) {
277 m_inputArtifactsHasBeenSet = true;
278 m_inputArtifacts = std::forward<InputArtifactsT>(value);
279 }
280 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
281 TrialComponent& WithInputArtifacts(InputArtifactsT&& value) {
282 SetInputArtifacts(std::forward<InputArtifactsT>(value));
283 return *this;
284 }
285 template <typename InputArtifactsKeyT = Aws::String, typename InputArtifactsValueT = TrialComponentArtifact>
286 TrialComponent& AddInputArtifacts(InputArtifactsKeyT&& key, InputArtifactsValueT&& value) {
287 m_inputArtifactsHasBeenSet = true;
288 m_inputArtifacts.emplace(std::forward<InputArtifactsKeyT>(key), std::forward<InputArtifactsValueT>(value));
289 return *this;
290 }
292
294
297 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
298 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
299 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
300 void SetOutputArtifacts(OutputArtifactsT&& value) {
301 m_outputArtifactsHasBeenSet = true;
302 m_outputArtifacts = std::forward<OutputArtifactsT>(value);
303 }
304 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
305 TrialComponent& WithOutputArtifacts(OutputArtifactsT&& value) {
306 SetOutputArtifacts(std::forward<OutputArtifactsT>(value));
307 return *this;
308 }
309 template <typename OutputArtifactsKeyT = Aws::String, typename OutputArtifactsValueT = TrialComponentArtifact>
310 TrialComponent& AddOutputArtifacts(OutputArtifactsKeyT&& key, OutputArtifactsValueT&& value) {
311 m_outputArtifactsHasBeenSet = true;
312 m_outputArtifacts.emplace(std::forward<OutputArtifactsKeyT>(key), std::forward<OutputArtifactsValueT>(value));
313 return *this;
314 }
316
318
321 inline const Aws::Vector<TrialComponentMetricSummary>& GetMetrics() const { return m_metrics; }
322 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
323 template <typename MetricsT = Aws::Vector<TrialComponentMetricSummary>>
324 void SetMetrics(MetricsT&& value) {
325 m_metricsHasBeenSet = true;
326 m_metrics = std::forward<MetricsT>(value);
327 }
328 template <typename MetricsT = Aws::Vector<TrialComponentMetricSummary>>
329 TrialComponent& WithMetrics(MetricsT&& value) {
330 SetMetrics(std::forward<MetricsT>(value));
331 return *this;
332 }
333 template <typename MetricsT = TrialComponentMetricSummary>
334 TrialComponent& AddMetrics(MetricsT&& value) {
335 m_metricsHasBeenSet = true;
336 m_metrics.emplace_back(std::forward<MetricsT>(value));
337 return *this;
338 }
340
342
343 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
344 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
345 template <typename MetadataPropertiesT = MetadataProperties>
346 void SetMetadataProperties(MetadataPropertiesT&& value) {
347 m_metadataPropertiesHasBeenSet = true;
348 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
349 }
350 template <typename MetadataPropertiesT = MetadataProperties>
351 TrialComponent& WithMetadataProperties(MetadataPropertiesT&& value) {
352 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
353 return *this;
354 }
356
358
361 inline const TrialComponentSourceDetail& GetSourceDetail() const { return m_sourceDetail; }
362 inline bool SourceDetailHasBeenSet() const { return m_sourceDetailHasBeenSet; }
363 template <typename SourceDetailT = TrialComponentSourceDetail>
364 void SetSourceDetail(SourceDetailT&& value) {
365 m_sourceDetailHasBeenSet = true;
366 m_sourceDetail = std::forward<SourceDetailT>(value);
367 }
368 template <typename SourceDetailT = TrialComponentSourceDetail>
369 TrialComponent& WithSourceDetail(SourceDetailT&& value) {
370 SetSourceDetail(std::forward<SourceDetailT>(value));
371 return *this;
372 }
374
376
379 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
380 inline bool LineageGroupArnHasBeenSet() const { return m_lineageGroupArnHasBeenSet; }
381 template <typename LineageGroupArnT = Aws::String>
382 void SetLineageGroupArn(LineageGroupArnT&& value) {
383 m_lineageGroupArnHasBeenSet = true;
384 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
385 }
386 template <typename LineageGroupArnT = Aws::String>
387 TrialComponent& WithLineageGroupArn(LineageGroupArnT&& value) {
388 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
389 return *this;
390 }
392
394
399 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
400 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
401 template <typename TagsT = Aws::Vector<Tag>>
402 void SetTags(TagsT&& value) {
403 m_tagsHasBeenSet = true;
404 m_tags = std::forward<TagsT>(value);
405 }
406 template <typename TagsT = Aws::Vector<Tag>>
407 TrialComponent& WithTags(TagsT&& value) {
408 SetTags(std::forward<TagsT>(value));
409 return *this;
410 }
411 template <typename TagsT = Tag>
412 TrialComponent& AddTags(TagsT&& value) {
413 m_tagsHasBeenSet = true;
414 m_tags.emplace_back(std::forward<TagsT>(value));
415 return *this;
416 }
418
420
425 inline const Aws::Vector<Parent>& GetParents() const { return m_parents; }
426 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
427 template <typename ParentsT = Aws::Vector<Parent>>
428 void SetParents(ParentsT&& value) {
429 m_parentsHasBeenSet = true;
430 m_parents = std::forward<ParentsT>(value);
431 }
432 template <typename ParentsT = Aws::Vector<Parent>>
433 TrialComponent& WithParents(ParentsT&& value) {
434 SetParents(std::forward<ParentsT>(value));
435 return *this;
436 }
437 template <typename ParentsT = Parent>
438 TrialComponent& AddParents(ParentsT&& value) {
439 m_parentsHasBeenSet = true;
440 m_parents.emplace_back(std::forward<ParentsT>(value));
441 return *this;
442 }
444
446
449 inline const Aws::String& GetRunName() const { return m_runName; }
450 inline bool RunNameHasBeenSet() const { return m_runNameHasBeenSet; }
451 template <typename RunNameT = Aws::String>
452 void SetRunName(RunNameT&& value) {
453 m_runNameHasBeenSet = true;
454 m_runName = std::forward<RunNameT>(value);
455 }
456 template <typename RunNameT = Aws::String>
457 TrialComponent& WithRunName(RunNameT&& value) {
458 SetRunName(std::forward<RunNameT>(value));
459 return *this;
460 }
462 private:
463 Aws::String m_trialComponentName;
464
465 Aws::String m_displayName;
466
467 Aws::String m_trialComponentArn;
468
469 TrialComponentSource m_source;
470
471 TrialComponentStatus m_status;
472
473 Aws::Utils::DateTime m_startTime{};
474
475 Aws::Utils::DateTime m_endTime{};
476
477 Aws::Utils::DateTime m_creationTime{};
478
479 UserContext m_createdBy;
480
481 Aws::Utils::DateTime m_lastModifiedTime{};
482
483 UserContext m_lastModifiedBy;
484
486
488
490
492
493 MetadataProperties m_metadataProperties;
494
495 TrialComponentSourceDetail m_sourceDetail;
496
497 Aws::String m_lineageGroupArn;
498
499 Aws::Vector<Tag> m_tags;
500
501 Aws::Vector<Parent> m_parents;
502
503 Aws::String m_runName;
504 bool m_trialComponentNameHasBeenSet = false;
505 bool m_displayNameHasBeenSet = false;
506 bool m_trialComponentArnHasBeenSet = false;
507 bool m_sourceHasBeenSet = false;
508 bool m_statusHasBeenSet = false;
509 bool m_startTimeHasBeenSet = false;
510 bool m_endTimeHasBeenSet = false;
511 bool m_creationTimeHasBeenSet = false;
512 bool m_createdByHasBeenSet = false;
513 bool m_lastModifiedTimeHasBeenSet = false;
514 bool m_lastModifiedByHasBeenSet = false;
515 bool m_parametersHasBeenSet = false;
516 bool m_inputArtifactsHasBeenSet = false;
517 bool m_outputArtifactsHasBeenSet = false;
518 bool m_metricsHasBeenSet = false;
519 bool m_metadataPropertiesHasBeenSet = false;
520 bool m_sourceDetailHasBeenSet = false;
521 bool m_lineageGroupArnHasBeenSet = false;
522 bool m_tagsHasBeenSet = false;
523 bool m_parentsHasBeenSet = false;
524 bool m_runNameHasBeenSet = false;
525};
526
527} // namespace Model
528} // namespace SageMaker
529} // namespace Aws
const Aws::Map< Aws::String, TrialComponentArtifact > & GetInputArtifacts() const
TrialComponent & WithStartTime(StartTimeT &&value)
TrialComponent & WithTrialComponentName(TrialComponentNameT &&value)
TrialComponent & WithInputArtifacts(InputArtifactsT &&value)
void SetDisplayName(DisplayNameT &&value)
void SetTrialComponentArn(TrialComponentArnT &&value)
TrialComponent & WithCreationTime(CreationTimeT &&value)
void SetCreatedBy(CreatedByT &&value)
const TrialComponentSource & GetSource() const
TrialComponent & AddMetrics(MetricsT &&value)
const Aws::String & GetTrialComponentName() const
void SetInputArtifacts(InputArtifactsT &&value)
TrialComponent & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
void SetStartTime(StartTimeT &&value)
TrialComponent & AddOutputArtifacts(OutputArtifactsKeyT &&key, OutputArtifactsValueT &&value)
TrialComponent & WithLastModifiedBy(LastModifiedByT &&value)
TrialComponent & WithStatus(StatusT &&value)
const Aws::Map< Aws::String, TrialComponentArtifact > & GetOutputArtifacts() const
TrialComponent & WithParameters(ParametersT &&value)
AWS_SAGEMAKER_API TrialComponent()=default
void SetParameters(ParametersT &&value)
TrialComponent & WithCreatedBy(CreatedByT &&value)
TrialComponent & WithMetadataProperties(MetadataPropertiesT &&value)
void SetLineageGroupArn(LineageGroupArnT &&value)
TrialComponent & WithMetrics(MetricsT &&value)
TrialComponent & WithTrialComponentArn(TrialComponentArnT &&value)
const Aws::String & GetRunName() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrialComponent & WithSource(SourceT &&value)
const Aws::String & GetLineageGroupArn() const
TrialComponent & WithEndTime(EndTimeT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
const Aws::Vector< Tag > & GetTags() const
TrialComponent & AddParents(ParentsT &&value)
TrialComponent & WithRunName(RunNameT &&value)
const TrialComponentStatus & GetStatus() const
void SetMetadataProperties(MetadataPropertiesT &&value)
const TrialComponentSourceDetail & GetSourceDetail() const
TrialComponent & WithLineageGroupArn(LineageGroupArnT &&value)
TrialComponent & WithTags(TagsT &&value)
const Aws::String & GetDisplayName() const
TrialComponent & WithParents(ParentsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
TrialComponent & WithSourceDetail(SourceDetailT &&value)
TrialComponent & WithOutputArtifacts(OutputArtifactsT &&value)
void SetOutputArtifacts(OutputArtifactsT &&value)
const Aws::String & GetTrialComponentArn() const
TrialComponent & AddTags(TagsT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
TrialComponent & AddInputArtifacts(InputArtifactsKeyT &&key, InputArtifactsValueT &&value)
TrialComponent & WithDisplayName(DisplayNameT &&value)
AWS_SAGEMAKER_API TrialComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
TrialComponent & WithLastModifiedTime(LastModifiedTimeT &&value)
const UserContext & GetLastModifiedBy() const
const Aws::Vector< Parent > & GetParents() const
void SetSourceDetail(SourceDetailT &&value)
const MetadataProperties & GetMetadataProperties() const
const Aws::Map< Aws::String, TrialComponentParameterValue > & GetParameters() const
AWS_SAGEMAKER_API TrialComponent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetCreationTime(CreationTimeT &&value)
const Aws::Vector< TrialComponentMetricSummary > & GetMetrics() const
const UserContext & GetCreatedBy() const
void SetTrialComponentName(TrialComponentNameT &&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