AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreatePredictorRequest.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/forecast/ForecastServiceRequest.h>
11#include <aws/forecast/ForecastService_EXPORTS.h>
12#include <aws/forecast/model/AutoMLOverrideStrategy.h>
13#include <aws/forecast/model/EncryptionConfig.h>
14#include <aws/forecast/model/EvaluationParameters.h>
15#include <aws/forecast/model/FeaturizationConfig.h>
16#include <aws/forecast/model/HyperParameterTuningJobConfig.h>
17#include <aws/forecast/model/InputDataConfig.h>
18#include <aws/forecast/model/OptimizationMetric.h>
19#include <aws/forecast/model/Tag.h>
20
21#include <utility>
22
23namespace Aws {
24namespace ForecastService {
25namespace Model {
26
30 public:
31 AWS_FORECASTSERVICE_API CreatePredictorRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreatePredictor"; }
38
39 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
44
47 inline const Aws::String& GetPredictorName() const { return m_predictorName; }
48 inline bool PredictorNameHasBeenSet() const { return m_predictorNameHasBeenSet; }
49 template <typename PredictorNameT = Aws::String>
50 void SetPredictorName(PredictorNameT&& value) {
51 m_predictorNameHasBeenSet = true;
52 m_predictorName = std::forward<PredictorNameT>(value);
53 }
54 template <typename PredictorNameT = Aws::String>
55 CreatePredictorRequest& WithPredictorName(PredictorNameT&& value) {
56 SetPredictorName(std::forward<PredictorNameT>(value));
57 return *this;
58 }
60
62
73 inline const Aws::String& GetAlgorithmArn() const { return m_algorithmArn; }
74 inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
75 template <typename AlgorithmArnT = Aws::String>
76 void SetAlgorithmArn(AlgorithmArnT&& value) {
77 m_algorithmArnHasBeenSet = true;
78 m_algorithmArn = std::forward<AlgorithmArnT>(value);
79 }
80 template <typename AlgorithmArnT = Aws::String>
81 CreatePredictorRequest& WithAlgorithmArn(AlgorithmArnT&& value) {
82 SetAlgorithmArn(std::forward<AlgorithmArnT>(value));
83 return *this;
84 }
86
88
97 inline int GetForecastHorizon() const { return m_forecastHorizon; }
98 inline bool ForecastHorizonHasBeenSet() const { return m_forecastHorizonHasBeenSet; }
99 inline void SetForecastHorizon(int value) {
100 m_forecastHorizonHasBeenSet = true;
101 m_forecastHorizon = value;
102 }
104 SetForecastHorizon(value);
105 return *this;
106 }
108
110
117 inline const Aws::Vector<Aws::String>& GetForecastTypes() const { return m_forecastTypes; }
118 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
119 template <typename ForecastTypesT = Aws::Vector<Aws::String>>
120 void SetForecastTypes(ForecastTypesT&& value) {
121 m_forecastTypesHasBeenSet = true;
122 m_forecastTypes = std::forward<ForecastTypesT>(value);
123 }
124 template <typename ForecastTypesT = Aws::Vector<Aws::String>>
125 CreatePredictorRequest& WithForecastTypes(ForecastTypesT&& value) {
126 SetForecastTypes(std::forward<ForecastTypesT>(value));
127 return *this;
128 }
129 template <typename ForecastTypesT = Aws::String>
130 CreatePredictorRequest& AddForecastTypes(ForecastTypesT&& value) {
131 m_forecastTypesHasBeenSet = true;
132 m_forecastTypes.emplace_back(std::forward<ForecastTypesT>(value));
133 return *this;
134 }
136
138
147 inline bool GetPerformAutoML() const { return m_performAutoML; }
148 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
149 inline void SetPerformAutoML(bool value) {
150 m_performAutoMLHasBeenSet = true;
151 m_performAutoML = value;
152 }
154 SetPerformAutoML(value);
155 return *this;
156 }
158
160
169 inline AutoMLOverrideStrategy GetAutoMLOverrideStrategy() const { return m_autoMLOverrideStrategy; }
170 inline bool AutoMLOverrideStrategyHasBeenSet() const { return m_autoMLOverrideStrategyHasBeenSet; }
172 m_autoMLOverrideStrategyHasBeenSet = true;
173 m_autoMLOverrideStrategy = value;
174 }
180
182
196 inline bool GetPerformHPO() const { return m_performHPO; }
197 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
198 inline void SetPerformHPO(bool value) {
199 m_performHPOHasBeenSet = true;
200 m_performHPO = value;
201 }
203 SetPerformHPO(value);
204 return *this;
205 }
207
209
214 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const { return m_trainingParameters; }
215 inline bool TrainingParametersHasBeenSet() const { return m_trainingParametersHasBeenSet; }
216 template <typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
217 void SetTrainingParameters(TrainingParametersT&& value) {
218 m_trainingParametersHasBeenSet = true;
219 m_trainingParameters = std::forward<TrainingParametersT>(value);
220 }
221 template <typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
222 CreatePredictorRequest& WithTrainingParameters(TrainingParametersT&& value) {
223 SetTrainingParameters(std::forward<TrainingParametersT>(value));
224 return *this;
225 }
226 template <typename TrainingParametersKeyT = Aws::String, typename TrainingParametersValueT = Aws::String>
227 CreatePredictorRequest& AddTrainingParameters(TrainingParametersKeyT&& key, TrainingParametersValueT&& value) {
228 m_trainingParametersHasBeenSet = true;
229 m_trainingParameters.emplace(std::forward<TrainingParametersKeyT>(key), std::forward<TrainingParametersValueT>(value));
230 return *this;
231 }
233
235
241 inline const EvaluationParameters& GetEvaluationParameters() const { return m_evaluationParameters; }
242 inline bool EvaluationParametersHasBeenSet() const { return m_evaluationParametersHasBeenSet; }
243 template <typename EvaluationParametersT = EvaluationParameters>
244 void SetEvaluationParameters(EvaluationParametersT&& value) {
245 m_evaluationParametersHasBeenSet = true;
246 m_evaluationParameters = std::forward<EvaluationParametersT>(value);
247 }
248 template <typename EvaluationParametersT = EvaluationParameters>
249 CreatePredictorRequest& WithEvaluationParameters(EvaluationParametersT&& value) {
250 SetEvaluationParameters(std::forward<EvaluationParametersT>(value));
251 return *this;
252 }
254
256
264 inline const HyperParameterTuningJobConfig& GetHPOConfig() const { return m_hPOConfig; }
265 inline bool HPOConfigHasBeenSet() const { return m_hPOConfigHasBeenSet; }
266 template <typename HPOConfigT = HyperParameterTuningJobConfig>
267 void SetHPOConfig(HPOConfigT&& value) {
268 m_hPOConfigHasBeenSet = true;
269 m_hPOConfig = std::forward<HPOConfigT>(value);
270 }
271 template <typename HPOConfigT = HyperParameterTuningJobConfig>
273 SetHPOConfig(std::forward<HPOConfigT>(value));
274 return *this;
275 }
277
279
283 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
284 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
285 template <typename InputDataConfigT = InputDataConfig>
286 void SetInputDataConfig(InputDataConfigT&& value) {
287 m_inputDataConfigHasBeenSet = true;
288 m_inputDataConfig = std::forward<InputDataConfigT>(value);
289 }
290 template <typename InputDataConfigT = InputDataConfig>
291 CreatePredictorRequest& WithInputDataConfig(InputDataConfigT&& value) {
292 SetInputDataConfig(std::forward<InputDataConfigT>(value));
293 return *this;
294 }
296
298
301 inline const FeaturizationConfig& GetFeaturizationConfig() const { return m_featurizationConfig; }
302 inline bool FeaturizationConfigHasBeenSet() const { return m_featurizationConfigHasBeenSet; }
303 template <typename FeaturizationConfigT = FeaturizationConfig>
304 void SetFeaturizationConfig(FeaturizationConfigT&& value) {
305 m_featurizationConfigHasBeenSet = true;
306 m_featurizationConfig = std::forward<FeaturizationConfigT>(value);
307 }
308 template <typename FeaturizationConfigT = FeaturizationConfig>
309 CreatePredictorRequest& WithFeaturizationConfig(FeaturizationConfigT&& value) {
310 SetFeaturizationConfig(std::forward<FeaturizationConfigT>(value));
311 return *this;
312 }
314
316
320 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
321 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
322 template <typename EncryptionConfigT = EncryptionConfig>
323 void SetEncryptionConfig(EncryptionConfigT&& value) {
324 m_encryptionConfigHasBeenSet = true;
325 m_encryptionConfig = std::forward<EncryptionConfigT>(value);
326 }
327 template <typename EncryptionConfigT = EncryptionConfig>
328 CreatePredictorRequest& WithEncryptionConfig(EncryptionConfigT&& value) {
329 SetEncryptionConfig(std::forward<EncryptionConfigT>(value));
330 return *this;
331 }
333
335
356 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
357 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
358 template <typename TagsT = Aws::Vector<Tag>>
359 void SetTags(TagsT&& value) {
360 m_tagsHasBeenSet = true;
361 m_tags = std::forward<TagsT>(value);
362 }
363 template <typename TagsT = Aws::Vector<Tag>>
365 SetTags(std::forward<TagsT>(value));
366 return *this;
367 }
368 template <typename TagsT = Tag>
370 m_tagsHasBeenSet = true;
371 m_tags.emplace_back(std::forward<TagsT>(value));
372 return *this;
373 }
375
377
380 inline OptimizationMetric GetOptimizationMetric() const { return m_optimizationMetric; }
381 inline bool OptimizationMetricHasBeenSet() const { return m_optimizationMetricHasBeenSet; }
383 m_optimizationMetricHasBeenSet = true;
384 m_optimizationMetric = value;
385 }
388 return *this;
389 }
391 private:
392 Aws::String m_predictorName;
393
394 Aws::String m_algorithmArn;
395
396 int m_forecastHorizon{0};
397
398 Aws::Vector<Aws::String> m_forecastTypes;
399
400 bool m_performAutoML{false};
401
403
404 bool m_performHPO{false};
405
406 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
407
408 EvaluationParameters m_evaluationParameters;
409
410 HyperParameterTuningJobConfig m_hPOConfig;
411
412 InputDataConfig m_inputDataConfig;
413
414 FeaturizationConfig m_featurizationConfig;
415
416 EncryptionConfig m_encryptionConfig;
417
418 Aws::Vector<Tag> m_tags;
419
421 bool m_predictorNameHasBeenSet = false;
422 bool m_algorithmArnHasBeenSet = false;
423 bool m_forecastHorizonHasBeenSet = false;
424 bool m_forecastTypesHasBeenSet = false;
425 bool m_performAutoMLHasBeenSet = false;
426 bool m_autoMLOverrideStrategyHasBeenSet = false;
427 bool m_performHPOHasBeenSet = false;
428 bool m_trainingParametersHasBeenSet = false;
429 bool m_evaluationParametersHasBeenSet = false;
430 bool m_hPOConfigHasBeenSet = false;
431 bool m_inputDataConfigHasBeenSet = false;
432 bool m_featurizationConfigHasBeenSet = false;
433 bool m_encryptionConfigHasBeenSet = false;
434 bool m_tagsHasBeenSet = false;
435 bool m_optimizationMetricHasBeenSet = false;
436};
437
438} // namespace Model
439} // namespace ForecastService
440} // namespace Aws
CreatePredictorRequest & WithHPOConfig(HPOConfigT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTrainingParameters() const
CreatePredictorRequest & WithAlgorithmArn(AlgorithmArnT &&value)
const FeaturizationConfig & GetFeaturizationConfig() const
CreatePredictorRequest & WithAutoMLOverrideStrategy(AutoMLOverrideStrategy value)
CreatePredictorRequest & WithForecastTypes(ForecastTypesT &&value)
CreatePredictorRequest & WithInputDataConfig(InputDataConfigT &&value)
CreatePredictorRequest & WithTrainingParameters(TrainingParametersT &&value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
void SetAutoMLOverrideStrategy(AutoMLOverrideStrategy value)
CreatePredictorRequest & WithFeaturizationConfig(FeaturizationConfigT &&value)
const HyperParameterTuningJobConfig & GetHPOConfig() const
CreatePredictorRequest & AddForecastTypes(ForecastTypesT &&value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetForecastTypes() const
const EvaluationParameters & GetEvaluationParameters() const
AWS_FORECASTSERVICE_API CreatePredictorRequest()=default
void SetEvaluationParameters(EvaluationParametersT &&value)
CreatePredictorRequest & WithPredictorName(PredictorNameT &&value)
CreatePredictorRequest & WithEncryptionConfig(EncryptionConfigT &&value)
CreatePredictorRequest & WithOptimizationMetric(OptimizationMetric value)
CreatePredictorRequest & AddTrainingParameters(TrainingParametersKeyT &&key, TrainingParametersValueT &&value)
CreatePredictorRequest & WithEvaluationParameters(EvaluationParametersT &&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
std::vector< T, Aws::Allocator< T > > Vector