AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
Solution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/AutoMLResult.h>
11#include <aws/personalize/model/SolutionConfig.h>
12#include <aws/personalize/model/SolutionUpdateSummary.h>
13#include <aws/personalize/model/SolutionVersionSummary.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Personalize {
25namespace Model {
26
45class Solution {
46 public:
47 AWS_PERSONALIZE_API Solution() = default;
48 AWS_PERSONALIZE_API Solution(Aws::Utils::Json::JsonView jsonValue);
49 AWS_PERSONALIZE_API Solution& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 Solution& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetSolutionArn() const { return m_solutionArn; }
75 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
76 template <typename SolutionArnT = Aws::String>
77 void SetSolutionArn(SolutionArnT&& value) {
78 m_solutionArnHasBeenSet = true;
79 m_solutionArn = std::forward<SolutionArnT>(value);
80 }
81 template <typename SolutionArnT = Aws::String>
82 Solution& WithSolutionArn(SolutionArnT&& value) {
83 SetSolutionArn(std::forward<SolutionArnT>(value));
84 return *this;
85 }
87
89
93 inline bool GetPerformHPO() const { return m_performHPO; }
94 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
95 inline void SetPerformHPO(bool value) {
96 m_performHPOHasBeenSet = true;
97 m_performHPO = value;
98 }
99 inline Solution& WithPerformHPO(bool value) {
100 SetPerformHPO(value);
101 return *this;
102 }
104
106
117 inline bool GetPerformAutoML() const { return m_performAutoML; }
118 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
119 inline void SetPerformAutoML(bool value) {
120 m_performAutoMLHasBeenSet = true;
121 m_performAutoML = value;
122 }
123 inline Solution& WithPerformAutoML(bool value) {
124 SetPerformAutoML(value);
125 return *this;
126 }
128
130
137 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
138 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
139 inline void SetPerformAutoTraining(bool value) {
140 m_performAutoTrainingHasBeenSet = true;
141 m_performAutoTraining = value;
142 }
143 inline Solution& WithPerformAutoTraining(bool value) {
145 return *this;
146 }
148
150
157 inline bool GetPerformIncrementalUpdate() const { return m_performIncrementalUpdate; }
158 inline bool PerformIncrementalUpdateHasBeenSet() const { return m_performIncrementalUpdateHasBeenSet; }
159 inline void SetPerformIncrementalUpdate(bool value) {
160 m_performIncrementalUpdateHasBeenSet = true;
161 m_performIncrementalUpdate = value;
162 }
165 return *this;
166 }
168
170
174 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
175 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
176 template <typename RecipeArnT = Aws::String>
177 void SetRecipeArn(RecipeArnT&& value) {
178 m_recipeArnHasBeenSet = true;
179 m_recipeArn = std::forward<RecipeArnT>(value);
180 }
181 template <typename RecipeArnT = Aws::String>
182 Solution& WithRecipeArn(RecipeArnT&& value) {
183 SetRecipeArn(std::forward<RecipeArnT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
194 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
195 template <typename DatasetGroupArnT = Aws::String>
196 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
197 m_datasetGroupArnHasBeenSet = true;
198 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
199 }
200 template <typename DatasetGroupArnT = Aws::String>
201 Solution& WithDatasetGroupArn(DatasetGroupArnT&& value) {
202 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
203 return *this;
204 }
206
208
213 inline const Aws::String& GetEventType() const { return m_eventType; }
214 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
215 template <typename EventTypeT = Aws::String>
216 void SetEventType(EventTypeT&& value) {
217 m_eventTypeHasBeenSet = true;
218 m_eventType = std::forward<EventTypeT>(value);
219 }
220 template <typename EventTypeT = Aws::String>
221 Solution& WithEventType(EventTypeT&& value) {
222 SetEventType(std::forward<EventTypeT>(value));
223 return *this;
224 }
226
228
231 inline const SolutionConfig& GetSolutionConfig() const { return m_solutionConfig; }
232 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
233 template <typename SolutionConfigT = SolutionConfig>
234 void SetSolutionConfig(SolutionConfigT&& value) {
235 m_solutionConfigHasBeenSet = true;
236 m_solutionConfig = std::forward<SolutionConfigT>(value);
237 }
238 template <typename SolutionConfigT = SolutionConfig>
239 Solution& WithSolutionConfig(SolutionConfigT&& value) {
240 SetSolutionConfig(std::forward<SolutionConfigT>(value));
241 return *this;
242 }
244
246
249 inline const AutoMLResult& GetAutoMLResult() const { return m_autoMLResult; }
250 inline bool AutoMLResultHasBeenSet() const { return m_autoMLResultHasBeenSet; }
251 template <typename AutoMLResultT = AutoMLResult>
252 void SetAutoMLResult(AutoMLResultT&& value) {
253 m_autoMLResultHasBeenSet = true;
254 m_autoMLResult = std::forward<AutoMLResultT>(value);
255 }
256 template <typename AutoMLResultT = AutoMLResult>
257 Solution& WithAutoMLResult(AutoMLResultT&& value) {
258 SetAutoMLResult(std::forward<AutoMLResultT>(value));
259 return *this;
260 }
262
264
270 inline const Aws::String& GetStatus() const { return m_status; }
271 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
272 template <typename StatusT = Aws::String>
273 void SetStatus(StatusT&& value) {
274 m_statusHasBeenSet = true;
275 m_status = std::forward<StatusT>(value);
276 }
277 template <typename StatusT = Aws::String>
278 Solution& WithStatus(StatusT&& value) {
279 SetStatus(std::forward<StatusT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
289 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
290 template <typename CreationDateTimeT = Aws::Utils::DateTime>
291 void SetCreationDateTime(CreationDateTimeT&& value) {
292 m_creationDateTimeHasBeenSet = true;
293 m_creationDateTime = std::forward<CreationDateTimeT>(value);
294 }
295 template <typename CreationDateTimeT = Aws::Utils::DateTime>
296 Solution& WithCreationDateTime(CreationDateTimeT&& value) {
297 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
307 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
308 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
309 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
310 m_lastUpdatedDateTimeHasBeenSet = true;
311 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
312 }
313 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
314 Solution& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
315 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
316 return *this;
317 }
319
321
325 inline const SolutionVersionSummary& GetLatestSolutionVersion() const { return m_latestSolutionVersion; }
326 inline bool LatestSolutionVersionHasBeenSet() const { return m_latestSolutionVersionHasBeenSet; }
327 template <typename LatestSolutionVersionT = SolutionVersionSummary>
328 void SetLatestSolutionVersion(LatestSolutionVersionT&& value) {
329 m_latestSolutionVersionHasBeenSet = true;
330 m_latestSolutionVersion = std::forward<LatestSolutionVersionT>(value);
331 }
332 template <typename LatestSolutionVersionT = SolutionVersionSummary>
333 Solution& WithLatestSolutionVersion(LatestSolutionVersionT&& value) {
334 SetLatestSolutionVersion(std::forward<LatestSolutionVersionT>(value));
335 return *this;
336 }
338
340
343 inline const SolutionUpdateSummary& GetLatestSolutionUpdate() const { return m_latestSolutionUpdate; }
344 inline bool LatestSolutionUpdateHasBeenSet() const { return m_latestSolutionUpdateHasBeenSet; }
345 template <typename LatestSolutionUpdateT = SolutionUpdateSummary>
346 void SetLatestSolutionUpdate(LatestSolutionUpdateT&& value) {
347 m_latestSolutionUpdateHasBeenSet = true;
348 m_latestSolutionUpdate = std::forward<LatestSolutionUpdateT>(value);
349 }
350 template <typename LatestSolutionUpdateT = SolutionUpdateSummary>
351 Solution& WithLatestSolutionUpdate(LatestSolutionUpdateT&& value) {
352 SetLatestSolutionUpdate(std::forward<LatestSolutionUpdateT>(value));
353 return *this;
354 }
356 private:
357 Aws::String m_name;
358
359 Aws::String m_solutionArn;
360
361 bool m_performHPO{false};
362
363 bool m_performAutoML{false};
364
365 bool m_performAutoTraining{false};
366
367 bool m_performIncrementalUpdate{false};
368
369 Aws::String m_recipeArn;
370
371 Aws::String m_datasetGroupArn;
372
373 Aws::String m_eventType;
374
375 SolutionConfig m_solutionConfig;
376
377 AutoMLResult m_autoMLResult;
378
379 Aws::String m_status;
380
381 Aws::Utils::DateTime m_creationDateTime{};
382
383 Aws::Utils::DateTime m_lastUpdatedDateTime{};
384
385 SolutionVersionSummary m_latestSolutionVersion;
386
387 SolutionUpdateSummary m_latestSolutionUpdate;
388 bool m_nameHasBeenSet = false;
389 bool m_solutionArnHasBeenSet = false;
390 bool m_performHPOHasBeenSet = false;
391 bool m_performAutoMLHasBeenSet = false;
392 bool m_performAutoTrainingHasBeenSet = false;
393 bool m_performIncrementalUpdateHasBeenSet = false;
394 bool m_recipeArnHasBeenSet = false;
395 bool m_datasetGroupArnHasBeenSet = false;
396 bool m_eventTypeHasBeenSet = false;
397 bool m_solutionConfigHasBeenSet = false;
398 bool m_autoMLResultHasBeenSet = false;
399 bool m_statusHasBeenSet = false;
400 bool m_creationDateTimeHasBeenSet = false;
401 bool m_lastUpdatedDateTimeHasBeenSet = false;
402 bool m_latestSolutionVersionHasBeenSet = false;
403 bool m_latestSolutionUpdateHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace Personalize
408} // namespace Aws
void SetLatestSolutionVersion(LatestSolutionVersionT &&value)
Definition Solution.h:328
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Solution.h:56
bool PerformAutoTrainingHasBeenSet() const
Definition Solution.h:138
Solution & WithRecipeArn(RecipeArnT &&value)
Definition Solution.h:182
Solution & WithSolutionConfig(SolutionConfigT &&value)
Definition Solution.h:239
bool PerformIncrementalUpdateHasBeenSet() const
Definition Solution.h:158
bool LastUpdatedDateTimeHasBeenSet() const
Definition Solution.h:307
const SolutionVersionSummary & GetLatestSolutionVersion() const
Definition Solution.h:325
const Aws::String & GetEventType() const
Definition Solution.h:213
Solution & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Solution.h:314
void SetPerformHPO(bool value)
Definition Solution.h:95
Solution & WithLatestSolutionVersion(LatestSolutionVersionT &&value)
Definition Solution.h:333
bool LatestSolutionUpdateHasBeenSet() const
Definition Solution.h:344
void SetDatasetGroupArn(DatasetGroupArnT &&value)
Definition Solution.h:196
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Solution.h:288
const Aws::String & GetDatasetGroupArn() const
Definition Solution.h:193
void SetPerformAutoTraining(bool value)
Definition Solution.h:139
Solution & WithAutoMLResult(AutoMLResultT &&value)
Definition Solution.h:257
void SetAutoMLResult(AutoMLResultT &&value)
Definition Solution.h:252
AWS_PERSONALIZE_API Solution & operator=(Aws::Utils::Json::JsonView jsonValue)
Solution & WithPerformAutoTraining(bool value)
Definition Solution.h:143
void SetEventType(EventTypeT &&value)
Definition Solution.h:216
Solution & WithLatestSolutionUpdate(LatestSolutionUpdateT &&value)
Definition Solution.h:351
Solution & WithName(NameT &&value)
Definition Solution.h:64
AWS_PERSONALIZE_API Solution(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition Solution.h:270
Solution & WithSolutionArn(SolutionArnT &&value)
Definition Solution.h:82
const AutoMLResult & GetAutoMLResult() const
Definition Solution.h:249
void SetName(NameT &&value)
Definition Solution.h:59
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Solution.h:309
bool LatestSolutionVersionHasBeenSet() const
Definition Solution.h:326
const Aws::String & GetSolutionArn() const
Definition Solution.h:74
void SetRecipeArn(RecipeArnT &&value)
Definition Solution.h:177
Solution & WithPerformHPO(bool value)
Definition Solution.h:99
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Solution.h:291
void SetSolutionConfig(SolutionConfigT &&value)
Definition Solution.h:234
Solution & WithDatasetGroupArn(DatasetGroupArnT &&value)
Definition Solution.h:201
void SetPerformIncrementalUpdate(bool value)
Definition Solution.h:159
Solution & WithPerformIncrementalUpdate(bool value)
Definition Solution.h:163
void SetSolutionArn(SolutionArnT &&value)
Definition Solution.h:77
Solution & WithPerformAutoML(bool value)
Definition Solution.h:123
void SetPerformAutoML(bool value)
Definition Solution.h:119
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Solution.h:306
Solution & WithEventType(EventTypeT &&value)
Definition Solution.h:221
void SetStatus(StatusT &&value)
Definition Solution.h:273
Solution & WithStatus(StatusT &&value)
Definition Solution.h:278
bool GetPerformIncrementalUpdate() const
Definition Solution.h:157
AWS_PERSONALIZE_API Solution()=default
const SolutionConfig & GetSolutionConfig() const
Definition Solution.h:231
void SetLatestSolutionUpdate(LatestSolutionUpdateT &&value)
Definition Solution.h:346
Solution & WithCreationDateTime(CreationDateTimeT &&value)
Definition Solution.h:296
bool CreationDateTimeHasBeenSet() const
Definition Solution.h:289
const SolutionUpdateSummary & GetLatestSolutionUpdate() const
Definition Solution.h:343
const Aws::String & GetRecipeArn() const
Definition Solution.h:174
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue