AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateMLModelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/machinelearning/MachineLearningRequest.h>
10#include <aws/machinelearning/MachineLearning_EXPORTS.h>
11#include <aws/machinelearning/model/MLModelType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MachineLearning {
17namespace Model {
18
22 public:
23 AWS_MACHINELEARNING_API CreateMLModelRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateMLModel"; }
30
31 AWS_MACHINELEARNING_API Aws::String SerializePayload() const override;
32
33 AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
40 inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
41 template <typename MLModelIdT = Aws::String>
42 void SetMLModelId(MLModelIdT&& value) {
43 m_mLModelIdHasBeenSet = true;
44 m_mLModelId = std::forward<MLModelIdT>(value);
45 }
46 template <typename MLModelIdT = Aws::String>
47 CreateMLModelRequest& WithMLModelId(MLModelIdT&& value) {
48 SetMLModelId(std::forward<MLModelIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMLModelName() const { return m_mLModelName; }
58 inline bool MLModelNameHasBeenSet() const { return m_mLModelNameHasBeenSet; }
59 template <typename MLModelNameT = Aws::String>
60 void SetMLModelName(MLModelNameT&& value) {
61 m_mLModelNameHasBeenSet = true;
62 m_mLModelName = std::forward<MLModelNameT>(value);
63 }
64 template <typename MLModelNameT = Aws::String>
65 CreateMLModelRequest& WithMLModelName(MLModelNameT&& value) {
66 SetMLModelName(std::forward<MLModelNameT>(value));
67 return *this;
68 }
70
72
83 inline MLModelType GetMLModelType() const { return m_mLModelType; }
84 inline bool MLModelTypeHasBeenSet() const { return m_mLModelTypeHasBeenSet; }
85 inline void SetMLModelType(MLModelType value) {
86 m_mLModelTypeHasBeenSet = true;
87 m_mLModelType = value;
88 }
90 SetMLModelType(value);
91 return *this;
92 }
94
96
128 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
129 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
130 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
131 void SetParameters(ParametersT&& value) {
132 m_parametersHasBeenSet = true;
133 m_parameters = std::forward<ParametersT>(value);
134 }
135 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
136 CreateMLModelRequest& WithParameters(ParametersT&& value) {
137 SetParameters(std::forward<ParametersT>(value));
138 return *this;
139 }
140 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
141 CreateMLModelRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
142 m_parametersHasBeenSet = true;
143 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetTrainingDataSourceId() const { return m_trainingDataSourceId; }
153 inline bool TrainingDataSourceIdHasBeenSet() const { return m_trainingDataSourceIdHasBeenSet; }
154 template <typename TrainingDataSourceIdT = Aws::String>
155 void SetTrainingDataSourceId(TrainingDataSourceIdT&& value) {
156 m_trainingDataSourceIdHasBeenSet = true;
157 m_trainingDataSourceId = std::forward<TrainingDataSourceIdT>(value);
158 }
159 template <typename TrainingDataSourceIdT = Aws::String>
160 CreateMLModelRequest& WithTrainingDataSourceId(TrainingDataSourceIdT&& value) {
161 SetTrainingDataSourceId(std::forward<TrainingDataSourceIdT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::String& GetRecipe() const { return m_recipe; }
173 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
174 template <typename RecipeT = Aws::String>
175 void SetRecipe(RecipeT&& value) {
176 m_recipeHasBeenSet = true;
177 m_recipe = std::forward<RecipeT>(value);
178 }
179 template <typename RecipeT = Aws::String>
181 SetRecipe(std::forward<RecipeT>(value));
182 return *this;
183 }
185
187
193 inline const Aws::String& GetRecipeUri() const { return m_recipeUri; }
194 inline bool RecipeUriHasBeenSet() const { return m_recipeUriHasBeenSet; }
195 template <typename RecipeUriT = Aws::String>
196 void SetRecipeUri(RecipeUriT&& value) {
197 m_recipeUriHasBeenSet = true;
198 m_recipeUri = std::forward<RecipeUriT>(value);
199 }
200 template <typename RecipeUriT = Aws::String>
201 CreateMLModelRequest& WithRecipeUri(RecipeUriT&& value) {
202 SetRecipeUri(std::forward<RecipeUriT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_mLModelId;
208
209 Aws::String m_mLModelName;
210
211 MLModelType m_mLModelType{MLModelType::NOT_SET};
212
214
215 Aws::String m_trainingDataSourceId;
216
217 Aws::String m_recipe;
218
219 Aws::String m_recipeUri;
220 bool m_mLModelIdHasBeenSet = false;
221 bool m_mLModelNameHasBeenSet = false;
222 bool m_mLModelTypeHasBeenSet = false;
223 bool m_parametersHasBeenSet = false;
224 bool m_trainingDataSourceIdHasBeenSet = false;
225 bool m_recipeHasBeenSet = false;
226 bool m_recipeUriHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace MachineLearning
231} // namespace Aws
CreateMLModelRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateMLModelRequest & WithRecipeUri(RecipeUriT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
CreateMLModelRequest & WithMLModelName(MLModelNameT &&value)
AWS_MACHINELEARNING_API CreateMLModelRequest()=default
CreateMLModelRequest & WithRecipe(RecipeT &&value)
CreateMLModelRequest & WithParameters(ParametersT &&value)
AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTrainingDataSourceId(TrainingDataSourceIdT &&value)
CreateMLModelRequest & WithTrainingDataSourceId(TrainingDataSourceIdT &&value)
AWS_MACHINELEARNING_API Aws::String SerializePayload() const override
CreateMLModelRequest & WithMLModelType(MLModelType value)
CreateMLModelRequest & WithMLModelId(MLModelIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String