AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSolutionRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/SolutionConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Personalize
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZE_API CreateSolutionRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSolution"; }
34
35 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
36
37 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateSolutionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateSolutionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateSolutionRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
61 inline bool GetPerformHPO() const{ return m_performHPO; }
62 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
63 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
64 inline CreateSolutionRequest& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
66
68
82 inline bool GetPerformAutoML() const{ return m_performAutoML; }
83 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
84 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
85 inline CreateSolutionRequest& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
87
89
107 inline bool GetPerformAutoTraining() const{ return m_performAutoTraining; }
108 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
109 inline void SetPerformAutoTraining(bool value) { m_performAutoTrainingHasBeenSet = true; m_performAutoTraining = value; }
110 inline CreateSolutionRequest& WithPerformAutoTraining(bool value) { SetPerformAutoTraining(value); return *this;}
112
114
121 inline const Aws::String& GetRecipeArn() const{ return m_recipeArn; }
122 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
123 inline void SetRecipeArn(const Aws::String& value) { m_recipeArnHasBeenSet = true; m_recipeArn = value; }
124 inline void SetRecipeArn(Aws::String&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::move(value); }
125 inline void SetRecipeArn(const char* value) { m_recipeArnHasBeenSet = true; m_recipeArn.assign(value); }
126 inline CreateSolutionRequest& WithRecipeArn(const Aws::String& value) { SetRecipeArn(value); return *this;}
127 inline CreateSolutionRequest& WithRecipeArn(Aws::String&& value) { SetRecipeArn(std::move(value)); return *this;}
128 inline CreateSolutionRequest& WithRecipeArn(const char* value) { SetRecipeArn(value); return *this;}
130
132
136 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
137 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
138 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
139 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
140 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
141 inline CreateSolutionRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
142 inline CreateSolutionRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
143 inline CreateSolutionRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
145
147
154 inline const Aws::String& GetEventType() const{ return m_eventType; }
155 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
156 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
157 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
158 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
159 inline CreateSolutionRequest& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
160 inline CreateSolutionRequest& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
161 inline CreateSolutionRequest& WithEventType(const char* value) { SetEventType(value); return *this;}
163
165
172 inline const SolutionConfig& GetSolutionConfig() const{ return m_solutionConfig; }
173 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
174 inline void SetSolutionConfig(const SolutionConfig& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = value; }
175 inline void SetSolutionConfig(SolutionConfig&& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = std::move(value); }
176 inline CreateSolutionRequest& WithSolutionConfig(const SolutionConfig& value) { SetSolutionConfig(value); return *this;}
177 inline CreateSolutionRequest& WithSolutionConfig(SolutionConfig&& value) { SetSolutionConfig(std::move(value)); return *this;}
179
181
186 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
189 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
190 inline CreateSolutionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
191 inline CreateSolutionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
192 inline CreateSolutionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
193 inline CreateSolutionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
195 private:
196
197 Aws::String m_name;
198 bool m_nameHasBeenSet = false;
199
200 bool m_performHPO;
201 bool m_performHPOHasBeenSet = false;
202
203 bool m_performAutoML;
204 bool m_performAutoMLHasBeenSet = false;
205
206 bool m_performAutoTraining;
207 bool m_performAutoTrainingHasBeenSet = false;
208
209 Aws::String m_recipeArn;
210 bool m_recipeArnHasBeenSet = false;
211
212 Aws::String m_datasetGroupArn;
213 bool m_datasetGroupArnHasBeenSet = false;
214
215 Aws::String m_eventType;
216 bool m_eventTypeHasBeenSet = false;
217
218 SolutionConfig m_solutionConfig;
219 bool m_solutionConfigHasBeenSet = false;
220
221 Aws::Vector<Tag> m_tags;
222 bool m_tagsHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace Personalize
227} // namespace Aws
CreateSolutionRequest & WithRecipeArn(const char *value)
CreateSolutionRequest & WithDatasetGroupArn(Aws::String &&value)
CreateSolutionRequest & WithSolutionConfig(SolutionConfig &&value)
CreateSolutionRequest & WithName(const Aws::String &value)
CreateSolutionRequest & WithDatasetGroupArn(const Aws::String &value)
CreateSolutionRequest & WithEventType(const Aws::String &value)
CreateSolutionRequest & WithPerformHPO(bool value)
CreateSolutionRequest & WithPerformAutoTraining(bool value)
CreateSolutionRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
CreateSolutionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSolutionRequest & WithName(const char *value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSolutionRequest & WithDatasetGroupArn(const char *value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateSolutionRequest & WithEventType(const char *value)
CreateSolutionRequest & WithSolutionConfig(const SolutionConfig &value)
CreateSolutionRequest & AddTags(Tag &&value)
CreateSolutionRequest & WithRecipeArn(const Aws::String &value)
CreateSolutionRequest & WithRecipeArn(Aws::String &&value)
CreateSolutionRequest & WithEventType(Aws::String &&value)
void SetSolutionConfig(const SolutionConfig &value)
CreateSolutionRequest & WithPerformAutoML(bool value)
CreateSolutionRequest & WithName(Aws::String &&value)
CreateSolutionRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &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