AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename MLModelIdT = Aws::String>
46 void SetMLModelId(MLModelIdT&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::forward<MLModelIdT>(value); }
47 template<typename MLModelIdT = Aws::String>
48 CreateMLModelRequest& WithMLModelId(MLModelIdT&& value) { SetMLModelId(std::forward<MLModelIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetMLModelName() const { return m_mLModelName; }
56 inline bool MLModelNameHasBeenSet() const { return m_mLModelNameHasBeenSet; }
57 template<typename MLModelNameT = Aws::String>
58 void SetMLModelName(MLModelNameT&& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = std::forward<MLModelNameT>(value); }
59 template<typename MLModelNameT = Aws::String>
60 CreateMLModelRequest& WithMLModelName(MLModelNameT&& value) { SetMLModelName(std::forward<MLModelNameT>(value)); return *this;}
62
64
75 inline MLModelType GetMLModelType() const { return m_mLModelType; }
76 inline bool MLModelTypeHasBeenSet() const { return m_mLModelTypeHasBeenSet; }
77 inline void SetMLModelType(MLModelType value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
78 inline CreateMLModelRequest& WithMLModelType(MLModelType value) { SetMLModelType(value); return *this;}
80
82
114 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
115 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
116 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
117 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
118 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
119 CreateMLModelRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
120 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
121 CreateMLModelRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
122 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
123 }
125
127
130 inline const Aws::String& GetTrainingDataSourceId() const { return m_trainingDataSourceId; }
131 inline bool TrainingDataSourceIdHasBeenSet() const { return m_trainingDataSourceIdHasBeenSet; }
132 template<typename TrainingDataSourceIdT = Aws::String>
133 void SetTrainingDataSourceId(TrainingDataSourceIdT&& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = std::forward<TrainingDataSourceIdT>(value); }
134 template<typename TrainingDataSourceIdT = Aws::String>
135 CreateMLModelRequest& WithTrainingDataSourceId(TrainingDataSourceIdT&& value) { SetTrainingDataSourceId(std::forward<TrainingDataSourceIdT>(value)); return *this;}
137
139
144 inline const Aws::String& GetRecipe() const { return m_recipe; }
145 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
146 template<typename RecipeT = Aws::String>
147 void SetRecipe(RecipeT&& value) { m_recipeHasBeenSet = true; m_recipe = std::forward<RecipeT>(value); }
148 template<typename RecipeT = Aws::String>
149 CreateMLModelRequest& WithRecipe(RecipeT&& value) { SetRecipe(std::forward<RecipeT>(value)); return *this;}
151
153
159 inline const Aws::String& GetRecipeUri() const { return m_recipeUri; }
160 inline bool RecipeUriHasBeenSet() const { return m_recipeUriHasBeenSet; }
161 template<typename RecipeUriT = Aws::String>
162 void SetRecipeUri(RecipeUriT&& value) { m_recipeUriHasBeenSet = true; m_recipeUri = std::forward<RecipeUriT>(value); }
163 template<typename RecipeUriT = Aws::String>
164 CreateMLModelRequest& WithRecipeUri(RecipeUriT&& value) { SetRecipeUri(std::forward<RecipeUriT>(value)); return *this;}
166 private:
167
168 Aws::String m_mLModelId;
169 bool m_mLModelIdHasBeenSet = false;
170
171 Aws::String m_mLModelName;
172 bool m_mLModelNameHasBeenSet = false;
173
174 MLModelType m_mLModelType{MLModelType::NOT_SET};
175 bool m_mLModelTypeHasBeenSet = false;
176
178 bool m_parametersHasBeenSet = false;
179
180 Aws::String m_trainingDataSourceId;
181 bool m_trainingDataSourceIdHasBeenSet = false;
182
183 Aws::String m_recipe;
184 bool m_recipeHasBeenSet = false;
185
186 Aws::String m_recipeUri;
187 bool m_recipeUriHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace MachineLearning
192} // 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