AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateSolutionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
59 inline bool GetPerformHPO() const { return m_performHPO; }
60 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
61 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
62 inline CreateSolutionRequest& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
64
66
80 inline bool GetPerformAutoML() const { return m_performAutoML; }
81 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
82 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
83 inline CreateSolutionRequest& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
85
87
105 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
106 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
107 inline void SetPerformAutoTraining(bool value) { m_performAutoTrainingHasBeenSet = true; m_performAutoTraining = value; }
108 inline CreateSolutionRequest& WithPerformAutoTraining(bool value) { SetPerformAutoTraining(value); return *this;}
110
112
119 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
120 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
121 template<typename RecipeArnT = Aws::String>
122 void SetRecipeArn(RecipeArnT&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::forward<RecipeArnT>(value); }
123 template<typename RecipeArnT = Aws::String>
124 CreateSolutionRequest& WithRecipeArn(RecipeArnT&& value) { SetRecipeArn(std::forward<RecipeArnT>(value)); return *this;}
126
128
132 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
133 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
134 template<typename DatasetGroupArnT = Aws::String>
135 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
136 template<typename DatasetGroupArnT = Aws::String>
137 CreateSolutionRequest& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
139
141
148 inline const Aws::String& GetEventType() const { return m_eventType; }
149 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
150 template<typename EventTypeT = Aws::String>
151 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
152 template<typename EventTypeT = Aws::String>
153 CreateSolutionRequest& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
155
157
164 inline const SolutionConfig& GetSolutionConfig() const { return m_solutionConfig; }
165 inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
166 template<typename SolutionConfigT = SolutionConfig>
167 void SetSolutionConfig(SolutionConfigT&& value) { m_solutionConfigHasBeenSet = true; m_solutionConfig = std::forward<SolutionConfigT>(value); }
168 template<typename SolutionConfigT = SolutionConfig>
169 CreateSolutionRequest& WithSolutionConfig(SolutionConfigT&& value) { SetSolutionConfig(std::forward<SolutionConfigT>(value)); return *this;}
171
173
178 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template<typename TagsT = Aws::Vector<Tag>>
181 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
182 template<typename TagsT = Aws::Vector<Tag>>
183 CreateSolutionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
184 template<typename TagsT = Tag>
185 CreateSolutionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
187 private:
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 bool m_performHPO{false};
193 bool m_performHPOHasBeenSet = false;
194
195 bool m_performAutoML{false};
196 bool m_performAutoMLHasBeenSet = false;
197
198 bool m_performAutoTraining{false};
199 bool m_performAutoTrainingHasBeenSet = false;
200
201 Aws::String m_recipeArn;
202 bool m_recipeArnHasBeenSet = false;
203
204 Aws::String m_datasetGroupArn;
205 bool m_datasetGroupArnHasBeenSet = false;
206
207 Aws::String m_eventType;
208 bool m_eventTypeHasBeenSet = false;
209
210 SolutionConfig m_solutionConfig;
211 bool m_solutionConfigHasBeenSet = false;
212
213 Aws::Vector<Tag> m_tags;
214 bool m_tagsHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace Personalize
219} // namespace Aws
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