AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MLModel.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/Algorithm.h>
14#include <aws/machinelearning/model/MLModelType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MachineLearning
28{
29namespace Model
30{
31
39 class MLModel
40 {
41 public:
42 AWS_MACHINELEARNING_API MLModel() = default;
43 AWS_MACHINELEARNING_API MLModel(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MACHINELEARNING_API MLModel& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
53 inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
54 template<typename MLModelIdT = Aws::String>
55 void SetMLModelId(MLModelIdT&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::forward<MLModelIdT>(value); }
56 template<typename MLModelIdT = Aws::String>
57 MLModel& WithMLModelId(MLModelIdT&& value) { SetMLModelId(std::forward<MLModelIdT>(value)); return *this;}
59
61
66 inline const Aws::String& GetTrainingDataSourceId() const { return m_trainingDataSourceId; }
67 inline bool TrainingDataSourceIdHasBeenSet() const { return m_trainingDataSourceIdHasBeenSet; }
68 template<typename TrainingDataSourceIdT = Aws::String>
69 void SetTrainingDataSourceId(TrainingDataSourceIdT&& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = std::forward<TrainingDataSourceIdT>(value); }
70 template<typename TrainingDataSourceIdT = Aws::String>
71 MLModel& WithTrainingDataSourceId(TrainingDataSourceIdT&& value) { SetTrainingDataSourceId(std::forward<TrainingDataSourceIdT>(value)); return *this;}
73
75
80 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
81 inline bool CreatedByIamUserHasBeenSet() const { return m_createdByIamUserHasBeenSet; }
82 template<typename CreatedByIamUserT = Aws::String>
83 void SetCreatedByIamUser(CreatedByIamUserT&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = std::forward<CreatedByIamUserT>(value); }
84 template<typename CreatedByIamUserT = Aws::String>
85 MLModel& WithCreatedByIamUser(CreatedByIamUserT&& value) { SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value)); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template<typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
97 template<typename CreatedAtT = Aws::Utils::DateTime>
98 MLModel& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
100
102
106 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
107 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
108 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
109 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
110 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
111 MLModel& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
120 template<typename NameT = Aws::String>
121 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
122 template<typename NameT = Aws::String>
123 MLModel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
125
127
138 inline EntityStatus GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(EntityStatus value) { m_statusHasBeenSet = true; m_status = value; }
141 inline MLModel& WithStatus(EntityStatus value) { SetStatus(value); return *this;}
143
145
146 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
147 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
148 inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
149 inline MLModel& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
151
153
156 inline const RealtimeEndpointInfo& GetEndpointInfo() const { return m_endpointInfo; }
157 inline bool EndpointInfoHasBeenSet() const { return m_endpointInfoHasBeenSet; }
158 template<typename EndpointInfoT = RealtimeEndpointInfo>
159 void SetEndpointInfo(EndpointInfoT&& value) { m_endpointInfoHasBeenSet = true; m_endpointInfo = std::forward<EndpointInfoT>(value); }
160 template<typename EndpointInfoT = RealtimeEndpointInfo>
161 MLModel& WithEndpointInfo(EndpointInfoT&& value) { SetEndpointInfo(std::forward<EndpointInfoT>(value)); return *this;}
163
165
196 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const { return m_trainingParameters; }
197 inline bool TrainingParametersHasBeenSet() const { return m_trainingParametersHasBeenSet; }
198 template<typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
199 void SetTrainingParameters(TrainingParametersT&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = std::forward<TrainingParametersT>(value); }
200 template<typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
201 MLModel& WithTrainingParameters(TrainingParametersT&& value) { SetTrainingParameters(std::forward<TrainingParametersT>(value)); return *this;}
202 template<typename TrainingParametersKeyT = Aws::String, typename TrainingParametersValueT = Aws::String>
203 MLModel& AddTrainingParameters(TrainingParametersKeyT&& key, TrainingParametersValueT&& value) {
204 m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::forward<TrainingParametersKeyT>(key), std::forward<TrainingParametersValueT>(value)); return *this;
205 }
207
209
213 inline const Aws::String& GetInputDataLocationS3() const { return m_inputDataLocationS3; }
214 inline bool InputDataLocationS3HasBeenSet() const { return m_inputDataLocationS3HasBeenSet; }
215 template<typename InputDataLocationS3T = Aws::String>
216 void SetInputDataLocationS3(InputDataLocationS3T&& value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3 = std::forward<InputDataLocationS3T>(value); }
217 template<typename InputDataLocationS3T = Aws::String>
218 MLModel& WithInputDataLocationS3(InputDataLocationS3T&& value) { SetInputDataLocationS3(std::forward<InputDataLocationS3T>(value)); return *this;}
220
222
228 inline Algorithm GetAlgorithm() const { return m_algorithm; }
229 inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; }
230 inline void SetAlgorithm(Algorithm value) { m_algorithmHasBeenSet = true; m_algorithm = value; }
231 inline MLModel& WithAlgorithm(Algorithm value) { SetAlgorithm(value); return *this;}
233
235
244 inline MLModelType GetMLModelType() const { return m_mLModelType; }
245 inline bool MLModelTypeHasBeenSet() const { return m_mLModelTypeHasBeenSet; }
246 inline void SetMLModelType(MLModelType value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
247 inline MLModel& WithMLModelType(MLModelType value) { SetMLModelType(value); return *this;}
249
251
252 inline double GetScoreThreshold() const { return m_scoreThreshold; }
253 inline bool ScoreThresholdHasBeenSet() const { return m_scoreThresholdHasBeenSet; }
254 inline void SetScoreThreshold(double value) { m_scoreThresholdHasBeenSet = true; m_scoreThreshold = value; }
255 inline MLModel& WithScoreThreshold(double value) { SetScoreThreshold(value); return *this;}
257
259
263 inline const Aws::Utils::DateTime& GetScoreThresholdLastUpdatedAt() const { return m_scoreThresholdLastUpdatedAt; }
264 inline bool ScoreThresholdLastUpdatedAtHasBeenSet() const { return m_scoreThresholdLastUpdatedAtHasBeenSet; }
265 template<typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
266 void SetScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) { m_scoreThresholdLastUpdatedAtHasBeenSet = true; m_scoreThresholdLastUpdatedAt = std::forward<ScoreThresholdLastUpdatedAtT>(value); }
267 template<typename ScoreThresholdLastUpdatedAtT = Aws::Utils::DateTime>
268 MLModel& WithScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT&& value) { SetScoreThresholdLastUpdatedAt(std::forward<ScoreThresholdLastUpdatedAtT>(value)); return *this;}
270
272
276 inline const Aws::String& GetMessage() const { return m_message; }
277 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
278 template<typename MessageT = Aws::String>
279 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
280 template<typename MessageT = Aws::String>
281 MLModel& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
283
285
286 inline long long GetComputeTime() const { return m_computeTime; }
287 inline bool ComputeTimeHasBeenSet() const { return m_computeTimeHasBeenSet; }
288 inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; }
289 inline MLModel& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
291
293
294 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
295 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
296 template<typename FinishedAtT = Aws::Utils::DateTime>
297 void SetFinishedAt(FinishedAtT&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::forward<FinishedAtT>(value); }
298 template<typename FinishedAtT = Aws::Utils::DateTime>
299 MLModel& WithFinishedAt(FinishedAtT&& value) { SetFinishedAt(std::forward<FinishedAtT>(value)); return *this;}
301
303
304 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
305 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
306 template<typename StartedAtT = Aws::Utils::DateTime>
307 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
308 template<typename StartedAtT = Aws::Utils::DateTime>
309 MLModel& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
311 private:
312
313 Aws::String m_mLModelId;
314 bool m_mLModelIdHasBeenSet = false;
315
316 Aws::String m_trainingDataSourceId;
317 bool m_trainingDataSourceIdHasBeenSet = false;
318
319 Aws::String m_createdByIamUser;
320 bool m_createdByIamUserHasBeenSet = false;
321
322 Aws::Utils::DateTime m_createdAt{};
323 bool m_createdAtHasBeenSet = false;
324
325 Aws::Utils::DateTime m_lastUpdatedAt{};
326 bool m_lastUpdatedAtHasBeenSet = false;
327
328 Aws::String m_name;
329 bool m_nameHasBeenSet = false;
330
332 bool m_statusHasBeenSet = false;
333
334 long long m_sizeInBytes{0};
335 bool m_sizeInBytesHasBeenSet = false;
336
337 RealtimeEndpointInfo m_endpointInfo;
338 bool m_endpointInfoHasBeenSet = false;
339
340 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
341 bool m_trainingParametersHasBeenSet = false;
342
343 Aws::String m_inputDataLocationS3;
344 bool m_inputDataLocationS3HasBeenSet = false;
345
346 Algorithm m_algorithm{Algorithm::NOT_SET};
347 bool m_algorithmHasBeenSet = false;
348
349 MLModelType m_mLModelType{MLModelType::NOT_SET};
350 bool m_mLModelTypeHasBeenSet = false;
351
352 double m_scoreThreshold{0.0};
353 bool m_scoreThresholdHasBeenSet = false;
354
355 Aws::Utils::DateTime m_scoreThresholdLastUpdatedAt{};
356 bool m_scoreThresholdLastUpdatedAtHasBeenSet = false;
357
358 Aws::String m_message;
359 bool m_messageHasBeenSet = false;
360
361 long long m_computeTime{0};
362 bool m_computeTimeHasBeenSet = false;
363
364 Aws::Utils::DateTime m_finishedAt{};
365 bool m_finishedAtHasBeenSet = false;
366
367 Aws::Utils::DateTime m_startedAt{};
368 bool m_startedAtHasBeenSet = false;
369 };
370
371} // namespace Model
372} // namespace MachineLearning
373} // namespace Aws
MLModel & WithTrainingParameters(TrainingParametersT &&value)
Definition MLModel.h:201
void SetStatus(EntityStatus value)
Definition MLModel.h:140
MLModel & WithStartedAt(StartedAtT &&value)
Definition MLModel.h:309
const Aws::String & GetCreatedByIamUser() const
Definition MLModel.h:80
void SetCreatedByIamUser(CreatedByIamUserT &&value)
Definition MLModel.h:83
void SetMessage(MessageT &&value)
Definition MLModel.h:279
bool TrainingDataSourceIdHasBeenSet() const
Definition MLModel.h:67
MLModel & WithCreatedByIamUser(CreatedByIamUserT &&value)
Definition MLModel.h:85
const Aws::Utils::DateTime & GetStartedAt() const
Definition MLModel.h:304
AWS_MACHINELEARNING_API MLModel(Aws::Utils::Json::JsonView jsonValue)
bool ScoreThresholdLastUpdatedAtHasBeenSet() const
Definition MLModel.h:264
void SetCreatedAt(CreatedAtT &&value)
Definition MLModel.h:96
void SetAlgorithm(Algorithm value)
Definition MLModel.h:230
const Aws::String & GetMLModelId() const
Definition MLModel.h:52
void SetScoreThreshold(double value)
Definition MLModel.h:254
MLModel & WithFinishedAt(FinishedAtT &&value)
Definition MLModel.h:299
EntityStatus GetStatus() const
Definition MLModel.h:138
const RealtimeEndpointInfo & GetEndpointInfo() const
Definition MLModel.h:156
MLModel & WithComputeTime(long long value)
Definition MLModel.h:289
void SetFinishedAt(FinishedAtT &&value)
Definition MLModel.h:297
MLModel & WithMLModelId(MLModelIdT &&value)
Definition MLModel.h:57
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
MLModel & WithTrainingDataSourceId(TrainingDataSourceIdT &&value)
Definition MLModel.h:71
void SetTrainingDataSourceId(TrainingDataSourceIdT &&value)
Definition MLModel.h:69
void SetStartedAt(StartedAtT &&value)
Definition MLModel.h:307
const Aws::Utils::DateTime & GetFinishedAt() const
Definition MLModel.h:294
void SetScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT &&value)
Definition MLModel.h:266
void SetSizeInBytes(long long value)
Definition MLModel.h:148
MLModelType GetMLModelType() const
Definition MLModel.h:244
MLModel & WithInputDataLocationS3(InputDataLocationS3T &&value)
Definition MLModel.h:218
MLModel & WithStatus(EntityStatus value)
Definition MLModel.h:141
MLModel & WithEndpointInfo(EndpointInfoT &&value)
Definition MLModel.h:161
MLModel & WithMessage(MessageT &&value)
Definition MLModel.h:281
AWS_MACHINELEARNING_API MLModel()=default
void SetEndpointInfo(EndpointInfoT &&value)
Definition MLModel.h:159
MLModel & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition MLModel.h:111
const Aws::String & GetTrainingDataSourceId() const
Definition MLModel.h:66
void SetMLModelId(MLModelIdT &&value)
Definition MLModel.h:55
const Aws::String & GetMessage() const
Definition MLModel.h:276
MLModel & AddTrainingParameters(TrainingParametersKeyT &&key, TrainingParametersValueT &&value)
Definition MLModel.h:203
MLModel & WithScoreThresholdLastUpdatedAt(ScoreThresholdLastUpdatedAtT &&value)
Definition MLModel.h:268
MLModel & WithMLModelType(MLModelType value)
Definition MLModel.h:247
void SetTrainingParameters(TrainingParametersT &&value)
Definition MLModel.h:199
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition MLModel.h:106
MLModel & WithSizeInBytes(long long value)
Definition MLModel.h:149
const Aws::Utils::DateTime & GetScoreThresholdLastUpdatedAt() const
Definition MLModel.h:263
MLModel & WithAlgorithm(Algorithm value)
Definition MLModel.h:231
const Aws::Utils::DateTime & GetCreatedAt() const
Definition MLModel.h:93
void SetMLModelType(MLModelType value)
Definition MLModel.h:246
const Aws::String & GetInputDataLocationS3() const
Definition MLModel.h:213
const Aws::String & GetName() const
Definition MLModel.h:118
MLModel & WithCreatedAt(CreatedAtT &&value)
Definition MLModel.h:98
MLModel & WithScoreThreshold(double value)
Definition MLModel.h:255
MLModel & WithName(NameT &&value)
Definition MLModel.h:123
void SetInputDataLocationS3(InputDataLocationS3T &&value)
Definition MLModel.h:216
const Aws::Map< Aws::String, Aws::String > & GetTrainingParameters() const
Definition MLModel.h:196
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition MLModel.h:109
void SetComputeTime(long long value)
Definition MLModel.h:288
AWS_MACHINELEARNING_API MLModel & operator=(Aws::Utils::Json::JsonView jsonValue)
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