AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetMLModelResult.h
1
6#pragma once
7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/machinelearning/model/EntityStatus.h>
11#include <aws/machinelearning/model/RealtimeEndpointInfo.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/machinelearning/model/MLModelType.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace MachineLearning
29{
30namespace Model
31{
39 {
40 public:
41 AWS_MACHINELEARNING_API GetMLModelResult() = default;
44
45
47
51 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
52 template<typename MLModelIdT = Aws::String>
53 void SetMLModelId(MLModelIdT&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::forward<MLModelIdT>(value); }
54 template<typename MLModelIdT = Aws::String>
55 GetMLModelResult& WithMLModelId(MLModelIdT&& value) { SetMLModelId(std::forward<MLModelIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetTrainingDataSourceId() const { return m_trainingDataSourceId; }
63 template<typename TrainingDataSourceIdT = Aws::String>
64 void SetTrainingDataSourceId(TrainingDataSourceIdT&& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = std::forward<TrainingDataSourceIdT>(value); }
65 template<typename TrainingDataSourceIdT = Aws::String>
66 GetMLModelResult& WithTrainingDataSourceId(TrainingDataSourceIdT&& value) { SetTrainingDataSourceId(std::forward<TrainingDataSourceIdT>(value)); return *this;}
68
70
75 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
76 template<typename CreatedByIamUserT = Aws::String>
77 void SetCreatedByIamUser(CreatedByIamUserT&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = std::forward<CreatedByIamUserT>(value); }
78 template<typename CreatedByIamUserT = Aws::String>
79 GetMLModelResult& WithCreatedByIamUser(CreatedByIamUserT&& value) { SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value)); return *this;}
81
83
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
90 template<typename CreatedAtT = Aws::Utils::DateTime>
91 GetMLModelResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
100 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
101 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
102 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
103 GetMLModelResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 template<typename NameT = Aws::String>
112 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
113 template<typename NameT = Aws::String>
114 GetMLModelResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
116
118
128 inline EntityStatus GetStatus() const { return m_status; }
129 inline void SetStatus(EntityStatus value) { m_statusHasBeenSet = true; m_status = value; }
130 inline GetMLModelResult& WithStatus(EntityStatus value) { SetStatus(value); return *this;}
132
134
135 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
136 inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
137 inline GetMLModelResult& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
139
141
144 inline const RealtimeEndpointInfo& GetEndpointInfo() const { return m_endpointInfo; }
145 template<typename EndpointInfoT = RealtimeEndpointInfo>
146 void SetEndpointInfo(EndpointInfoT&& value) { m_endpointInfoHasBeenSet = true; m_endpointInfo = std::forward<EndpointInfoT>(value); }
147 template<typename EndpointInfoT = RealtimeEndpointInfo>
148 GetMLModelResult& WithEndpointInfo(EndpointInfoT&& value) { SetEndpointInfo(std::forward<EndpointInfoT>(value)); return *this;}
150
152
184 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const { return m_trainingParameters; }
185 template<typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
186 void SetTrainingParameters(TrainingParametersT&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = std::forward<TrainingParametersT>(value); }
187 template<typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
188 GetMLModelResult& WithTrainingParameters(TrainingParametersT&& value) { SetTrainingParameters(std::forward<TrainingParametersT>(value)); return *this;}
189 template<typename TrainingParametersKeyT = Aws::String, typename TrainingParametersValueT = Aws::String>
190 GetMLModelResult& AddTrainingParameters(TrainingParametersKeyT&& key, TrainingParametersValueT&& value) {
191 m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::forward<TrainingParametersKeyT>(key), std::forward<TrainingParametersValueT>(value)); return *this;
192 }
194
196
200 inline const Aws::String& GetInputDataLocationS3() const { return m_inputDataLocationS3; }
201 template<typename InputDataLocationS3T = Aws::String>
202 void SetInputDataLocationS3(InputDataLocationS3T&& value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3 = std::forward<InputDataLocationS3T>(value); }
203 template<typename InputDataLocationS3T = Aws::String>
204 GetMLModelResult& WithInputDataLocationS3(InputDataLocationS3T&& value) { SetInputDataLocationS3(std::forward<InputDataLocationS3T>(value)); return *this;}
206
208
216 inline MLModelType GetMLModelType() const { return m_mLModelType; }
217 inline void SetMLModelType(MLModelType value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
218 inline GetMLModelResult& WithMLModelType(MLModelType value) { SetMLModelType(value); return *this;}
220
222
230 inline double GetScoreThreshold() const { return m_scoreThreshold; }
231 inline void SetScoreThreshold(double value) { m_scoreThresholdHasBeenSet = true; m_scoreThreshold = value; }
232 inline GetMLModelResult& WithScoreThreshold(double value) { SetScoreThreshold(value); return *this;}
234
236
240 inline const Aws::Utils::DateTime& GetScoreThresholdLastUpdatedAt() const { return m_scoreThresholdLastUpdatedAt; }
241 template<typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
242 void SetScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) { m_scoreThresholdLastUpdatedAtHasBeenSet = true; m_scoreThresholdLastUpdatedAt = std::forward<ScoreThresholdLastUpdatedAtT>(value); }
243 template<typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
244 GetMLModelResult& WithScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) { SetScoreThresholdLastUpdatedAt(std::forward<ScoreThresholdLastUpdatedAtT>(value)); return *this;}
246
248
252 inline const Aws::String& GetLogUri() const { return m_logUri; }
253 template<typename LogUriT = Aws::String>
254 void SetLogUri(LogUriT&& value) { m_logUriHasBeenSet = true; m_logUri = std::forward<LogUriT>(value); }
255 template<typename LogUriT = Aws::String>
256 GetMLModelResult& WithLogUri(LogUriT&& value) { SetLogUri(std::forward<LogUriT>(value)); return *this;}
258
260
264 inline const Aws::String& GetMessage() const { return m_message; }
265 template<typename MessageT = Aws::String>
266 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
267 template<typename MessageT = Aws::String>
268 GetMLModelResult& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
270
272
278 inline long long GetComputeTime() const { return m_computeTime; }
279 inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; }
280 inline GetMLModelResult& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
282
284
290 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
291 template<typename FinishedAtT = Aws::Utils::DateTime>
292 void SetFinishedAt(FinishedAtT&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::forward<FinishedAtT>(value); }
293 template<typename FinishedAtT = Aws::Utils::DateTime>
294 GetMLModelResult& WithFinishedAt(FinishedAtT&& value) { SetFinishedAt(std::forward<FinishedAtT>(value)); return *this;}
296
298
303 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
304 template<typename StartedAtT = Aws::Utils::DateTime>
305 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
306 template<typename StartedAtT = Aws::Utils::DateTime>
307 GetMLModelResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
309
311
318 inline const Aws::String& GetRecipe() const { return m_recipe; }
319 template<typename RecipeT = Aws::String>
320 void SetRecipe(RecipeT&& value) { m_recipeHasBeenSet = true; m_recipe = std::forward<RecipeT>(value); }
321 template<typename RecipeT = Aws::String>
322 GetMLModelResult& WithRecipe(RecipeT&& value) { SetRecipe(std::forward<RecipeT>(value)); return *this;}
324
326
331 inline const Aws::String& GetSchema() const { return m_schema; }
332 template<typename SchemaT = Aws::String>
333 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
334 template<typename SchemaT = Aws::String>
335 GetMLModelResult& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
337
339
340 inline const Aws::String& GetRequestId() const { return m_requestId; }
341 template<typename RequestIdT = Aws::String>
342 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
343 template<typename RequestIdT = Aws::String>
344 GetMLModelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
346 private:
347
348 Aws::String m_mLModelId;
349 bool m_mLModelIdHasBeenSet = false;
350
351 Aws::String m_trainingDataSourceId;
352 bool m_trainingDataSourceIdHasBeenSet = false;
353
354 Aws::String m_createdByIamUser;
355 bool m_createdByIamUserHasBeenSet = false;
356
357 Aws::Utils::DateTime m_createdAt{};
358 bool m_createdAtHasBeenSet = false;
359
360 Aws::Utils::DateTime m_lastUpdatedAt{};
361 bool m_lastUpdatedAtHasBeenSet = false;
362
363 Aws::String m_name;
364 bool m_nameHasBeenSet = false;
365
367 bool m_statusHasBeenSet = false;
368
369 long long m_sizeInBytes{0};
370 bool m_sizeInBytesHasBeenSet = false;
371
372 RealtimeEndpointInfo m_endpointInfo;
373 bool m_endpointInfoHasBeenSet = false;
374
375 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
376 bool m_trainingParametersHasBeenSet = false;
377
378 Aws::String m_inputDataLocationS3;
379 bool m_inputDataLocationS3HasBeenSet = false;
380
381 MLModelType m_mLModelType{MLModelType::NOT_SET};
382 bool m_mLModelTypeHasBeenSet = false;
383
384 double m_scoreThreshold{0.0};
385 bool m_scoreThresholdHasBeenSet = false;
386
387 Aws::Utils::DateTime m_scoreThresholdLastUpdatedAt{};
388 bool m_scoreThresholdLastUpdatedAtHasBeenSet = false;
389
390 Aws::String m_logUri;
391 bool m_logUriHasBeenSet = false;
392
393 Aws::String m_message;
394 bool m_messageHasBeenSet = false;
395
396 long long m_computeTime{0};
397 bool m_computeTimeHasBeenSet = false;
398
399 Aws::Utils::DateTime m_finishedAt{};
400 bool m_finishedAtHasBeenSet = false;
401
402 Aws::Utils::DateTime m_startedAt{};
403 bool m_startedAtHasBeenSet = false;
404
405 Aws::String m_recipe;
406 bool m_recipeHasBeenSet = false;
407
408 Aws::String m_schema;
409 bool m_schemaHasBeenSet = false;
410
411 Aws::String m_requestId;
412 bool m_requestIdHasBeenSet = false;
413 };
414
415} // namespace Model
416} // namespace MachineLearning
417} // 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