AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SolutionVersion.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/SolutionConfig.h>
11#include <aws/personalize/model/TrainingMode.h>
12#include <aws/personalize/model/TrainingType.h>
13#include <aws/personalize/model/TunedHPOParams.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
35 public:
36 AWS_PERSONALIZE_API SolutionVersion() = default;
37 AWS_PERSONALIZE_API SolutionVersion(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API SolutionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 SolutionVersion& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
64 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
65 template <typename SolutionVersionArnT = Aws::String>
66 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
67 m_solutionVersionArnHasBeenSet = true;
68 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
69 }
70 template <typename SolutionVersionArnT = Aws::String>
71 SolutionVersion& WithSolutionVersionArn(SolutionVersionArnT&& value) {
72 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetSolutionArn() const { return m_solutionArn; }
82 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
83 template <typename SolutionArnT = Aws::String>
84 void SetSolutionArn(SolutionArnT&& value) {
85 m_solutionArnHasBeenSet = true;
86 m_solutionArn = std::forward<SolutionArnT>(value);
87 }
88 template <typename SolutionArnT = Aws::String>
89 SolutionVersion& WithSolutionArn(SolutionArnT&& value) {
90 SetSolutionArn(std::forward<SolutionArnT>(value));
91 return *this;
92 }
94
96
100 inline bool GetPerformHPO() const { return m_performHPO; }
101 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
102 inline void SetPerformHPO(bool value) {
103 m_performHPOHasBeenSet = true;
104 m_performHPO = value;
105 }
106 inline SolutionVersion& WithPerformHPO(bool value) {
107 SetPerformHPO(value);
108 return *this;
109 }
111
113
118 inline bool GetPerformAutoML() const { return m_performAutoML; }
119 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
120 inline void SetPerformAutoML(bool value) {
121 m_performAutoMLHasBeenSet = true;
122 m_performAutoML = value;
123 }
124 inline SolutionVersion& WithPerformAutoML(bool value) {
125 SetPerformAutoML(value);
126 return *this;
127 }
129
131
137 inline bool GetPerformIncrementalUpdate() const { return m_performIncrementalUpdate; }
138 inline bool PerformIncrementalUpdateHasBeenSet() const { return m_performIncrementalUpdateHasBeenSet; }
139 inline void SetPerformIncrementalUpdate(bool value) {
140 m_performIncrementalUpdateHasBeenSet = true;
141 m_performIncrementalUpdate = value;
142 }
145 return *this;
146 }
148
150
153 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
154 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
155 template <typename RecipeArnT = Aws::String>
156 void SetRecipeArn(RecipeArnT&& value) {
157 m_recipeArnHasBeenSet = true;
158 m_recipeArn = std::forward<RecipeArnT>(value);
159 }
160 template <typename RecipeArnT = Aws::String>
161 SolutionVersion& WithRecipeArn(RecipeArnT&& value) {
162 SetRecipeArn(std::forward<RecipeArnT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::String& GetEventType() const { return m_eventType; }
173 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
174 template <typename EventTypeT = Aws::String>
175 void SetEventType(EventTypeT&& value) {
176 m_eventTypeHasBeenSet = true;
177 m_eventType = std::forward<EventTypeT>(value);
178 }
179 template <typename EventTypeT = Aws::String>
180 SolutionVersion& WithEventType(EventTypeT&& value) {
181 SetEventType(std::forward<EventTypeT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
192 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
193 template <typename DatasetGroupArnT = Aws::String>
194 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
195 m_datasetGroupArnHasBeenSet = true;
196 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
197 }
198 template <typename DatasetGroupArnT = Aws::String>
199 SolutionVersion& WithDatasetGroupArn(DatasetGroupArnT&& value) {
200 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
201 return *this;
202 }
204
206
209 inline const SolutionConfig& GetSolutionConfig() const { return m_solutionConfig; }
210 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
211 template <typename SolutionConfigT = SolutionConfig>
212 void SetSolutionConfig(SolutionConfigT&& value) {
213 m_solutionConfigHasBeenSet = true;
214 m_solutionConfig = std::forward<SolutionConfigT>(value);
215 }
216 template <typename SolutionConfigT = SolutionConfig>
217 SolutionVersion& WithSolutionConfig(SolutionConfigT&& value) {
218 SetSolutionConfig(std::forward<SolutionConfigT>(value));
219 return *this;
220 }
222
224
229 inline double GetTrainingHours() const { return m_trainingHours; }
230 inline bool TrainingHoursHasBeenSet() const { return m_trainingHoursHasBeenSet; }
231 inline void SetTrainingHours(double value) {
232 m_trainingHoursHasBeenSet = true;
233 m_trainingHours = value;
234 }
235 inline SolutionVersion& WithTrainingHours(double value) {
236 SetTrainingHours(value);
237 return *this;
238 }
240
242
249 inline TrainingMode GetTrainingMode() const { return m_trainingMode; }
250 inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
251 inline void SetTrainingMode(TrainingMode value) {
252 m_trainingModeHasBeenSet = true;
253 m_trainingMode = value;
254 }
256 SetTrainingMode(value);
257 return *this;
258 }
260
262
266 inline const TunedHPOParams& GetTunedHPOParams() const { return m_tunedHPOParams; }
267 inline bool TunedHPOParamsHasBeenSet() const { return m_tunedHPOParamsHasBeenSet; }
268 template <typename TunedHPOParamsT = TunedHPOParams>
269 void SetTunedHPOParams(TunedHPOParamsT&& value) {
270 m_tunedHPOParamsHasBeenSet = true;
271 m_tunedHPOParams = std::forward<TunedHPOParamsT>(value);
272 }
273 template <typename TunedHPOParamsT = TunedHPOParams>
274 SolutionVersion& WithTunedHPOParams(TunedHPOParamsT&& value) {
275 SetTunedHPOParams(std::forward<TunedHPOParamsT>(value));
276 return *this;
277 }
279
281
288 inline const Aws::String& GetStatus() const { return m_status; }
289 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
290 template <typename StatusT = Aws::String>
291 void SetStatus(StatusT&& value) {
292 m_statusHasBeenSet = true;
293 m_status = std::forward<StatusT>(value);
294 }
295 template <typename StatusT = Aws::String>
296 SolutionVersion& WithStatus(StatusT&& value) {
297 SetStatus(std::forward<StatusT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
307 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
308 template <typename FailureReasonT = Aws::String>
309 void SetFailureReason(FailureReasonT&& value) {
310 m_failureReasonHasBeenSet = true;
311 m_failureReason = std::forward<FailureReasonT>(value);
312 }
313 template <typename FailureReasonT = Aws::String>
314 SolutionVersion& WithFailureReason(FailureReasonT&& value) {
315 SetFailureReason(std::forward<FailureReasonT>(value));
316 return *this;
317 }
319
321
325 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
326 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
327 template <typename CreationDateTimeT = Aws::Utils::DateTime>
328 void SetCreationDateTime(CreationDateTimeT&& value) {
329 m_creationDateTimeHasBeenSet = true;
330 m_creationDateTime = std::forward<CreationDateTimeT>(value);
331 }
332 template <typename CreationDateTimeT = Aws::Utils::DateTime>
333 SolutionVersion& WithCreationDateTime(CreationDateTimeT&& value) {
334 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
335 return *this;
336 }
338
340
343 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
344 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
345 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
346 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
347 m_lastUpdatedDateTimeHasBeenSet = true;
348 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
349 }
350 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
351 SolutionVersion& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
352 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
353 return *this;
354 }
356
358
361 inline TrainingType GetTrainingType() const { return m_trainingType; }
362 inline bool TrainingTypeHasBeenSet() const { return m_trainingTypeHasBeenSet; }
363 inline void SetTrainingType(TrainingType value) {
364 m_trainingTypeHasBeenSet = true;
365 m_trainingType = value;
366 }
368 SetTrainingType(value);
369 return *this;
370 }
372 private:
373 Aws::String m_name;
374
375 Aws::String m_solutionVersionArn;
376
377 Aws::String m_solutionArn;
378
379 bool m_performHPO{false};
380
381 bool m_performAutoML{false};
382
383 bool m_performIncrementalUpdate{false};
384
385 Aws::String m_recipeArn;
386
387 Aws::String m_eventType;
388
389 Aws::String m_datasetGroupArn;
390
391 SolutionConfig m_solutionConfig;
392
393 double m_trainingHours{0.0};
394
395 TrainingMode m_trainingMode{TrainingMode::NOT_SET};
396
397 TunedHPOParams m_tunedHPOParams;
398
399 Aws::String m_status;
400
401 Aws::String m_failureReason;
402
403 Aws::Utils::DateTime m_creationDateTime{};
404
405 Aws::Utils::DateTime m_lastUpdatedDateTime{};
406
407 TrainingType m_trainingType{TrainingType::NOT_SET};
408 bool m_nameHasBeenSet = false;
409 bool m_solutionVersionArnHasBeenSet = false;
410 bool m_solutionArnHasBeenSet = false;
411 bool m_performHPOHasBeenSet = false;
412 bool m_performAutoMLHasBeenSet = false;
413 bool m_performIncrementalUpdateHasBeenSet = false;
414 bool m_recipeArnHasBeenSet = false;
415 bool m_eventTypeHasBeenSet = false;
416 bool m_datasetGroupArnHasBeenSet = false;
417 bool m_solutionConfigHasBeenSet = false;
418 bool m_trainingHoursHasBeenSet = false;
419 bool m_trainingModeHasBeenSet = false;
420 bool m_tunedHPOParamsHasBeenSet = false;
421 bool m_statusHasBeenSet = false;
422 bool m_failureReasonHasBeenSet = false;
423 bool m_creationDateTimeHasBeenSet = false;
424 bool m_lastUpdatedDateTimeHasBeenSet = false;
425 bool m_trainingTypeHasBeenSet = false;
426};
427
428} // namespace Model
429} // namespace Personalize
430} // namespace Aws
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetSolutionVersionArn() const
void SetTunedHPOParams(TunedHPOParamsT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
SolutionVersion & WithSolutionArn(SolutionArnT &&value)
void SetSolutionArn(SolutionArnT &&value)
const Aws::String & GetSolutionArn() const
void SetSolutionConfig(SolutionConfigT &&value)
SolutionVersion & WithTrainingHours(double value)
const Aws::String & GetEventType() const
AWS_PERSONALIZE_API SolutionVersion()=default
const Aws::String & GetDatasetGroupArn() const
SolutionVersion & WithSolutionConfig(SolutionConfigT &&value)
const Aws::String & GetFailureReason() const
const Aws::Utils::DateTime & GetCreationDateTime() const
const SolutionConfig & GetSolutionConfig() const
void SetFailureReason(FailureReasonT &&value)
SolutionVersion & WithPerformAutoML(bool value)
SolutionVersion & WithSolutionVersionArn(SolutionVersionArnT &&value)
SolutionVersion & WithDatasetGroupArn(DatasetGroupArnT &&value)
void SetSolutionVersionArn(SolutionVersionArnT &&value)
SolutionVersion & WithTunedHPOParams(TunedHPOParamsT &&value)
const Aws::String & GetRecipeArn() const
SolutionVersion & WithRecipeArn(RecipeArnT &&value)
SolutionVersion & WithPerformHPO(bool value)
SolutionVersion & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
SolutionVersion & WithTrainingType(TrainingType value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
SolutionVersion & WithEventType(EventTypeT &&value)
const Aws::String & GetStatus() const
AWS_PERSONALIZE_API SolutionVersion(Aws::Utils::Json::JsonView jsonValue)
SolutionVersion & WithName(NameT &&value)
SolutionVersion & WithCreationDateTime(CreationDateTimeT &&value)
const TunedHPOParams & GetTunedHPOParams() const
AWS_PERSONALIZE_API SolutionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
SolutionVersion & WithPerformIncrementalUpdate(bool value)
SolutionVersion & WithStatus(StatusT &&value)
void SetDatasetGroupArn(DatasetGroupArnT &&value)
SolutionVersion & WithFailureReason(FailureReasonT &&value)
SolutionVersion & WithTrainingMode(TrainingMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue