AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeTrialComponentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/SageMaker_EXPORTS.h>
13#include <aws/sagemaker/model/MetadataProperties.h>
14#include <aws/sagemaker/model/TrialComponentArtifact.h>
15#include <aws/sagemaker/model/TrialComponentMetricSummary.h>
16#include <aws/sagemaker/model/TrialComponentParameterValue.h>
17#include <aws/sagemaker/model/TrialComponentSource.h>
18#include <aws/sagemaker/model/TrialComponentStatus.h>
19#include <aws/sagemaker/model/UserContext.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace SageMaker {
33namespace Model {
35 public:
36 AWS_SAGEMAKER_API DescribeTrialComponentResult() = default;
39
41
44 inline const Aws::String& GetTrialComponentName() const { return m_trialComponentName; }
45 template <typename TrialComponentNameT = Aws::String>
46 void SetTrialComponentName(TrialComponentNameT&& value) {
47 m_trialComponentNameHasBeenSet = true;
48 m_trialComponentName = std::forward<TrialComponentNameT>(value);
49 }
50 template <typename TrialComponentNameT = Aws::String>
52 SetTrialComponentName(std::forward<TrialComponentNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTrialComponentArn() const { return m_trialComponentArn; }
62 template <typename TrialComponentArnT = Aws::String>
63 void SetTrialComponentArn(TrialComponentArnT&& value) {
64 m_trialComponentArnHasBeenSet = true;
65 m_trialComponentArn = std::forward<TrialComponentArnT>(value);
66 }
67 template <typename TrialComponentArnT = Aws::String>
69 SetTrialComponentArn(std::forward<TrialComponentArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDisplayName() const { return m_displayName; }
80 template <typename DisplayNameT = Aws::String>
81 void SetDisplayName(DisplayNameT&& value) {
82 m_displayNameHasBeenSet = true;
83 m_displayName = std::forward<DisplayNameT>(value);
84 }
85 template <typename DisplayNameT = Aws::String>
87 SetDisplayName(std::forward<DisplayNameT>(value));
88 return *this;
89 }
91
93
97 inline const TrialComponentSource& GetSource() const { return m_source; }
98 template <typename SourceT = TrialComponentSource>
99 void SetSource(SourceT&& value) {
100 m_sourceHasBeenSet = true;
101 m_source = std::forward<SourceT>(value);
102 }
103 template <typename SourceT = TrialComponentSource>
105 SetSource(std::forward<SourceT>(value));
106 return *this;
107 }
109
111
115 inline const TrialComponentStatus& GetStatus() const { return m_status; }
116 template <typename StatusT = TrialComponentStatus>
117 void SetStatus(StatusT&& value) {
118 m_statusHasBeenSet = true;
119 m_status = std::forward<StatusT>(value);
120 }
121 template <typename StatusT = TrialComponentStatus>
123 SetStatus(std::forward<StatusT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
133 template <typename StartTimeT = Aws::Utils::DateTime>
134 void SetStartTime(StartTimeT&& value) {
135 m_startTimeHasBeenSet = true;
136 m_startTime = std::forward<StartTimeT>(value);
137 }
138 template <typename StartTimeT = Aws::Utils::DateTime>
140 SetStartTime(std::forward<StartTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
150 template <typename EndTimeT = Aws::Utils::DateTime>
151 void SetEndTime(EndTimeT&& value) {
152 m_endTimeHasBeenSet = true;
153 m_endTime = std::forward<EndTimeT>(value);
154 }
155 template <typename EndTimeT = Aws::Utils::DateTime>
157 SetEndTime(std::forward<EndTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
167 template <typename CreationTimeT = Aws::Utils::DateTime>
168 void SetCreationTime(CreationTimeT&& value) {
169 m_creationTimeHasBeenSet = true;
170 m_creationTime = std::forward<CreationTimeT>(value);
171 }
172 template <typename CreationTimeT = Aws::Utils::DateTime>
174 SetCreationTime(std::forward<CreationTimeT>(value));
175 return *this;
176 }
178
180
183 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
184 template <typename CreatedByT = UserContext>
185 void SetCreatedBy(CreatedByT&& value) {
186 m_createdByHasBeenSet = true;
187 m_createdBy = std::forward<CreatedByT>(value);
188 }
189 template <typename CreatedByT = UserContext>
191 SetCreatedBy(std::forward<CreatedByT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
201 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
202 void SetLastModifiedTime(LastModifiedTimeT&& value) {
203 m_lastModifiedTimeHasBeenSet = true;
204 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
205 }
206 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
208 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
209 return *this;
210 }
212
214
217 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
218 template <typename LastModifiedByT = UserContext>
219 void SetLastModifiedBy(LastModifiedByT&& value) {
220 m_lastModifiedByHasBeenSet = true;
221 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
222 }
223 template <typename LastModifiedByT = UserContext>
225 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::Map<Aws::String, TrialComponentParameterValue>& GetParameters() const { return m_parameters; }
235 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
236 void SetParameters(ParametersT&& value) {
237 m_parametersHasBeenSet = true;
238 m_parameters = std::forward<ParametersT>(value);
239 }
240 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
242 SetParameters(std::forward<ParametersT>(value));
243 return *this;
244 }
245 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TrialComponentParameterValue>
246 DescribeTrialComponentResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
247 m_parametersHasBeenSet = true;
248 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
258 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
259 void SetInputArtifacts(InputArtifactsT&& value) {
260 m_inputArtifactsHasBeenSet = true;
261 m_inputArtifacts = std::forward<InputArtifactsT>(value);
262 }
263 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
265 SetInputArtifacts(std::forward<InputArtifactsT>(value));
266 return *this;
267 }
268 template <typename InputArtifactsKeyT = Aws::String, typename InputArtifactsValueT = TrialComponentArtifact>
269 DescribeTrialComponentResult& AddInputArtifacts(InputArtifactsKeyT&& key, InputArtifactsValueT&& value) {
270 m_inputArtifactsHasBeenSet = true;
271 m_inputArtifacts.emplace(std::forward<InputArtifactsKeyT>(key), std::forward<InputArtifactsValueT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
281 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
282 void SetOutputArtifacts(OutputArtifactsT&& value) {
283 m_outputArtifactsHasBeenSet = true;
284 m_outputArtifacts = std::forward<OutputArtifactsT>(value);
285 }
286 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
288 SetOutputArtifacts(std::forward<OutputArtifactsT>(value));
289 return *this;
290 }
291 template <typename OutputArtifactsKeyT = Aws::String, typename OutputArtifactsValueT = TrialComponentArtifact>
292 DescribeTrialComponentResult& AddOutputArtifacts(OutputArtifactsKeyT&& key, OutputArtifactsValueT&& value) {
293 m_outputArtifactsHasBeenSet = true;
294 m_outputArtifacts.emplace(std::forward<OutputArtifactsKeyT>(key), std::forward<OutputArtifactsValueT>(value));
295 return *this;
296 }
298
300
301 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
302 template <typename MetadataPropertiesT = MetadataProperties>
303 void SetMetadataProperties(MetadataPropertiesT&& value) {
304 m_metadataPropertiesHasBeenSet = true;
305 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
306 }
307 template <typename MetadataPropertiesT = MetadataProperties>
309 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
310 return *this;
311 }
313
315
318 inline const Aws::Vector<TrialComponentMetricSummary>& GetMetrics() const { return m_metrics; }
319 template <typename MetricsT = Aws::Vector<TrialComponentMetricSummary>>
320 void SetMetrics(MetricsT&& value) {
321 m_metricsHasBeenSet = true;
322 m_metrics = std::forward<MetricsT>(value);
323 }
324 template <typename MetricsT = Aws::Vector<TrialComponentMetricSummary>>
326 SetMetrics(std::forward<MetricsT>(value));
327 return *this;
328 }
329 template <typename MetricsT = TrialComponentMetricSummary>
331 m_metricsHasBeenSet = true;
332 m_metrics.emplace_back(std::forward<MetricsT>(value));
333 return *this;
334 }
336
338
341 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
342 template <typename LineageGroupArnT = Aws::String>
343 void SetLineageGroupArn(LineageGroupArnT&& value) {
344 m_lineageGroupArnHasBeenSet = true;
345 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
346 }
347 template <typename LineageGroupArnT = Aws::String>
349 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
350 return *this;
351 }
353
355
359 inline const Aws::Vector<TrialComponentSource>& GetSources() const { return m_sources; }
360 template <typename SourcesT = Aws::Vector<TrialComponentSource>>
361 void SetSources(SourcesT&& value) {
362 m_sourcesHasBeenSet = true;
363 m_sources = std::forward<SourcesT>(value);
364 }
365 template <typename SourcesT = Aws::Vector<TrialComponentSource>>
367 SetSources(std::forward<SourcesT>(value));
368 return *this;
369 }
370 template <typename SourcesT = TrialComponentSource>
372 m_sourcesHasBeenSet = true;
373 m_sources.emplace_back(std::forward<SourcesT>(value));
374 return *this;
375 }
377
379
380 inline const Aws::String& GetRequestId() const { return m_requestId; }
381 template <typename RequestIdT = Aws::String>
382 void SetRequestId(RequestIdT&& value) {
383 m_requestIdHasBeenSet = true;
384 m_requestId = std::forward<RequestIdT>(value);
385 }
386 template <typename RequestIdT = Aws::String>
388 SetRequestId(std::forward<RequestIdT>(value));
389 return *this;
390 }
392 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
393
394 private:
395 Aws::String m_trialComponentName;
396
397 Aws::String m_trialComponentArn;
398
399 Aws::String m_displayName;
400
401 TrialComponentSource m_source;
402
403 TrialComponentStatus m_status;
404
405 Aws::Utils::DateTime m_startTime{};
406
407 Aws::Utils::DateTime m_endTime{};
408
409 Aws::Utils::DateTime m_creationTime{};
410
411 UserContext m_createdBy;
412
413 Aws::Utils::DateTime m_lastModifiedTime{};
414
415 UserContext m_lastModifiedBy;
416
418
420
422
423 MetadataProperties m_metadataProperties;
424
426
427 Aws::String m_lineageGroupArn;
428
430
431 Aws::String m_requestId;
432 Aws::Http::HttpResponseCode m_HttpResponseCode;
433 bool m_trialComponentNameHasBeenSet = false;
434 bool m_trialComponentArnHasBeenSet = false;
435 bool m_displayNameHasBeenSet = false;
436 bool m_sourceHasBeenSet = false;
437 bool m_statusHasBeenSet = false;
438 bool m_startTimeHasBeenSet = false;
439 bool m_endTimeHasBeenSet = false;
440 bool m_creationTimeHasBeenSet = false;
441 bool m_createdByHasBeenSet = false;
442 bool m_lastModifiedTimeHasBeenSet = false;
443 bool m_lastModifiedByHasBeenSet = false;
444 bool m_parametersHasBeenSet = false;
445 bool m_inputArtifactsHasBeenSet = false;
446 bool m_outputArtifactsHasBeenSet = false;
447 bool m_metadataPropertiesHasBeenSet = false;
448 bool m_metricsHasBeenSet = false;
449 bool m_lineageGroupArnHasBeenSet = false;
450 bool m_sourcesHasBeenSet = false;
451 bool m_requestIdHasBeenSet = false;
452};
453
454} // namespace Model
455} // namespace SageMaker
456} // namespace Aws
DescribeTrialComponentResult & WithLastModifiedBy(LastModifiedByT &&value)
DescribeTrialComponentResult & WithSources(SourcesT &&value)
DescribeTrialComponentResult & WithOutputArtifacts(OutputArtifactsT &&value)
DescribeTrialComponentResult & WithParameters(ParametersT &&value)
const Aws::Map< Aws::String, TrialComponentArtifact > & GetInputArtifacts() const
const Aws::Vector< TrialComponentSource > & GetSources() const
DescribeTrialComponentResult & WithStartTime(StartTimeT &&value)
DescribeTrialComponentResult & AddInputArtifacts(InputArtifactsKeyT &&key, InputArtifactsValueT &&value)
DescribeTrialComponentResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
DescribeTrialComponentResult & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API DescribeTrialComponentResult()=default
const Aws::Vector< TrialComponentMetricSummary > & GetMetrics() const
DescribeTrialComponentResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, TrialComponentArtifact > & GetOutputArtifacts() const
const Aws::Map< Aws::String, TrialComponentParameterValue > & GetParameters() const
DescribeTrialComponentResult & WithCreationTime(CreationTimeT &&value)
DescribeTrialComponentResult & AddSources(SourcesT &&value)
DescribeTrialComponentResult & WithTrialComponentArn(TrialComponentArnT &&value)
DescribeTrialComponentResult & WithMetrics(MetricsT &&value)
DescribeTrialComponentResult & WithStatus(StatusT &&value)
DescribeTrialComponentResult & WithCreatedBy(CreatedByT &&value)
DescribeTrialComponentResult & WithInputArtifacts(InputArtifactsT &&value)
DescribeTrialComponentResult & WithTrialComponentName(TrialComponentNameT &&value)
AWS_SAGEMAKER_API DescribeTrialComponentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTrialComponentResult & AddMetrics(MetricsT &&value)
DescribeTrialComponentResult & WithSource(SourceT &&value)
DescribeTrialComponentResult & WithLineageGroupArn(LineageGroupArnT &&value)
DescribeTrialComponentResult & WithEndTime(EndTimeT &&value)
DescribeTrialComponentResult & AddOutputArtifacts(OutputArtifactsKeyT &&key, OutputArtifactsValueT &&value)
AWS_SAGEMAKER_API DescribeTrialComponentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTrialComponentResult & WithMetadataProperties(MetadataPropertiesT &&value)
DescribeTrialComponentResult & WithDisplayName(DisplayNameT &&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