AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetMLModelResult.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/machinelearning/MachineLearning_EXPORTS.h>
12#include <aws/machinelearning/model/EntityStatus.h>
13#include <aws/machinelearning/model/MLModelType.h>
14#include <aws/machinelearning/model/RealtimeEndpointInfo.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace MachineLearning {
28namespace Model {
36 public:
37 AWS_MACHINELEARNING_API GetMLModelResult() = default;
40
42
46 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
47 template <typename MLModelIdT = Aws::String>
48 void SetMLModelId(MLModelIdT&& value) {
49 m_mLModelIdHasBeenSet = true;
50 m_mLModelId = std::forward<MLModelIdT>(value);
51 }
52 template <typename MLModelIdT = Aws::String>
53 GetMLModelResult& WithMLModelId(MLModelIdT&& value) {
54 SetMLModelId(std::forward<MLModelIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTrainingDataSourceId() const { return m_trainingDataSourceId; }
64 template <typename TrainingDataSourceIdT = Aws::String>
65 void SetTrainingDataSourceId(TrainingDataSourceIdT&& value) {
66 m_trainingDataSourceIdHasBeenSet = true;
67 m_trainingDataSourceId = std::forward<TrainingDataSourceIdT>(value);
68 }
69 template <typename TrainingDataSourceIdT = Aws::String>
70 GetMLModelResult& WithTrainingDataSourceId(TrainingDataSourceIdT&& value) {
71 SetTrainingDataSourceId(std::forward<TrainingDataSourceIdT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
83 template <typename CreatedByIamUserT = Aws::String>
84 void SetCreatedByIamUser(CreatedByIamUserT&& value) {
85 m_createdByIamUserHasBeenSet = true;
86 m_createdByIamUser = std::forward<CreatedByIamUserT>(value);
87 }
88 template <typename CreatedByIamUserT = Aws::String>
89 GetMLModelResult& WithCreatedByIamUser(CreatedByIamUserT&& value) {
90 SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
101 template <typename CreatedAtT = Aws::Utils::DateTime>
102 void SetCreatedAt(CreatedAtT&& value) {
103 m_createdAtHasBeenSet = true;
104 m_createdAt = std::forward<CreatedAtT>(value);
105 }
106 template <typename CreatedAtT = Aws::Utils::DateTime>
107 GetMLModelResult& WithCreatedAt(CreatedAtT&& value) {
108 SetCreatedAt(std::forward<CreatedAtT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
119 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
120 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
121 m_lastUpdatedAtHasBeenSet = true;
122 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
123 }
124 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
125 GetMLModelResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
126 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 template <typename NameT = Aws::String>
137 void SetName(NameT&& value) {
138 m_nameHasBeenSet = true;
139 m_name = std::forward<NameT>(value);
140 }
141 template <typename NameT = Aws::String>
142 GetMLModelResult& WithName(NameT&& value) {
143 SetName(std::forward<NameT>(value));
144 return *this;
145 }
147
149
159 inline EntityStatus GetStatus() const { return m_status; }
160 inline void SetStatus(EntityStatus value) {
161 m_statusHasBeenSet = true;
162 m_status = value;
163 }
165 SetStatus(value);
166 return *this;
167 }
169
171
172 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
173 inline void SetSizeInBytes(long long value) {
174 m_sizeInBytesHasBeenSet = true;
175 m_sizeInBytes = value;
176 }
177 inline GetMLModelResult& WithSizeInBytes(long long value) {
178 SetSizeInBytes(value);
179 return *this;
180 }
182
184
187 inline const RealtimeEndpointInfo& GetEndpointInfo() const { return m_endpointInfo; }
188 template <typename EndpointInfoT = RealtimeEndpointInfo>
189 void SetEndpointInfo(EndpointInfoT&& value) {
190 m_endpointInfoHasBeenSet = true;
191 m_endpointInfo = std::forward<EndpointInfoT>(value);
192 }
193 template <typename EndpointInfoT = RealtimeEndpointInfo>
194 GetMLModelResult& WithEndpointInfo(EndpointInfoT&& value) {
195 SetEndpointInfo(std::forward<EndpointInfoT>(value));
196 return *this;
197 }
199
201
233 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const { return m_trainingParameters; }
234 template <typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
235 void SetTrainingParameters(TrainingParametersT&& value) {
236 m_trainingParametersHasBeenSet = true;
237 m_trainingParameters = std::forward<TrainingParametersT>(value);
238 }
239 template <typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
240 GetMLModelResult& WithTrainingParameters(TrainingParametersT&& value) {
241 SetTrainingParameters(std::forward<TrainingParametersT>(value));
242 return *this;
243 }
244 template <typename TrainingParametersKeyT = Aws::String, typename TrainingParametersValueT = Aws::String>
245 GetMLModelResult& AddTrainingParameters(TrainingParametersKeyT&& key, TrainingParametersValueT&& value) {
246 m_trainingParametersHasBeenSet = true;
247 m_trainingParameters.emplace(std::forward<TrainingParametersKeyT>(key), std::forward<TrainingParametersValueT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::String& GetInputDataLocationS3() const { return m_inputDataLocationS3; }
258 template <typename InputDataLocationS3T = Aws::String>
259 void SetInputDataLocationS3(InputDataLocationS3T&& value) {
260 m_inputDataLocationS3HasBeenSet = true;
261 m_inputDataLocationS3 = std::forward<InputDataLocationS3T>(value);
262 }
263 template <typename InputDataLocationS3T = Aws::String>
264 GetMLModelResult& WithInputDataLocationS3(InputDataLocationS3T&& value) {
265 SetInputDataLocationS3(std::forward<InputDataLocationS3T>(value));
266 return *this;
267 }
269
271
279 inline MLModelType GetMLModelType() const { return m_mLModelType; }
280 inline void SetMLModelType(MLModelType value) {
281 m_mLModelTypeHasBeenSet = true;
282 m_mLModelType = value;
283 }
285 SetMLModelType(value);
286 return *this;
287 }
289
291
299 inline double GetScoreThreshold() const { return m_scoreThreshold; }
300 inline void SetScoreThreshold(double value) {
301 m_scoreThresholdHasBeenSet = true;
302 m_scoreThreshold = value;
303 }
304 inline GetMLModelResult& WithScoreThreshold(double value) {
305 SetScoreThreshold(value);
306 return *this;
307 }
309
311
315 inline const Aws::Utils::DateTime& GetScoreThresholdLastUpdatedAt() const { return m_scoreThresholdLastUpdatedAt; }
316 template <typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
317 void SetScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) {
318 m_scoreThresholdLastUpdatedAtHasBeenSet = true;
319 m_scoreThresholdLastUpdatedAt = std::forward<ScoreThresholdLastUpdatedAtT>(value);
320 }
321 template <typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
322 GetMLModelResult& WithScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) {
323 SetScoreThresholdLastUpdatedAt(std::forward<ScoreThresholdLastUpdatedAtT>(value));
324 return *this;
325 }
327
329
333 inline const Aws::String& GetLogUri() const { return m_logUri; }
334 template <typename LogUriT = Aws::String>
335 void SetLogUri(LogUriT&& value) {
336 m_logUriHasBeenSet = true;
337 m_logUri = std::forward<LogUriT>(value);
338 }
339 template <typename LogUriT = Aws::String>
340 GetMLModelResult& WithLogUri(LogUriT&& value) {
341 SetLogUri(std::forward<LogUriT>(value));
342 return *this;
343 }
345
347
351 inline const Aws::String& GetMessage() const { return m_message; }
352 template <typename MessageT = Aws::String>
353 void SetMessage(MessageT&& value) {
354 m_messageHasBeenSet = true;
355 m_message = std::forward<MessageT>(value);
356 }
357 template <typename MessageT = Aws::String>
358 GetMLModelResult& WithMessage(MessageT&& value) {
359 SetMessage(std::forward<MessageT>(value));
360 return *this;
361 }
363
365
371 inline long long GetComputeTime() const { return m_computeTime; }
372 inline void SetComputeTime(long long value) {
373 m_computeTimeHasBeenSet = true;
374 m_computeTime = value;
375 }
376 inline GetMLModelResult& WithComputeTime(long long value) {
377 SetComputeTime(value);
378 return *this;
379 }
381
383
389 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
390 template <typename FinishedAtT = Aws::Utils::DateTime>
391 void SetFinishedAt(FinishedAtT&& value) {
392 m_finishedAtHasBeenSet = true;
393 m_finishedAt = std::forward<FinishedAtT>(value);
394 }
395 template <typename FinishedAtT = Aws::Utils::DateTime>
396 GetMLModelResult& WithFinishedAt(FinishedAtT&& value) {
397 SetFinishedAt(std::forward<FinishedAtT>(value));
398 return *this;
399 }
401
403
408 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
409 template <typename StartedAtT = Aws::Utils::DateTime>
410 void SetStartedAt(StartedAtT&& value) {
411 m_startedAtHasBeenSet = true;
412 m_startedAt = std::forward<StartedAtT>(value);
413 }
414 template <typename StartedAtT = Aws::Utils::DateTime>
415 GetMLModelResult& WithStartedAt(StartedAtT&& value) {
416 SetStartedAt(std::forward<StartedAtT>(value));
417 return *this;
418 }
420
422
429 inline const Aws::String& GetRecipe() const { return m_recipe; }
430 template <typename RecipeT = Aws::String>
431 void SetRecipe(RecipeT&& value) {
432 m_recipeHasBeenSet = true;
433 m_recipe = std::forward<RecipeT>(value);
434 }
435 template <typename RecipeT = Aws::String>
436 GetMLModelResult& WithRecipe(RecipeT&& value) {
437 SetRecipe(std::forward<RecipeT>(value));
438 return *this;
439 }
441
443
448 inline const Aws::String& GetSchema() const { return m_schema; }
449 template <typename SchemaT = Aws::String>
450 void SetSchema(SchemaT&& value) {
451 m_schemaHasBeenSet = true;
452 m_schema = std::forward<SchemaT>(value);
453 }
454 template <typename SchemaT = Aws::String>
455 GetMLModelResult& WithSchema(SchemaT&& value) {
456 SetSchema(std::forward<SchemaT>(value));
457 return *this;
458 }
460
462
463 inline const Aws::String& GetRequestId() const { return m_requestId; }
464 template <typename RequestIdT = Aws::String>
465 void SetRequestId(RequestIdT&& value) {
466 m_requestIdHasBeenSet = true;
467 m_requestId = std::forward<RequestIdT>(value);
468 }
469 template <typename RequestIdT = Aws::String>
470 GetMLModelResult& WithRequestId(RequestIdT&& value) {
471 SetRequestId(std::forward<RequestIdT>(value));
472 return *this;
473 }
475 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
476
477 private:
478 Aws::String m_mLModelId;
479
480 Aws::String m_trainingDataSourceId;
481
482 Aws::String m_createdByIamUser;
483
484 Aws::Utils::DateTime m_createdAt{};
485
486 Aws::Utils::DateTime m_lastUpdatedAt{};
487
488 Aws::String m_name;
489
491
492 long long m_sizeInBytes{0};
493
494 RealtimeEndpointInfo m_endpointInfo;
495
496 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
497
498 Aws::String m_inputDataLocationS3;
499
500 MLModelType m_mLModelType{MLModelType::NOT_SET};
501
502 double m_scoreThreshold{0.0};
503
504 Aws::Utils::DateTime m_scoreThresholdLastUpdatedAt{};
505
506 Aws::String m_logUri;
507
508 Aws::String m_message;
509
510 long long m_computeTime{0};
511
512 Aws::Utils::DateTime m_finishedAt{};
513
514 Aws::Utils::DateTime m_startedAt{};
515
516 Aws::String m_recipe;
517
518 Aws::String m_schema;
519
520 Aws::String m_requestId;
521 Aws::Http::HttpResponseCode m_HttpResponseCode;
522 bool m_mLModelIdHasBeenSet = false;
523 bool m_trainingDataSourceIdHasBeenSet = false;
524 bool m_createdByIamUserHasBeenSet = false;
525 bool m_createdAtHasBeenSet = false;
526 bool m_lastUpdatedAtHasBeenSet = false;
527 bool m_nameHasBeenSet = false;
528 bool m_statusHasBeenSet = false;
529 bool m_sizeInBytesHasBeenSet = false;
530 bool m_endpointInfoHasBeenSet = false;
531 bool m_trainingParametersHasBeenSet = false;
532 bool m_inputDataLocationS3HasBeenSet = false;
533 bool m_mLModelTypeHasBeenSet = false;
534 bool m_scoreThresholdHasBeenSet = false;
535 bool m_scoreThresholdLastUpdatedAtHasBeenSet = false;
536 bool m_logUriHasBeenSet = false;
537 bool m_messageHasBeenSet = false;
538 bool m_computeTimeHasBeenSet = false;
539 bool m_finishedAtHasBeenSet = false;
540 bool m_startedAtHasBeenSet = false;
541 bool m_recipeHasBeenSet = false;
542 bool m_schemaHasBeenSet = false;
543 bool m_requestIdHasBeenSet = false;
544};
545
546} // namespace Model
547} // namespace MachineLearning
548} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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