AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMLModelRequest.h
1
6#pragma once
7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/machinelearning/MachineLearningRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/machinelearning/model/MLModelType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MachineLearning
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MACHINELEARNING_API CreateMLModelRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMLModel"; }
33
34 AWS_MACHINELEARNING_API Aws::String SerializePayload() const override;
35
36 AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
44 inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
45 inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
46 inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::move(value); }
47 inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
48 inline CreateMLModelRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
49 inline CreateMLModelRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(std::move(value)); return *this;}
50 inline CreateMLModelRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
52
54
57 inline const Aws::String& GetMLModelName() const{ return m_mLModelName; }
58 inline bool MLModelNameHasBeenSet() const { return m_mLModelNameHasBeenSet; }
59 inline void SetMLModelName(const Aws::String& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = value; }
60 inline void SetMLModelName(Aws::String&& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = std::move(value); }
61 inline void SetMLModelName(const char* value) { m_mLModelNameHasBeenSet = true; m_mLModelName.assign(value); }
62 inline CreateMLModelRequest& WithMLModelName(const Aws::String& value) { SetMLModelName(value); return *this;}
63 inline CreateMLModelRequest& WithMLModelName(Aws::String&& value) { SetMLModelName(std::move(value)); return *this;}
64 inline CreateMLModelRequest& WithMLModelName(const char* value) { SetMLModelName(value); return *this;}
66
68
79 inline const MLModelType& GetMLModelType() const{ return m_mLModelType; }
80 inline bool MLModelTypeHasBeenSet() const { return m_mLModelTypeHasBeenSet; }
81 inline void SetMLModelType(const MLModelType& value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
82 inline void SetMLModelType(MLModelType&& value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = std::move(value); }
83 inline CreateMLModelRequest& WithMLModelType(const MLModelType& value) { SetMLModelType(value); return *this;}
84 inline CreateMLModelRequest& WithMLModelType(MLModelType&& value) { SetMLModelType(std::move(value)); return *this;}
86
88
120 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
121 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
122 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
123 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
125 inline CreateMLModelRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
126 inline CreateMLModelRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
127 inline CreateMLModelRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
128 inline CreateMLModelRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
129 inline CreateMLModelRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
130 inline CreateMLModelRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
131 inline CreateMLModelRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
132 inline CreateMLModelRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
134
136
139 inline const Aws::String& GetTrainingDataSourceId() const{ return m_trainingDataSourceId; }
140 inline bool TrainingDataSourceIdHasBeenSet() const { return m_trainingDataSourceIdHasBeenSet; }
141 inline void SetTrainingDataSourceId(const Aws::String& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = value; }
142 inline void SetTrainingDataSourceId(Aws::String&& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = std::move(value); }
143 inline void SetTrainingDataSourceId(const char* value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId.assign(value); }
145 inline CreateMLModelRequest& WithTrainingDataSourceId(Aws::String&& value) { SetTrainingDataSourceId(std::move(value)); return *this;}
146 inline CreateMLModelRequest& WithTrainingDataSourceId(const char* value) { SetTrainingDataSourceId(value); return *this;}
148
150
155 inline const Aws::String& GetRecipe() const{ return m_recipe; }
156 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
157 inline void SetRecipe(const Aws::String& value) { m_recipeHasBeenSet = true; m_recipe = value; }
158 inline void SetRecipe(Aws::String&& value) { m_recipeHasBeenSet = true; m_recipe = std::move(value); }
159 inline void SetRecipe(const char* value) { m_recipeHasBeenSet = true; m_recipe.assign(value); }
160 inline CreateMLModelRequest& WithRecipe(const Aws::String& value) { SetRecipe(value); return *this;}
161 inline CreateMLModelRequest& WithRecipe(Aws::String&& value) { SetRecipe(std::move(value)); return *this;}
162 inline CreateMLModelRequest& WithRecipe(const char* value) { SetRecipe(value); return *this;}
164
166
172 inline const Aws::String& GetRecipeUri() const{ return m_recipeUri; }
173 inline bool RecipeUriHasBeenSet() const { return m_recipeUriHasBeenSet; }
174 inline void SetRecipeUri(const Aws::String& value) { m_recipeUriHasBeenSet = true; m_recipeUri = value; }
175 inline void SetRecipeUri(Aws::String&& value) { m_recipeUriHasBeenSet = true; m_recipeUri = std::move(value); }
176 inline void SetRecipeUri(const char* value) { m_recipeUriHasBeenSet = true; m_recipeUri.assign(value); }
177 inline CreateMLModelRequest& WithRecipeUri(const Aws::String& value) { SetRecipeUri(value); return *this;}
178 inline CreateMLModelRequest& WithRecipeUri(Aws::String&& value) { SetRecipeUri(std::move(value)); return *this;}
179 inline CreateMLModelRequest& WithRecipeUri(const char* value) { SetRecipeUri(value); return *this;}
181 private:
182
183 Aws::String m_mLModelId;
184 bool m_mLModelIdHasBeenSet = false;
185
186 Aws::String m_mLModelName;
187 bool m_mLModelNameHasBeenSet = false;
188
189 MLModelType m_mLModelType;
190 bool m_mLModelTypeHasBeenSet = false;
191
193 bool m_parametersHasBeenSet = false;
194
195 Aws::String m_trainingDataSourceId;
196 bool m_trainingDataSourceIdHasBeenSet = false;
197
198 Aws::String m_recipe;
199 bool m_recipeHasBeenSet = false;
200
201 Aws::String m_recipeUri;
202 bool m_recipeUriHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace MachineLearning
207} // namespace Aws
CreateMLModelRequest & WithMLModelType(const MLModelType &value)
CreateMLModelRequest & WithRecipe(const char *value)
CreateMLModelRequest & AddParameters(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateMLModelRequest & WithTrainingDataSourceId(const Aws::String &value)
CreateMLModelRequest & WithMLModelId(Aws::String &&value)
CreateMLModelRequest & WithMLModelType(MLModelType &&value)
CreateMLModelRequest & AddParameters(Aws::String &&key, const char *value)
CreateMLModelRequest & WithMLModelName(const Aws::String &value)
CreateMLModelRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateMLModelRequest & WithRecipeUri(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreateMLModelRequest & WithTrainingDataSourceId(Aws::String &&value)
CreateMLModelRequest & WithMLModelId(const Aws::String &value)
CreateMLModelRequest & AddParameters(const Aws::String &key, const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateMLModelRequest & WithRecipeUri(Aws::String &&value)
CreateMLModelRequest & WithRecipeUri(const Aws::String &value)
CreateMLModelRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMLModelRequest & AddParameters(Aws::String &&key, const Aws::String &value)
CreateMLModelRequest & WithTrainingDataSourceId(const char *value)
CreateMLModelRequest & AddParameters(const char *key, const char *value)
CreateMLModelRequest & WithRecipe(const Aws::String &value)
CreateMLModelRequest & WithMLModelName(const char *value)
CreateMLModelRequest & WithMLModelName(Aws::String &&value)
AWS_MACHINELEARNING_API Aws::String SerializePayload() const override
CreateMLModelRequest & AddParameters(const Aws::String &key, Aws::String &&value)
CreateMLModelRequest & WithRecipe(Aws::String &&value)
CreateMLModelRequest & AddParameters(Aws::String &&key, Aws::String &&value)
CreateMLModelRequest & WithMLModelId(const char *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