AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetMLModelResult.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/machinelearning/MachineLearning_EXPORTS.h>
11#include <aws/machinelearning/model/EntityStatus.h>
12#include <aws/machinelearning/model/MLModelType.h>
13#include <aws/machinelearning/model/RealtimeEndpointInfo.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MachineLearning {
27namespace Model {
35 public:
36 AWS_MACHINELEARNING_API GetMLModelResult() = default;
39
41
45 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
46 template <typename MLModelIdT = Aws::String>
47 void SetMLModelId(MLModelIdT&& value) {
48 m_mLModelIdHasBeenSet = true;
49 m_mLModelId = std::forward<MLModelIdT>(value);
50 }
51 template <typename MLModelIdT = Aws::String>
52 GetMLModelResult& WithMLModelId(MLModelIdT&& value) {
53 SetMLModelId(std::forward<MLModelIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetTrainingDataSourceId() const { return m_trainingDataSourceId; }
63 template <typename TrainingDataSourceIdT = Aws::String>
64 void SetTrainingDataSourceId(TrainingDataSourceIdT&& value) {
65 m_trainingDataSourceIdHasBeenSet = true;
66 m_trainingDataSourceId = std::forward<TrainingDataSourceIdT>(value);
67 }
68 template <typename TrainingDataSourceIdT = Aws::String>
69 GetMLModelResult& WithTrainingDataSourceId(TrainingDataSourceIdT&& value) {
70 SetTrainingDataSourceId(std::forward<TrainingDataSourceIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
82 template <typename CreatedByIamUserT = Aws::String>
83 void SetCreatedByIamUser(CreatedByIamUserT&& value) {
84 m_createdByIamUserHasBeenSet = true;
85 m_createdByIamUser = std::forward<CreatedByIamUserT>(value);
86 }
87 template <typename CreatedByIamUserT = Aws::String>
88 GetMLModelResult& WithCreatedByIamUser(CreatedByIamUserT&& value) {
89 SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 GetMLModelResult& WithCreatedAt(CreatedAtT&& value) {
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
118 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
119 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
120 m_lastUpdatedAtHasBeenSet = true;
121 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
122 }
123 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
124 GetMLModelResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
125 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetName() const { return m_name; }
135 template <typename NameT = Aws::String>
136 void SetName(NameT&& value) {
137 m_nameHasBeenSet = true;
138 m_name = std::forward<NameT>(value);
139 }
140 template <typename NameT = Aws::String>
141 GetMLModelResult& WithName(NameT&& value) {
142 SetName(std::forward<NameT>(value));
143 return *this;
144 }
146
148
158 inline EntityStatus GetStatus() const { return m_status; }
159 inline void SetStatus(EntityStatus value) {
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
171 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
172 inline void SetSizeInBytes(long long value) {
173 m_sizeInBytesHasBeenSet = true;
174 m_sizeInBytes = value;
175 }
176 inline GetMLModelResult& WithSizeInBytes(long long value) {
177 SetSizeInBytes(value);
178 return *this;
179 }
181
183
186 inline const RealtimeEndpointInfo& GetEndpointInfo() const { return m_endpointInfo; }
187 template <typename EndpointInfoT = RealtimeEndpointInfo>
188 void SetEndpointInfo(EndpointInfoT&& value) {
189 m_endpointInfoHasBeenSet = true;
190 m_endpointInfo = std::forward<EndpointInfoT>(value);
191 }
192 template <typename EndpointInfoT = RealtimeEndpointInfo>
193 GetMLModelResult& WithEndpointInfo(EndpointInfoT&& value) {
194 SetEndpointInfo(std::forward<EndpointInfoT>(value));
195 return *this;
196 }
198
200
232 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const { return m_trainingParameters; }
233 template <typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
234 void SetTrainingParameters(TrainingParametersT&& value) {
235 m_trainingParametersHasBeenSet = true;
236 m_trainingParameters = std::forward<TrainingParametersT>(value);
237 }
238 template <typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
239 GetMLModelResult& WithTrainingParameters(TrainingParametersT&& value) {
240 SetTrainingParameters(std::forward<TrainingParametersT>(value));
241 return *this;
242 }
243 template <typename TrainingParametersKeyT = Aws::String, typename TrainingParametersValueT = Aws::String>
244 GetMLModelResult& AddTrainingParameters(TrainingParametersKeyT&& key, TrainingParametersValueT&& value) {
245 m_trainingParametersHasBeenSet = true;
246 m_trainingParameters.emplace(std::forward<TrainingParametersKeyT>(key), std::forward<TrainingParametersValueT>(value));
247 return *this;
248 }
250
252
256 inline const Aws::String& GetInputDataLocationS3() const { return m_inputDataLocationS3; }
257 template <typename InputDataLocationS3T = Aws::String>
258 void SetInputDataLocationS3(InputDataLocationS3T&& value) {
259 m_inputDataLocationS3HasBeenSet = true;
260 m_inputDataLocationS3 = std::forward<InputDataLocationS3T>(value);
261 }
262 template <typename InputDataLocationS3T = Aws::String>
263 GetMLModelResult& WithInputDataLocationS3(InputDataLocationS3T&& value) {
264 SetInputDataLocationS3(std::forward<InputDataLocationS3T>(value));
265 return *this;
266 }
268
270
278 inline MLModelType GetMLModelType() const { return m_mLModelType; }
279 inline void SetMLModelType(MLModelType value) {
280 m_mLModelTypeHasBeenSet = true;
281 m_mLModelType = value;
282 }
284 SetMLModelType(value);
285 return *this;
286 }
288
290
298 inline double GetScoreThreshold() const { return m_scoreThreshold; }
299 inline void SetScoreThreshold(double value) {
300 m_scoreThresholdHasBeenSet = true;
301 m_scoreThreshold = value;
302 }
303 inline GetMLModelResult& WithScoreThreshold(double value) {
304 SetScoreThreshold(value);
305 return *this;
306 }
308
310
314 inline const Aws::Utils::DateTime& GetScoreThresholdLastUpdatedAt() const { return m_scoreThresholdLastUpdatedAt; }
315 template <typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
316 void SetScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) {
317 m_scoreThresholdLastUpdatedAtHasBeenSet = true;
318 m_scoreThresholdLastUpdatedAt = std::forward<ScoreThresholdLastUpdatedAtT>(value);
319 }
320 template <typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
321 GetMLModelResult& WithScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) {
322 SetScoreThresholdLastUpdatedAt(std::forward<ScoreThresholdLastUpdatedAtT>(value));
323 return *this;
324 }
326
328
332 inline const Aws::String& GetLogUri() const { return m_logUri; }
333 template <typename LogUriT = Aws::String>
334 void SetLogUri(LogUriT&& value) {
335 m_logUriHasBeenSet = true;
336 m_logUri = std::forward<LogUriT>(value);
337 }
338 template <typename LogUriT = Aws::String>
339 GetMLModelResult& WithLogUri(LogUriT&& value) {
340 SetLogUri(std::forward<LogUriT>(value));
341 return *this;
342 }
344
346
350 inline const Aws::String& GetMessage() const { return m_message; }
351 template <typename MessageT = Aws::String>
352 void SetMessage(MessageT&& value) {
353 m_messageHasBeenSet = true;
354 m_message = std::forward<MessageT>(value);
355 }
356 template <typename MessageT = Aws::String>
357 GetMLModelResult& WithMessage(MessageT&& value) {
358 SetMessage(std::forward<MessageT>(value));
359 return *this;
360 }
362
364
370 inline long long GetComputeTime() const { return m_computeTime; }
371 inline void SetComputeTime(long long value) {
372 m_computeTimeHasBeenSet = true;
373 m_computeTime = value;
374 }
375 inline GetMLModelResult& WithComputeTime(long long value) {
376 SetComputeTime(value);
377 return *this;
378 }
380
382
388 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
389 template <typename FinishedAtT = Aws::Utils::DateTime>
390 void SetFinishedAt(FinishedAtT&& value) {
391 m_finishedAtHasBeenSet = true;
392 m_finishedAt = std::forward<FinishedAtT>(value);
393 }
394 template <typename FinishedAtT = Aws::Utils::DateTime>
395 GetMLModelResult& WithFinishedAt(FinishedAtT&& value) {
396 SetFinishedAt(std::forward<FinishedAtT>(value));
397 return *this;
398 }
400
402
407 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
408 template <typename StartedAtT = Aws::Utils::DateTime>
409 void SetStartedAt(StartedAtT&& value) {
410 m_startedAtHasBeenSet = true;
411 m_startedAt = std::forward<StartedAtT>(value);
412 }
413 template <typename StartedAtT = Aws::Utils::DateTime>
414 GetMLModelResult& WithStartedAt(StartedAtT&& value) {
415 SetStartedAt(std::forward<StartedAtT>(value));
416 return *this;
417 }
419
421
428 inline const Aws::String& GetRecipe() const { return m_recipe; }
429 template <typename RecipeT = Aws::String>
430 void SetRecipe(RecipeT&& value) {
431 m_recipeHasBeenSet = true;
432 m_recipe = std::forward<RecipeT>(value);
433 }
434 template <typename RecipeT = Aws::String>
435 GetMLModelResult& WithRecipe(RecipeT&& value) {
436 SetRecipe(std::forward<RecipeT>(value));
437 return *this;
438 }
440
442
447 inline const Aws::String& GetSchema() const { return m_schema; }
448 template <typename SchemaT = Aws::String>
449 void SetSchema(SchemaT&& value) {
450 m_schemaHasBeenSet = true;
451 m_schema = std::forward<SchemaT>(value);
452 }
453 template <typename SchemaT = Aws::String>
454 GetMLModelResult& WithSchema(SchemaT&& value) {
455 SetSchema(std::forward<SchemaT>(value));
456 return *this;
457 }
459
461
462 inline const Aws::String& GetRequestId() const { return m_requestId; }
463 template <typename RequestIdT = Aws::String>
464 void SetRequestId(RequestIdT&& value) {
465 m_requestIdHasBeenSet = true;
466 m_requestId = std::forward<RequestIdT>(value);
467 }
468 template <typename RequestIdT = Aws::String>
469 GetMLModelResult& WithRequestId(RequestIdT&& value) {
470 SetRequestId(std::forward<RequestIdT>(value));
471 return *this;
472 }
474 private:
475 Aws::String m_mLModelId;
476
477 Aws::String m_trainingDataSourceId;
478
479 Aws::String m_createdByIamUser;
480
481 Aws::Utils::DateTime m_createdAt{};
482
483 Aws::Utils::DateTime m_lastUpdatedAt{};
484
485 Aws::String m_name;
486
488
489 long long m_sizeInBytes{0};
490
491 RealtimeEndpointInfo m_endpointInfo;
492
493 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
494
495 Aws::String m_inputDataLocationS3;
496
497 MLModelType m_mLModelType{MLModelType::NOT_SET};
498
499 double m_scoreThreshold{0.0};
500
501 Aws::Utils::DateTime m_scoreThresholdLastUpdatedAt{};
502
503 Aws::String m_logUri;
504
505 Aws::String m_message;
506
507 long long m_computeTime{0};
508
509 Aws::Utils::DateTime m_finishedAt{};
510
511 Aws::Utils::DateTime m_startedAt{};
512
513 Aws::String m_recipe;
514
515 Aws::String m_schema;
516
517 Aws::String m_requestId;
518 bool m_mLModelIdHasBeenSet = false;
519 bool m_trainingDataSourceIdHasBeenSet = false;
520 bool m_createdByIamUserHasBeenSet = false;
521 bool m_createdAtHasBeenSet = false;
522 bool m_lastUpdatedAtHasBeenSet = false;
523 bool m_nameHasBeenSet = false;
524 bool m_statusHasBeenSet = false;
525 bool m_sizeInBytesHasBeenSet = false;
526 bool m_endpointInfoHasBeenSet = false;
527 bool m_trainingParametersHasBeenSet = false;
528 bool m_inputDataLocationS3HasBeenSet = false;
529 bool m_mLModelTypeHasBeenSet = false;
530 bool m_scoreThresholdHasBeenSet = false;
531 bool m_scoreThresholdLastUpdatedAtHasBeenSet = false;
532 bool m_logUriHasBeenSet = false;
533 bool m_messageHasBeenSet = false;
534 bool m_computeTimeHasBeenSet = false;
535 bool m_finishedAtHasBeenSet = false;
536 bool m_startedAtHasBeenSet = false;
537 bool m_recipeHasBeenSet = false;
538 bool m_schemaHasBeenSet = false;
539 bool m_requestIdHasBeenSet = false;
540};
541
542} // namespace Model
543} // namespace MachineLearning
544} // namespace Aws
GetMLModelResult & WithLogUri(LogUriT &&value)
GetMLModelResult & WithEndpointInfo(EndpointInfoT &&value)
void SetTrainingParameters(TrainingParametersT &&value)
GetMLModelResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetMLModelResult & WithMessage(MessageT &&value)
GetMLModelResult & WithSchema(SchemaT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetMLModelResult & WithTrainingDataSourceId(TrainingDataSourceIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetMLModelResult & WithRecipe(RecipeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::String & GetInputDataLocationS3() const
GetMLModelResult & WithCreatedAt(CreatedAtT &&value)
const RealtimeEndpointInfo & GetEndpointInfo() const
void SetTrainingDataSourceId(TrainingDataSourceIdT &&value)
GetMLModelResult & WithCreatedByIamUser(CreatedByIamUserT &&value)
GetMLModelResult & WithScoreThreshold(double value)
const Aws::Utils::DateTime & GetFinishedAt() const
void SetInputDataLocationS3(InputDataLocationS3T &&value)
GetMLModelResult & WithScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT &&value)
GetMLModelResult & AddTrainingParameters(TrainingParametersKeyT &&key, TrainingParametersValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTrainingParameters() const
AWS_MACHINELEARNING_API GetMLModelResult()=default
GetMLModelResult & WithMLModelType(MLModelType value)
GetMLModelResult & WithComputeTime(long long value)
AWS_MACHINELEARNING_API GetMLModelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMLModelResult & WithStartedAt(StartedAtT &&value)
AWS_MACHINELEARNING_API GetMLModelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMLModelResult & WithSizeInBytes(long long value)
GetMLModelResult & WithTrainingParameters(TrainingParametersT &&value)
GetMLModelResult & WithMLModelId(MLModelIdT &&value)
const Aws::String & GetTrainingDataSourceId() const
GetMLModelResult & WithFinishedAt(FinishedAtT &&value)
GetMLModelResult & WithStatus(EntityStatus value)
const Aws::String & GetCreatedByIamUser() const
GetMLModelResult & WithInputDataLocationS3(InputDataLocationS3T &&value)
void SetCreatedByIamUser(CreatedByIamUserT &&value)
GetMLModelResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetScoreThresholdLastUpdatedAt() const
GetMLModelResult & WithName(NameT &&value)
void SetScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT &&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