AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SolutionVersion.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/TrainingMode.h>
11#include <aws/personalize/model/TunedHPOParams.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/personalize/model/TrainingType.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
39 {
40 public:
41 AWS_PERSONALIZE_API SolutionVersion();
42 AWS_PERSONALIZE_API SolutionVersion(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PERSONALIZE_API SolutionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline SolutionVersion& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline SolutionVersion& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline SolutionVersion& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
66 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
67 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
68 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
69 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
70 inline SolutionVersion& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
71 inline SolutionVersion& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
72 inline SolutionVersion& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
74
76
79 inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; }
80 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
81 inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; }
82 inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); }
83 inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); }
84 inline SolutionVersion& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;}
85 inline SolutionVersion& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;}
86 inline SolutionVersion& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;}
88
90
94 inline bool GetPerformHPO() const{ return m_performHPO; }
95 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
96 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
97 inline SolutionVersion& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
99
101
106 inline bool GetPerformAutoML() const{ return m_performAutoML; }
107 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
108 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
109 inline SolutionVersion& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
111
113
116 inline const Aws::String& GetRecipeArn() const{ return m_recipeArn; }
117 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
118 inline void SetRecipeArn(const Aws::String& value) { m_recipeArnHasBeenSet = true; m_recipeArn = value; }
119 inline void SetRecipeArn(Aws::String&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::move(value); }
120 inline void SetRecipeArn(const char* value) { m_recipeArnHasBeenSet = true; m_recipeArn.assign(value); }
121 inline SolutionVersion& WithRecipeArn(const Aws::String& value) { SetRecipeArn(value); return *this;}
122 inline SolutionVersion& WithRecipeArn(Aws::String&& value) { SetRecipeArn(std::move(value)); return *this;}
123 inline SolutionVersion& WithRecipeArn(const char* value) { SetRecipeArn(value); return *this;}
125
127
131 inline const Aws::String& GetEventType() const{ return m_eventType; }
132 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
133 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
134 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
135 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
136 inline SolutionVersion& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
137 inline SolutionVersion& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
138 inline SolutionVersion& WithEventType(const char* value) { SetEventType(value); return *this;}
140
142
146 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
147 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
148 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
149 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
150 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
151 inline SolutionVersion& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
152 inline SolutionVersion& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
153 inline SolutionVersion& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
155
157
160 inline const SolutionConfig& GetSolutionConfig() const{ return m_solutionConfig; }
161 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
162 inline void SetSolutionConfig(const SolutionConfig& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = value; }
163 inline void SetSolutionConfig(SolutionConfig&& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = std::move(value); }
164 inline SolutionVersion& WithSolutionConfig(const SolutionConfig& value) { SetSolutionConfig(value); return *this;}
165 inline SolutionVersion& WithSolutionConfig(SolutionConfig&& value) { SetSolutionConfig(std::move(value)); return *this;}
167
169
174 inline double GetTrainingHours() const{ return m_trainingHours; }
175 inline bool TrainingHoursHasBeenSet() const { return m_trainingHoursHasBeenSet; }
176 inline void SetTrainingHours(double value) { m_trainingHoursHasBeenSet = true; m_trainingHours = value; }
177 inline SolutionVersion& WithTrainingHours(double value) { SetTrainingHours(value); return *this;}
179
181
188 inline const TrainingMode& GetTrainingMode() const{ return m_trainingMode; }
189 inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
190 inline void SetTrainingMode(const TrainingMode& value) { m_trainingModeHasBeenSet = true; m_trainingMode = value; }
191 inline void SetTrainingMode(TrainingMode&& value) { m_trainingModeHasBeenSet = true; m_trainingMode = std::move(value); }
192 inline SolutionVersion& WithTrainingMode(const TrainingMode& value) { SetTrainingMode(value); return *this;}
193 inline SolutionVersion& WithTrainingMode(TrainingMode&& value) { SetTrainingMode(std::move(value)); return *this;}
195
197
201 inline const TunedHPOParams& GetTunedHPOParams() const{ return m_tunedHPOParams; }
202 inline bool TunedHPOParamsHasBeenSet() const { return m_tunedHPOParamsHasBeenSet; }
203 inline void SetTunedHPOParams(const TunedHPOParams& value) { m_tunedHPOParamsHasBeenSet = true; m_tunedHPOParams = value; }
204 inline void SetTunedHPOParams(TunedHPOParams&& value) { m_tunedHPOParamsHasBeenSet = true; m_tunedHPOParams = std::move(value); }
205 inline SolutionVersion& WithTunedHPOParams(const TunedHPOParams& value) { SetTunedHPOParams(value); return *this;}
206 inline SolutionVersion& WithTunedHPOParams(TunedHPOParams&& value) { SetTunedHPOParams(std::move(value)); return *this;}
208
210
217 inline const Aws::String& GetStatus() const{ return m_status; }
218 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
219 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
220 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
221 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
222 inline SolutionVersion& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
223 inline SolutionVersion& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
224 inline SolutionVersion& WithStatus(const char* value) { SetStatus(value); return *this;}
226
228
231 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
232 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
233 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
234 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
235 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
236 inline SolutionVersion& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
237 inline SolutionVersion& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
238 inline SolutionVersion& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
240
242
246 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
247 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
248 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
249 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
251 inline SolutionVersion& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
253
255
258 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
259 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
260 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
261 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
263 inline SolutionVersion& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
265
267
270 inline const TrainingType& GetTrainingType() const{ return m_trainingType; }
271 inline bool TrainingTypeHasBeenSet() const { return m_trainingTypeHasBeenSet; }
272 inline void SetTrainingType(const TrainingType& value) { m_trainingTypeHasBeenSet = true; m_trainingType = value; }
273 inline void SetTrainingType(TrainingType&& value) { m_trainingTypeHasBeenSet = true; m_trainingType = std::move(value); }
274 inline SolutionVersion& WithTrainingType(const TrainingType& value) { SetTrainingType(value); return *this;}
275 inline SolutionVersion& WithTrainingType(TrainingType&& value) { SetTrainingType(std::move(value)); return *this;}
277 private:
278
279 Aws::String m_name;
280 bool m_nameHasBeenSet = false;
281
282 Aws::String m_solutionVersionArn;
283 bool m_solutionVersionArnHasBeenSet = false;
284
285 Aws::String m_solutionArn;
286 bool m_solutionArnHasBeenSet = false;
287
288 bool m_performHPO;
289 bool m_performHPOHasBeenSet = false;
290
291 bool m_performAutoML;
292 bool m_performAutoMLHasBeenSet = false;
293
294 Aws::String m_recipeArn;
295 bool m_recipeArnHasBeenSet = false;
296
297 Aws::String m_eventType;
298 bool m_eventTypeHasBeenSet = false;
299
300 Aws::String m_datasetGroupArn;
301 bool m_datasetGroupArnHasBeenSet = false;
302
303 SolutionConfig m_solutionConfig;
304 bool m_solutionConfigHasBeenSet = false;
305
306 double m_trainingHours;
307 bool m_trainingHoursHasBeenSet = false;
308
309 TrainingMode m_trainingMode;
310 bool m_trainingModeHasBeenSet = false;
311
312 TunedHPOParams m_tunedHPOParams;
313 bool m_tunedHPOParamsHasBeenSet = false;
314
315 Aws::String m_status;
316 bool m_statusHasBeenSet = false;
317
318 Aws::String m_failureReason;
319 bool m_failureReasonHasBeenSet = false;
320
321 Aws::Utils::DateTime m_creationDateTime;
322 bool m_creationDateTimeHasBeenSet = false;
323
324 Aws::Utils::DateTime m_lastUpdatedDateTime;
325 bool m_lastUpdatedDateTimeHasBeenSet = false;
326
327 TrainingType m_trainingType;
328 bool m_trainingTypeHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace Personalize
333} // namespace Aws
SolutionVersion & WithTrainingMode(TrainingMode &&value)
SolutionVersion & WithSolutionVersionArn(const char *value)
const Aws::String & GetSolutionVersionArn() const
SolutionVersion & WithStatus(Aws::String &&value)
SolutionVersion & WithEventType(const Aws::String &value)
SolutionVersion & WithName(Aws::String &&value)
const Aws::String & GetSolutionArn() const
void SetCreationDateTime(const Aws::Utils::DateTime &value)
SolutionVersion & WithDatasetGroupArn(Aws::String &&value)
SolutionVersion & WithTrainingHours(double value)
void SetEventType(const Aws::String &value)
const Aws::String & GetEventType() const
SolutionVersion & WithFailureReason(Aws::String &&value)
SolutionVersion & WithStatus(const char *value)
void SetSolutionConfig(const SolutionConfig &value)
const Aws::String & GetDatasetGroupArn() const
SolutionVersion & WithName(const Aws::String &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
SolutionVersion & WithTrainingMode(const TrainingMode &value)
void SetSolutionVersionArn(const char *value)
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
void SetDatasetGroupArn(const Aws::String &value)
SolutionVersion & WithFailureReason(const Aws::String &value)
void SetSolutionArn(const Aws::String &value)
void SetTrainingMode(const TrainingMode &value)
const Aws::String & GetFailureReason() const
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetSolutionVersionArn(const Aws::String &value)
const SolutionConfig & GetSolutionConfig() const
SolutionVersion & WithCreationDateTime(const Aws::Utils::DateTime &value)
SolutionVersion & WithPerformAutoML(bool value)
void SetTunedHPOParams(TunedHPOParams &&value)
SolutionVersion & WithDatasetGroupArn(const char *value)
SolutionVersion & WithSolutionConfig(SolutionConfig &&value)
SolutionVersion & WithCreationDateTime(Aws::Utils::DateTime &&value)
void SetStatus(const Aws::String &value)
SolutionVersion & WithSolutionVersionArn(const Aws::String &value)
SolutionVersion & WithName(const char *value)
const Aws::String & GetRecipeArn() const
void SetFailureReason(Aws::String &&value)
SolutionVersion & WithTrainingType(TrainingType &&value)
SolutionVersion & WithRecipeArn(const Aws::String &value)
void SetSolutionArn(Aws::String &&value)
SolutionVersion & WithTunedHPOParams(TunedHPOParams &&value)
const TrainingMode & GetTrainingMode() const
SolutionVersion & WithPerformHPO(bool value)
void SetTrainingMode(TrainingMode &&value)
SolutionVersion & WithRecipeArn(const char *value)
SolutionVersion & WithSolutionArn(Aws::String &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
SolutionVersion & WithEventType(const char *value)
SolutionVersion & WithSolutionVersionArn(Aws::String &&value)
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
void SetSolutionVersionArn(Aws::String &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
SolutionVersion & WithRecipeArn(Aws::String &&value)
void SetFailureReason(const Aws::String &value)
void SetTunedHPOParams(const TunedHPOParams &value)
SolutionVersion & WithSolutionArn(const char *value)
SolutionVersion & WithStatus(const Aws::String &value)
void SetDatasetGroupArn(Aws::String &&value)
const Aws::String & GetStatus() const
SolutionVersion & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
const TrainingType & GetTrainingType() const
AWS_PERSONALIZE_API SolutionVersion(Aws::Utils::Json::JsonView jsonValue)
void SetSolutionConfig(SolutionConfig &&value)
SolutionVersion & WithEventType(Aws::String &&value)
SolutionVersion & WithSolutionArn(const Aws::String &value)
void SetName(const Aws::String &value)
SolutionVersion & WithSolutionConfig(const SolutionConfig &value)
const TunedHPOParams & GetTunedHPOParams() const
void SetTrainingType(const TrainingType &value)
AWS_PERSONALIZE_API SolutionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecipeArn(const Aws::String &value)
void SetTrainingType(TrainingType &&value)
SolutionVersion & WithTrainingType(const TrainingType &value)
SolutionVersion & WithTunedHPOParams(const TunedHPOParams &value)
SolutionVersion & WithDatasetGroupArn(const Aws::String &value)
SolutionVersion & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
SolutionVersion & WithFailureReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue