AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Solution.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/SolutionConfig.h>
10#include <aws/personalize/model/AutoMLResult.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/personalize/model/SolutionVersionSummary.h>
13#include <aws/personalize/model/SolutionUpdateSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Personalize
27{
28namespace Model
29{
30
50 {
51 public:
52 AWS_PERSONALIZE_API Solution() = default;
53 AWS_PERSONALIZE_API Solution(Aws::Utils::Json::JsonView jsonValue);
54 AWS_PERSONALIZE_API Solution& operator=(Aws::Utils::Json::JsonView jsonValue);
55 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
56
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 Solution& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_solutionArnHasBeenSet = true; m_solutionArn = std::forward<SolutionArnT>(value); }
78 template<typename SolutionArnT = Aws::String>
79 Solution& WithSolutionArn(SolutionArnT&& value) { SetSolutionArn(std::forward<SolutionArnT>(value)); return *this;}
81
83
87 inline bool GetPerformHPO() const { return m_performHPO; }
88 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
89 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
90 inline Solution& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
92
94
105 inline bool GetPerformAutoML() const { return m_performAutoML; }
106 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
107 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
108 inline Solution& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
110
112
119 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
120 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
121 inline void SetPerformAutoTraining(bool value) { m_performAutoTrainingHasBeenSet = true; m_performAutoTraining = value; }
122 inline Solution& WithPerformAutoTraining(bool value) { SetPerformAutoTraining(value); return *this;}
124
126
130 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
131 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
132 template<typename RecipeArnT = Aws::String>
133 void SetRecipeArn(RecipeArnT&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::forward<RecipeArnT>(value); }
134 template<typename RecipeArnT = Aws::String>
135 Solution& WithRecipeArn(RecipeArnT&& value) { SetRecipeArn(std::forward<RecipeArnT>(value)); return *this;}
137
139
143 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
144 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
145 template<typename DatasetGroupArnT = Aws::String>
146 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
147 template<typename DatasetGroupArnT = Aws::String>
148 Solution& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
150
152
157 inline const Aws::String& GetEventType() const { return m_eventType; }
158 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
159 template<typename EventTypeT = Aws::String>
160 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
161 template<typename EventTypeT = Aws::String>
162 Solution& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
164
166
169 inline const SolutionConfig& GetSolutionConfig() const { return m_solutionConfig; }
170 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
171 template<typename SolutionConfigT = SolutionConfig>
172 void SetSolutionConfig(SolutionConfigT&& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = std::forward<SolutionConfigT>(value); }
173 template<typename SolutionConfigT = SolutionConfig>
174 Solution& WithSolutionConfig(SolutionConfigT&& value) { SetSolutionConfig(std::forward<SolutionConfigT>(value)); return *this;}
176
178
181 inline const AutoMLResult& GetAutoMLResult() const { return m_autoMLResult; }
182 inline bool AutoMLResultHasBeenSet() const { return m_autoMLResultHasBeenSet; }
183 template<typename AutoMLResultT = AutoMLResult>
184 void SetAutoMLResult(AutoMLResultT&& value) { m_autoMLResultHasBeenSet = true; m_autoMLResult = std::forward<AutoMLResultT>(value); }
185 template<typename AutoMLResultT = AutoMLResult>
186 Solution& WithAutoMLResult(AutoMLResultT&& value) { SetAutoMLResult(std::forward<AutoMLResultT>(value)); return *this;}
188
190
196 inline const Aws::String& GetStatus() const { return m_status; }
197 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
198 template<typename StatusT = Aws::String>
199 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
200 template<typename StatusT = Aws::String>
201 Solution& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
203
205
208 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
209 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
210 template<typename CreationDateTimeT = Aws::Utils::DateTime>
211 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
212 template<typename CreationDateTimeT = Aws::Utils::DateTime>
213 Solution& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
215
217
220 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
221 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
222 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
223 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
224 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
225 Solution& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
227
229
233 inline const SolutionVersionSummary& GetLatestSolutionVersion() const { return m_latestSolutionVersion; }
234 inline bool LatestSolutionVersionHasBeenSet() const { return m_latestSolutionVersionHasBeenSet; }
235 template<typename LatestSolutionVersionT = SolutionVersionSummary>
236 void SetLatestSolutionVersion(LatestSolutionVersionT&& value) { m_latestSolutionVersionHasBeenSet = true; m_latestSolutionVersion = std::forward<LatestSolutionVersionT>(value); }
237 template<typename LatestSolutionVersionT = SolutionVersionSummary>
238 Solution& WithLatestSolutionVersion(LatestSolutionVersionT&& value) { SetLatestSolutionVersion(std::forward<LatestSolutionVersionT>(value)); return *this;}
240
242
245 inline const SolutionUpdateSummary& GetLatestSolutionUpdate() const { return m_latestSolutionUpdate; }
246 inline bool LatestSolutionUpdateHasBeenSet() const { return m_latestSolutionUpdateHasBeenSet; }
247 template<typename LatestSolutionUpdateT = SolutionUpdateSummary>
248 void SetLatestSolutionUpdate(LatestSolutionUpdateT&& value) { m_latestSolutionUpdateHasBeenSet = true; m_latestSolutionUpdate = std::forward<LatestSolutionUpdateT>(value); }
249 template<typename LatestSolutionUpdateT = SolutionUpdateSummary>
250 Solution& WithLatestSolutionUpdate(LatestSolutionUpdateT&& value) { SetLatestSolutionUpdate(std::forward<LatestSolutionUpdateT>(value)); return *this;}
252 private:
253
254 Aws::String m_name;
255 bool m_nameHasBeenSet = false;
256
257 Aws::String m_solutionArn;
258 bool m_solutionArnHasBeenSet = false;
259
260 bool m_performHPO{false};
261 bool m_performHPOHasBeenSet = false;
262
263 bool m_performAutoML{false};
264 bool m_performAutoMLHasBeenSet = false;
265
266 bool m_performAutoTraining{false};
267 bool m_performAutoTrainingHasBeenSet = false;
268
269 Aws::String m_recipeArn;
270 bool m_recipeArnHasBeenSet = false;
271
272 Aws::String m_datasetGroupArn;
273 bool m_datasetGroupArnHasBeenSet = false;
274
275 Aws::String m_eventType;
276 bool m_eventTypeHasBeenSet = false;
277
278 SolutionConfig m_solutionConfig;
279 bool m_solutionConfigHasBeenSet = false;
280
281 AutoMLResult m_autoMLResult;
282 bool m_autoMLResultHasBeenSet = false;
283
284 Aws::String m_status;
285 bool m_statusHasBeenSet = false;
286
287 Aws::Utils::DateTime m_creationDateTime{};
288 bool m_creationDateTimeHasBeenSet = false;
289
290 Aws::Utils::DateTime m_lastUpdatedDateTime{};
291 bool m_lastUpdatedDateTimeHasBeenSet = false;
292
293 SolutionVersionSummary m_latestSolutionVersion;
294 bool m_latestSolutionVersionHasBeenSet = false;
295
296 SolutionUpdateSummary m_latestSolutionUpdate;
297 bool m_latestSolutionUpdateHasBeenSet = false;
298 };
299
300} // namespace Model
301} // namespace Personalize
302} // namespace Aws
void SetLatestSolutionVersion(LatestSolutionVersionT &&value)
Definition Solution.h:236
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Solution.h:62
bool PerformAutoTrainingHasBeenSet() const
Definition Solution.h:120
Solution & WithRecipeArn(RecipeArnT &&value)
Definition Solution.h:135
Solution & WithSolutionConfig(SolutionConfigT &&value)
Definition Solution.h:174
bool LastUpdatedDateTimeHasBeenSet() const
Definition Solution.h:221
const SolutionVersionSummary & GetLatestSolutionVersion() const
Definition Solution.h:233
const Aws::String & GetEventType() const
Definition Solution.h:157
Solution & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Solution.h:225
void SetPerformHPO(bool value)
Definition Solution.h:89
Solution & WithLatestSolutionVersion(LatestSolutionVersionT &&value)
Definition Solution.h:238
bool LatestSolutionUpdateHasBeenSet() const
Definition Solution.h:246
void SetDatasetGroupArn(DatasetGroupArnT &&value)
Definition Solution.h:146
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Solution.h:208
const Aws::String & GetDatasetGroupArn() const
Definition Solution.h:143
void SetPerformAutoTraining(bool value)
Definition Solution.h:121
Solution & WithAutoMLResult(AutoMLResultT &&value)
Definition Solution.h:186
void SetAutoMLResult(AutoMLResultT &&value)
Definition Solution.h:184
AWS_PERSONALIZE_API Solution & operator=(Aws::Utils::Json::JsonView jsonValue)
Solution & WithPerformAutoTraining(bool value)
Definition Solution.h:122
void SetEventType(EventTypeT &&value)
Definition Solution.h:160
Solution & WithLatestSolutionUpdate(LatestSolutionUpdateT &&value)
Definition Solution.h:250
Solution & WithName(NameT &&value)
Definition Solution.h:67
AWS_PERSONALIZE_API Solution(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition Solution.h:196
Solution & WithSolutionArn(SolutionArnT &&value)
Definition Solution.h:79
const AutoMLResult & GetAutoMLResult() const
Definition Solution.h:181
void SetName(NameT &&value)
Definition Solution.h:65
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Solution.h:223
bool LatestSolutionVersionHasBeenSet() const
Definition Solution.h:234
const Aws::String & GetSolutionArn() const
Definition Solution.h:74
void SetRecipeArn(RecipeArnT &&value)
Definition Solution.h:133
Solution & WithPerformHPO(bool value)
Definition Solution.h:90
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Solution.h:211
void SetSolutionConfig(SolutionConfigT &&value)
Definition Solution.h:172
Solution & WithDatasetGroupArn(DatasetGroupArnT &&value)
Definition Solution.h:148
void SetSolutionArn(SolutionArnT &&value)
Definition Solution.h:77
Solution & WithPerformAutoML(bool value)
Definition Solution.h:108
void SetPerformAutoML(bool value)
Definition Solution.h:107
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Solution.h:220
Solution & WithEventType(EventTypeT &&value)
Definition Solution.h:162
void SetStatus(StatusT &&value)
Definition Solution.h:199
Solution & WithStatus(StatusT &&value)
Definition Solution.h:201
AWS_PERSONALIZE_API Solution()=default
const SolutionConfig & GetSolutionConfig() const
Definition Solution.h:169
void SetLatestSolutionUpdate(LatestSolutionUpdateT &&value)
Definition Solution.h:248
Solution & WithCreationDateTime(CreationDateTimeT &&value)
Definition Solution.h:213
bool CreationDateTimeHasBeenSet() const
Definition Solution.h:209
const SolutionUpdateSummary & GetLatestSolutionUpdate() const
Definition Solution.h:245
const Aws::String & GetRecipeArn() const
Definition Solution.h:130
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue