AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TrialComponent.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/TrialComponentSource.h>
10#include <aws/sagemaker/model/TrialComponentStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/UserContext.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/MetadataProperties.h>
16#include <aws/sagemaker/model/TrialComponentSourceDetail.h>
17#include <aws/sagemaker/model/TrialComponentParameterValue.h>
18#include <aws/sagemaker/model/TrialComponentArtifact.h>
19#include <aws/sagemaker/model/TrialComponentMetricSummary.h>
20#include <aws/sagemaker/model/Tag.h>
21#include <aws/sagemaker/model/Parent.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace SageMaker
35{
36namespace Model
37{
38
47 {
48 public:
49 AWS_SAGEMAKER_API TrialComponent() = default;
50 AWS_SAGEMAKER_API TrialComponent(Aws::Utils::Json::JsonView jsonValue);
52 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetTrialComponentName() const { return m_trialComponentName; }
60 inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; }
61 template<typename TrialComponentNameT = Aws::String>
62 void SetTrialComponentName(TrialComponentNameT&& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = std::forward<TrialComponentNameT>(value); }
63 template<typename TrialComponentNameT = Aws::String>
64 TrialComponent& WithTrialComponentName(TrialComponentNameT&& value) { SetTrialComponentName(std::forward<TrialComponentNameT>(value)); return *this;}
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) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
76 template<typename DisplayNameT = Aws::String>
77 TrialComponent& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetTrialComponentArn() const { return m_trialComponentArn; }
85 inline bool TrialComponentArnHasBeenSet() const { return m_trialComponentArnHasBeenSet; }
86 template<typename TrialComponentArnT = Aws::String>
87 void SetTrialComponentArn(TrialComponentArnT&& value) { m_trialComponentArnHasBeenSet = true; m_trialComponentArn = std::forward<TrialComponentArnT>(value); }
88 template<typename TrialComponentArnT = Aws::String>
89 TrialComponent& WithTrialComponentArn(TrialComponentArnT&& value) { SetTrialComponentArn(std::forward<TrialComponentArnT>(value)); return *this;}
91
93
97 inline const TrialComponentSource& GetSource() const { return m_source; }
98 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
99 template<typename SourceT = TrialComponentSource>
100 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
101 template<typename SourceT = TrialComponentSource>
102 TrialComponent& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
104
106
107 inline const TrialComponentStatus& GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 template<typename StatusT = TrialComponentStatus>
110 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
111 template<typename StatusT = TrialComponentStatus>
112 TrialComponent& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
120 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
121 template<typename StartTimeT = Aws::Utils::DateTime>
122 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
123 template<typename StartTimeT = Aws::Utils::DateTime>
124 TrialComponent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
132 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
133 template<typename EndTimeT = Aws::Utils::DateTime>
134 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
135 template<typename EndTimeT = Aws::Utils::DateTime>
136 TrialComponent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
144 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
145 template<typename CreationTimeT = Aws::Utils::DateTime>
146 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
147 template<typename CreationTimeT = Aws::Utils::DateTime>
148 TrialComponent& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
150
152
155 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
156 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
157 template<typename CreatedByT = UserContext>
158 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
159 template<typename CreatedByT = UserContext>
160 TrialComponent& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
168 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
169 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
170 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
171 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
172 TrialComponent& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
174
176
177 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
178 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
179 template<typename LastModifiedByT = UserContext>
180 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
181 template<typename LastModifiedByT = UserContext>
182 TrialComponent& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
184
186
189 inline const Aws::Map<Aws::String, TrialComponentParameterValue>& GetParameters() const { return m_parameters; }
190 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
191 template<typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
192 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
193 template<typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
194 TrialComponent& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
195 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = TrialComponentParameterValue>
196 TrialComponent& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
197 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
198 }
200
202
205 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
206 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
207 template<typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
208 void SetInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::forward<InputArtifactsT>(value); }
209 template<typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
210 TrialComponent& WithInputArtifacts(InputArtifactsT&& value) { SetInputArtifacts(std::forward<InputArtifactsT>(value)); return *this;}
211 template<typename InputArtifactsKeyT = Aws::String, typename InputArtifactsValueT = TrialComponentArtifact>
212 TrialComponent& AddInputArtifacts(InputArtifactsKeyT&& key, InputArtifactsValueT&& value) {
213 m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(std::forward<InputArtifactsKeyT>(key), std::forward<InputArtifactsValueT>(value)); return *this;
214 }
216
218
221 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
222 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
223 template<typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
224 void SetOutputArtifacts(OutputArtifactsT&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = std::forward<OutputArtifactsT>(value); }
225 template<typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
226 TrialComponent& WithOutputArtifacts(OutputArtifactsT&& value) { SetOutputArtifacts(std::forward<OutputArtifactsT>(value)); return *this;}
227 template<typename OutputArtifactsKeyT = Aws::String, typename OutputArtifactsValueT = TrialComponentArtifact>
228 TrialComponent& AddOutputArtifacts(OutputArtifactsKeyT&& key, OutputArtifactsValueT&& value) {
229 m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(std::forward<OutputArtifactsKeyT>(key), std::forward<OutputArtifactsValueT>(value)); return *this;
230 }
232
234
237 inline const Aws::Vector<TrialComponentMetricSummary>& GetMetrics() const { return m_metrics; }
238 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
239 template<typename MetricsT = Aws::Vector<TrialComponentMetricSummary>>
240 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
241 template<typename MetricsT = Aws::Vector<TrialComponentMetricSummary>>
242 TrialComponent& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
243 template<typename MetricsT = TrialComponentMetricSummary>
244 TrialComponent& AddMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics.emplace_back(std::forward<MetricsT>(value)); return *this; }
246
248
249 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
250 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
251 template<typename MetadataPropertiesT = MetadataProperties>
252 void SetMetadataProperties(MetadataPropertiesT&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::forward<MetadataPropertiesT>(value); }
253 template<typename MetadataPropertiesT = MetadataProperties>
254 TrialComponent& WithMetadataProperties(MetadataPropertiesT&& value) { SetMetadataProperties(std::forward<MetadataPropertiesT>(value)); return *this;}
256
258
261 inline const TrialComponentSourceDetail& GetSourceDetail() const { return m_sourceDetail; }
262 inline bool SourceDetailHasBeenSet() const { return m_sourceDetailHasBeenSet; }
263 template<typename SourceDetailT = TrialComponentSourceDetail>
264 void SetSourceDetail(SourceDetailT&& value) { m_sourceDetailHasBeenSet = true; m_sourceDetail = std::forward<SourceDetailT>(value); }
265 template<typename SourceDetailT = TrialComponentSourceDetail>
266 TrialComponent& WithSourceDetail(SourceDetailT&& value) { SetSourceDetail(std::forward<SourceDetailT>(value)); return *this;}
268
270
273 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
274 inline bool LineageGroupArnHasBeenSet() const { return m_lineageGroupArnHasBeenSet; }
275 template<typename LineageGroupArnT = Aws::String>
276 void SetLineageGroupArn(LineageGroupArnT&& value) { m_lineageGroupArnHasBeenSet = true; m_lineageGroupArn = std::forward<LineageGroupArnT>(value); }
277 template<typename LineageGroupArnT = Aws::String>
278 TrialComponent& WithLineageGroupArn(LineageGroupArnT&& value) { SetLineageGroupArn(std::forward<LineageGroupArnT>(value)); return *this;}
280
282
287 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
288 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
289 template<typename TagsT = Aws::Vector<Tag>>
290 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
291 template<typename TagsT = Aws::Vector<Tag>>
292 TrialComponent& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
293 template<typename TagsT = Tag>
294 TrialComponent& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
296
298
303 inline const Aws::Vector<Parent>& GetParents() const { return m_parents; }
304 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
305 template<typename ParentsT = Aws::Vector<Parent>>
306 void SetParents(ParentsT&& value) { m_parentsHasBeenSet = true; m_parents = std::forward<ParentsT>(value); }
307 template<typename ParentsT = Aws::Vector<Parent>>
308 TrialComponent& WithParents(ParentsT&& value) { SetParents(std::forward<ParentsT>(value)); return *this;}
309 template<typename ParentsT = Parent>
310 TrialComponent& AddParents(ParentsT&& value) { m_parentsHasBeenSet = true; m_parents.emplace_back(std::forward<ParentsT>(value)); return *this; }
312
314
317 inline const Aws::String& GetRunName() const { return m_runName; }
318 inline bool RunNameHasBeenSet() const { return m_runNameHasBeenSet; }
319 template<typename RunNameT = Aws::String>
320 void SetRunName(RunNameT&& value) { m_runNameHasBeenSet = true; m_runName = std::forward<RunNameT>(value); }
321 template<typename RunNameT = Aws::String>
322 TrialComponent& WithRunName(RunNameT&& value) { SetRunName(std::forward<RunNameT>(value)); return *this;}
324 private:
325
326 Aws::String m_trialComponentName;
327 bool m_trialComponentNameHasBeenSet = false;
328
329 Aws::String m_displayName;
330 bool m_displayNameHasBeenSet = false;
331
332 Aws::String m_trialComponentArn;
333 bool m_trialComponentArnHasBeenSet = false;
334
335 TrialComponentSource m_source;
336 bool m_sourceHasBeenSet = false;
337
338 TrialComponentStatus m_status;
339 bool m_statusHasBeenSet = false;
340
341 Aws::Utils::DateTime m_startTime{};
342 bool m_startTimeHasBeenSet = false;
343
344 Aws::Utils::DateTime m_endTime{};
345 bool m_endTimeHasBeenSet = false;
346
347 Aws::Utils::DateTime m_creationTime{};
348 bool m_creationTimeHasBeenSet = false;
349
350 UserContext m_createdBy;
351 bool m_createdByHasBeenSet = false;
352
353 Aws::Utils::DateTime m_lastModifiedTime{};
354 bool m_lastModifiedTimeHasBeenSet = false;
355
356 UserContext m_lastModifiedBy;
357 bool m_lastModifiedByHasBeenSet = false;
358
360 bool m_parametersHasBeenSet = false;
361
363 bool m_inputArtifactsHasBeenSet = false;
364
366 bool m_outputArtifactsHasBeenSet = false;
367
369 bool m_metricsHasBeenSet = false;
370
371 MetadataProperties m_metadataProperties;
372 bool m_metadataPropertiesHasBeenSet = false;
373
374 TrialComponentSourceDetail m_sourceDetail;
375 bool m_sourceDetailHasBeenSet = false;
376
377 Aws::String m_lineageGroupArn;
378 bool m_lineageGroupArnHasBeenSet = false;
379
380 Aws::Vector<Tag> m_tags;
381 bool m_tagsHasBeenSet = false;
382
383 Aws::Vector<Parent> m_parents;
384 bool m_parentsHasBeenSet = false;
385
386 Aws::String m_runName;
387 bool m_runNameHasBeenSet = false;
388 };
389
390} // namespace Model
391} // namespace SageMaker
392} // 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