AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 SolutionVersion& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::forward<SolutionVersionArnT>(value); }
67 template<typename SolutionVersionArnT = Aws::String>
68 SolutionVersion& WithSolutionVersionArn(SolutionVersionArnT&& value) { SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetSolutionArn() const { return m_solutionArn; }
76 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
77 template<typename SolutionArnT = Aws::String>
78 void SetSolutionArn(SolutionArnT&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::forward<SolutionArnT>(value); }
79 template<typename SolutionArnT = Aws::String>
80 SolutionVersion& WithSolutionArn(SolutionArnT&& value) { SetSolutionArn(std::forward<SolutionArnT>(value)); return *this;}
82
84
88 inline bool GetPerformHPO() const { return m_performHPO; }
89 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
90 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
91 inline SolutionVersion& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
93
95
100 inline bool GetPerformAutoML() const { return m_performAutoML; }
101 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
102 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
103 inline SolutionVersion& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
105
107
110 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
111 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
112 template<typename RecipeArnT = Aws::String>
113 void SetRecipeArn(RecipeArnT&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::forward<RecipeArnT>(value); }
114 template<typename RecipeArnT = Aws::String>
115 SolutionVersion& WithRecipeArn(RecipeArnT&& value) { SetRecipeArn(std::forward<RecipeArnT>(value)); return *this;}
117
119
123 inline const Aws::String& GetEventType() const { return m_eventType; }
124 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
125 template<typename EventTypeT = Aws::String>
126 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
127 template<typename EventTypeT = Aws::String>
128 SolutionVersion& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
130
132
136 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
137 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
138 template<typename DatasetGroupArnT = Aws::String>
139 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
140 template<typename DatasetGroupArnT = Aws::String>
141 SolutionVersion& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
143
145
148 inline const SolutionConfig& GetSolutionConfig() const { return m_solutionConfig; }
149 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
150 template<typename SolutionConfigT = SolutionConfig>
151 void SetSolutionConfig(SolutionConfigT&& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = std::forward<SolutionConfigT>(value); }
152 template<typename SolutionConfigT = SolutionConfig>
153 SolutionVersion& WithSolutionConfig(SolutionConfigT&& value) { SetSolutionConfig(std::forward<SolutionConfigT>(value)); return *this;}
155
157
162 inline double GetTrainingHours() const { return m_trainingHours; }
163 inline bool TrainingHoursHasBeenSet() const { return m_trainingHoursHasBeenSet; }
164 inline void SetTrainingHours(double value) { m_trainingHoursHasBeenSet = true; m_trainingHours = value; }
165 inline SolutionVersion& WithTrainingHours(double value) { SetTrainingHours(value); return *this;}
167
169
176 inline TrainingMode GetTrainingMode() const { return m_trainingMode; }
177 inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
178 inline void SetTrainingMode(TrainingMode value) { m_trainingModeHasBeenSet = true; m_trainingMode = value; }
179 inline SolutionVersion& WithTrainingMode(TrainingMode value) { SetTrainingMode(value); return *this;}
181
183
187 inline const TunedHPOParams& GetTunedHPOParams() const { return m_tunedHPOParams; }
188 inline bool TunedHPOParamsHasBeenSet() const { return m_tunedHPOParamsHasBeenSet; }
189 template<typename TunedHPOParamsT = TunedHPOParams>
190 void SetTunedHPOParams(TunedHPOParamsT&& value) { m_tunedHPOParamsHasBeenSet = true; m_tunedHPOParams = std::forward<TunedHPOParamsT>(value); }
191 template<typename TunedHPOParamsT = TunedHPOParams>
192 SolutionVersion& WithTunedHPOParams(TunedHPOParamsT&& value) { SetTunedHPOParams(std::forward<TunedHPOParamsT>(value)); return *this;}
194
196
203 inline const Aws::String& GetStatus() const { return m_status; }
204 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
205 template<typename StatusT = Aws::String>
206 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
207 template<typename StatusT = Aws::String>
208 SolutionVersion& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
210
212
215 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
216 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
217 template<typename FailureReasonT = Aws::String>
218 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
219 template<typename FailureReasonT = Aws::String>
220 SolutionVersion& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
222
224
228 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
229 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
230 template<typename CreationDateTimeT = Aws::Utils::DateTime>
231 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
232 template<typename CreationDateTimeT = Aws::Utils::DateTime>
233 SolutionVersion& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
235
237
240 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
241 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
242 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
243 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
244 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
245 SolutionVersion& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
247
249
252 inline TrainingType GetTrainingType() const { return m_trainingType; }
253 inline bool TrainingTypeHasBeenSet() const { return m_trainingTypeHasBeenSet; }
254 inline void SetTrainingType(TrainingType value) { m_trainingTypeHasBeenSet = true; m_trainingType = value; }
255 inline SolutionVersion& WithTrainingType(TrainingType value) { SetTrainingType(value); return *this;}
257 private:
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 Aws::String m_solutionVersionArn;
263 bool m_solutionVersionArnHasBeenSet = false;
264
265 Aws::String m_solutionArn;
266 bool m_solutionArnHasBeenSet = false;
267
268 bool m_performHPO{false};
269 bool m_performHPOHasBeenSet = false;
270
271 bool m_performAutoML{false};
272 bool m_performAutoMLHasBeenSet = false;
273
274 Aws::String m_recipeArn;
275 bool m_recipeArnHasBeenSet = false;
276
277 Aws::String m_eventType;
278 bool m_eventTypeHasBeenSet = false;
279
280 Aws::String m_datasetGroupArn;
281 bool m_datasetGroupArnHasBeenSet = false;
282
283 SolutionConfig m_solutionConfig;
284 bool m_solutionConfigHasBeenSet = false;
285
286 double m_trainingHours{0.0};
287 bool m_trainingHoursHasBeenSet = false;
288
289 TrainingMode m_trainingMode{TrainingMode::NOT_SET};
290 bool m_trainingModeHasBeenSet = false;
291
292 TunedHPOParams m_tunedHPOParams;
293 bool m_tunedHPOParamsHasBeenSet = false;
294
295 Aws::String m_status;
296 bool m_statusHasBeenSet = false;
297
298 Aws::String m_failureReason;
299 bool m_failureReasonHasBeenSet = false;
300
301 Aws::Utils::DateTime m_creationDateTime{};
302 bool m_creationDateTimeHasBeenSet = false;
303
304 Aws::Utils::DateTime m_lastUpdatedDateTime{};
305 bool m_lastUpdatedDateTimeHasBeenSet = false;
306
307 TrainingType m_trainingType{TrainingType::NOT_SET};
308 bool m_trainingTypeHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace Personalize
313} // 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 & 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