AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateSolutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/personalize/PersonalizeRequest.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/SolutionConfig.h>
12#include <aws/personalize/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Personalize {
18namespace Model {
19
23 public:
24 AWS_PERSONALIZE_API CreateSolutionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSolution"; }
31
32 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
33
34 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
61 inline bool GetPerformHPO() const { return m_performHPO; }
62 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
63 inline void SetPerformHPO(bool value) {
64 m_performHPOHasBeenSet = true;
65 m_performHPO = value;
66 }
68 SetPerformHPO(value);
69 return *this;
70 }
72
74
88 inline bool GetPerformAutoML() const { return m_performAutoML; }
89 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
90 inline void SetPerformAutoML(bool value) {
91 m_performAutoMLHasBeenSet = true;
92 m_performAutoML = value;
93 }
95 SetPerformAutoML(value);
96 return *this;
97 }
99
101
119 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
120 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
121 inline void SetPerformAutoTraining(bool value) {
122 m_performAutoTrainingHasBeenSet = true;
123 m_performAutoTraining = value;
124 }
127 return *this;
128 }
130
132
138 inline bool GetPerformIncrementalUpdate() const { return m_performIncrementalUpdate; }
139 inline bool PerformIncrementalUpdateHasBeenSet() const { return m_performIncrementalUpdateHasBeenSet; }
140 inline void SetPerformIncrementalUpdate(bool value) {
141 m_performIncrementalUpdateHasBeenSet = true;
142 m_performIncrementalUpdate = value;
143 }
146 return *this;
147 }
149
151
158 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
159 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
160 template <typename RecipeArnT = Aws::String>
161 void SetRecipeArn(RecipeArnT&& value) {
162 m_recipeArnHasBeenSet = true;
163 m_recipeArn = std::forward<RecipeArnT>(value);
164 }
165 template <typename RecipeArnT = Aws::String>
167 SetRecipeArn(std::forward<RecipeArnT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
178 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
179 template <typename DatasetGroupArnT = Aws::String>
180 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
181 m_datasetGroupArnHasBeenSet = true;
182 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
183 }
184 template <typename DatasetGroupArnT = Aws::String>
185 CreateSolutionRequest& WithDatasetGroupArn(DatasetGroupArnT&& value) {
186 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
187 return *this;
188 }
190
192
199 inline const Aws::String& GetEventType() const { return m_eventType; }
200 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
201 template <typename EventTypeT = Aws::String>
202 void SetEventType(EventTypeT&& value) {
203 m_eventTypeHasBeenSet = true;
204 m_eventType = std::forward<EventTypeT>(value);
205 }
206 template <typename EventTypeT = Aws::String>
208 SetEventType(std::forward<EventTypeT>(value));
209 return *this;
210 }
212
214
221 inline const SolutionConfig& GetSolutionConfig() const { return m_solutionConfig; }
222 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
223 template <typename SolutionConfigT = SolutionConfig>
224 void SetSolutionConfig(SolutionConfigT&& value) {
225 m_solutionConfigHasBeenSet = true;
226 m_solutionConfig = std::forward<SolutionConfigT>(value);
227 }
228 template <typename SolutionConfigT = SolutionConfig>
229 CreateSolutionRequest& WithSolutionConfig(SolutionConfigT&& value) {
230 SetSolutionConfig(std::forward<SolutionConfigT>(value));
231 return *this;
232 }
234
236
241 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
242 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
243 template <typename TagsT = Aws::Vector<Tag>>
244 void SetTags(TagsT&& value) {
245 m_tagsHasBeenSet = true;
246 m_tags = std::forward<TagsT>(value);
247 }
248 template <typename TagsT = Aws::Vector<Tag>>
250 SetTags(std::forward<TagsT>(value));
251 return *this;
252 }
253 template <typename TagsT = Tag>
255 m_tagsHasBeenSet = true;
256 m_tags.emplace_back(std::forward<TagsT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_name;
262
263 bool m_performHPO{false};
264
265 bool m_performAutoML{false};
266
267 bool m_performAutoTraining{false};
268
269 bool m_performIncrementalUpdate{false};
270
271 Aws::String m_recipeArn;
272
273 Aws::String m_datasetGroupArn;
274
275 Aws::String m_eventType;
276
277 SolutionConfig m_solutionConfig;
278
279 Aws::Vector<Tag> m_tags;
280 bool m_nameHasBeenSet = false;
281 bool m_performHPOHasBeenSet = false;
282 bool m_performAutoMLHasBeenSet = false;
283 bool m_performAutoTrainingHasBeenSet = false;
284 bool m_performIncrementalUpdateHasBeenSet = false;
285 bool m_recipeArnHasBeenSet = false;
286 bool m_datasetGroupArnHasBeenSet = false;
287 bool m_eventTypeHasBeenSet = false;
288 bool m_solutionConfigHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace Personalize
294} // namespace Aws
CreateSolutionRequest & WithPerformIncrementalUpdate(bool value)
CreateSolutionRequest & WithPerformHPO(bool value)
CreateSolutionRequest & WithPerformAutoTraining(bool value)
virtual const char * GetServiceRequestName() const override
CreateSolutionRequest & AddTags(TagsT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateSolutionRequest & WithRecipeArn(RecipeArnT &&value)
CreateSolutionRequest & WithEventType(EventTypeT &&value)
CreateSolutionRequest & WithSolutionConfig(SolutionConfigT &&value)
CreateSolutionRequest & WithDatasetGroupArn(DatasetGroupArnT &&value)
AWS_PERSONALIZE_API CreateSolutionRequest()=default
CreateSolutionRequest & WithPerformAutoML(bool value)
CreateSolutionRequest & WithTags(TagsT &&value)
CreateSolutionRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector