AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePredictorRequest.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/forecast/ForecastServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/forecast/model/AutoMLOverrideStrategy.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/forecast/model/EvaluationParameters.h>
14#include <aws/forecast/model/HyperParameterTuningJobConfig.h>
15#include <aws/forecast/model/InputDataConfig.h>
16#include <aws/forecast/model/FeaturizationConfig.h>
17#include <aws/forecast/model/EncryptionConfig.h>
18#include <aws/forecast/model/OptimizationMetric.h>
19#include <aws/forecast/model/Tag.h>
20#include <utility>
21
22namespace Aws
23{
24namespace ForecastService
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_FORECASTSERVICE_API CreatePredictorRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreatePredictor"; }
41
42 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
43
44 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
46
48
51 inline const Aws::String& GetPredictorName() const{ return m_predictorName; }
52 inline bool PredictorNameHasBeenSet() const { return m_predictorNameHasBeenSet; }
53 inline void SetPredictorName(const Aws::String& value) { m_predictorNameHasBeenSet = true; m_predictorName = value; }
54 inline void SetPredictorName(Aws::String&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::move(value); }
55 inline void SetPredictorName(const char* value) { m_predictorNameHasBeenSet = true; m_predictorName.assign(value); }
56 inline CreatePredictorRequest& WithPredictorName(const Aws::String& value) { SetPredictorName(value); return *this;}
57 inline CreatePredictorRequest& WithPredictorName(Aws::String&& value) { SetPredictorName(std::move(value)); return *this;}
58 inline CreatePredictorRequest& WithPredictorName(const char* value) { SetPredictorName(value); return *this;}
60
62
73 inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; }
74 inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
75 inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = value; }
76 inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::move(value); }
77 inline void SetAlgorithmArn(const char* value) { m_algorithmArnHasBeenSet = true; m_algorithmArn.assign(value); }
78 inline CreatePredictorRequest& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;}
79 inline CreatePredictorRequest& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;}
80 inline CreatePredictorRequest& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;}
82
84
93 inline int GetForecastHorizon() const{ return m_forecastHorizon; }
94 inline bool ForecastHorizonHasBeenSet() const { return m_forecastHorizonHasBeenSet; }
95 inline void SetForecastHorizon(int value) { m_forecastHorizonHasBeenSet = true; m_forecastHorizon = value; }
96 inline CreatePredictorRequest& WithForecastHorizon(int value) { SetForecastHorizon(value); return *this;}
98
100
107 inline const Aws::Vector<Aws::String>& GetForecastTypes() const{ return m_forecastTypes; }
108 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
109 inline void SetForecastTypes(const Aws::Vector<Aws::String>& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = value; }
110 inline void SetForecastTypes(Aws::Vector<Aws::String>&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::move(value); }
112 inline CreatePredictorRequest& WithForecastTypes(Aws::Vector<Aws::String>&& value) { SetForecastTypes(std::move(value)); return *this;}
113 inline CreatePredictorRequest& AddForecastTypes(const Aws::String& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
114 inline CreatePredictorRequest& AddForecastTypes(Aws::String&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(std::move(value)); return *this; }
115 inline CreatePredictorRequest& AddForecastTypes(const char* value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
117
119
128 inline bool GetPerformAutoML() const{ return m_performAutoML; }
129 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
130 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
131 inline CreatePredictorRequest& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
133
135
144 inline const AutoMLOverrideStrategy& GetAutoMLOverrideStrategy() const{ return m_autoMLOverrideStrategy; }
145 inline bool AutoMLOverrideStrategyHasBeenSet() const { return m_autoMLOverrideStrategyHasBeenSet; }
146 inline void SetAutoMLOverrideStrategy(const AutoMLOverrideStrategy& value) { m_autoMLOverrideStrategyHasBeenSet = true; m_autoMLOverrideStrategy = value; }
147 inline void SetAutoMLOverrideStrategy(AutoMLOverrideStrategy&& value) { m_autoMLOverrideStrategyHasBeenSet = true; m_autoMLOverrideStrategy = std::move(value); }
151
153
167 inline bool GetPerformHPO() const{ return m_performHPO; }
168 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
169 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
170 inline CreatePredictorRequest& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
172
174
179 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const{ return m_trainingParameters; }
180 inline bool TrainingParametersHasBeenSet() const { return m_trainingParametersHasBeenSet; }
181 inline void SetTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = value; }
182 inline void SetTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = std::move(value); }
185 inline CreatePredictorRequest& AddTrainingParameters(const Aws::String& key, const Aws::String& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, value); return *this; }
186 inline CreatePredictorRequest& AddTrainingParameters(Aws::String&& key, const Aws::String& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::move(key), value); return *this; }
187 inline CreatePredictorRequest& AddTrainingParameters(const Aws::String& key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, std::move(value)); return *this; }
188 inline CreatePredictorRequest& AddTrainingParameters(Aws::String&& key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::move(key), std::move(value)); return *this; }
189 inline CreatePredictorRequest& AddTrainingParameters(const char* key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, std::move(value)); return *this; }
190 inline CreatePredictorRequest& AddTrainingParameters(Aws::String&& key, const char* value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::move(key), value); return *this; }
191 inline CreatePredictorRequest& AddTrainingParameters(const char* key, const char* value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, value); return *this; }
193
195
201 inline const EvaluationParameters& GetEvaluationParameters() const{ return m_evaluationParameters; }
202 inline bool EvaluationParametersHasBeenSet() const { return m_evaluationParametersHasBeenSet; }
203 inline void SetEvaluationParameters(const EvaluationParameters& value) { m_evaluationParametersHasBeenSet = true; m_evaluationParameters = value; }
204 inline void SetEvaluationParameters(EvaluationParameters&& value) { m_evaluationParametersHasBeenSet = true; m_evaluationParameters = std::move(value); }
208
210
218 inline const HyperParameterTuningJobConfig& GetHPOConfig() const{ return m_hPOConfig; }
219 inline bool HPOConfigHasBeenSet() const { return m_hPOConfigHasBeenSet; }
220 inline void SetHPOConfig(const HyperParameterTuningJobConfig& value) { m_hPOConfigHasBeenSet = true; m_hPOConfig = value; }
221 inline void SetHPOConfig(HyperParameterTuningJobConfig&& value) { m_hPOConfigHasBeenSet = true; m_hPOConfig = std::move(value); }
223 inline CreatePredictorRequest& WithHPOConfig(HyperParameterTuningJobConfig&& value) { SetHPOConfig(std::move(value)); return *this;}
225
227
231 inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
232 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
233 inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
234 inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
236 inline CreatePredictorRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
238
240
243 inline const FeaturizationConfig& GetFeaturizationConfig() const{ return m_featurizationConfig; }
244 inline bool FeaturizationConfigHasBeenSet() const { return m_featurizationConfigHasBeenSet; }
245 inline void SetFeaturizationConfig(const FeaturizationConfig& value) { m_featurizationConfigHasBeenSet = true; m_featurizationConfig = value; }
246 inline void SetFeaturizationConfig(FeaturizationConfig&& value) { m_featurizationConfigHasBeenSet = true; m_featurizationConfig = std::move(value); }
250
252
256 inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
257 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
258 inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
259 inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
261 inline CreatePredictorRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
263
265
286 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
287 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
288 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
289 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
290 inline CreatePredictorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
291 inline CreatePredictorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
292 inline CreatePredictorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
293 inline CreatePredictorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
295
297
300 inline const OptimizationMetric& GetOptimizationMetric() const{ return m_optimizationMetric; }
301 inline bool OptimizationMetricHasBeenSet() const { return m_optimizationMetricHasBeenSet; }
302 inline void SetOptimizationMetric(const OptimizationMetric& value) { m_optimizationMetricHasBeenSet = true; m_optimizationMetric = value; }
303 inline void SetOptimizationMetric(OptimizationMetric&& value) { m_optimizationMetricHasBeenSet = true; m_optimizationMetric = std::move(value); }
307 private:
308
309 Aws::String m_predictorName;
310 bool m_predictorNameHasBeenSet = false;
311
312 Aws::String m_algorithmArn;
313 bool m_algorithmArnHasBeenSet = false;
314
315 int m_forecastHorizon;
316 bool m_forecastHorizonHasBeenSet = false;
317
318 Aws::Vector<Aws::String> m_forecastTypes;
319 bool m_forecastTypesHasBeenSet = false;
320
321 bool m_performAutoML;
322 bool m_performAutoMLHasBeenSet = false;
323
324 AutoMLOverrideStrategy m_autoMLOverrideStrategy;
325 bool m_autoMLOverrideStrategyHasBeenSet = false;
326
327 bool m_performHPO;
328 bool m_performHPOHasBeenSet = false;
329
330 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
331 bool m_trainingParametersHasBeenSet = false;
332
333 EvaluationParameters m_evaluationParameters;
334 bool m_evaluationParametersHasBeenSet = false;
335
337 bool m_hPOConfigHasBeenSet = false;
338
339 InputDataConfig m_inputDataConfig;
340 bool m_inputDataConfigHasBeenSet = false;
341
342 FeaturizationConfig m_featurizationConfig;
343 bool m_featurizationConfigHasBeenSet = false;
344
345 EncryptionConfig m_encryptionConfig;
346 bool m_encryptionConfigHasBeenSet = false;
347
348 Aws::Vector<Tag> m_tags;
349 bool m_tagsHasBeenSet = false;
350
351 OptimizationMetric m_optimizationMetric;
352 bool m_optimizationMetricHasBeenSet = false;
353 };
354
355} // namespace Model
356} // namespace ForecastService
357} // namespace Aws
void SetFeaturizationConfig(const FeaturizationConfig &value)
CreatePredictorRequest & WithAlgorithmArn(const Aws::String &value)
void SetHPOConfig(HyperParameterTuningJobConfig &&value)
CreatePredictorRequest & WithEncryptionConfig(const EncryptionConfig &value)
virtual const char * GetServiceRequestName() const override
CreatePredictorRequest & WithTrainingParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetTrainingParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTrainingParameters() const
CreatePredictorRequest & WithAutoMLOverrideStrategy(AutoMLOverrideStrategy &&value)
CreatePredictorRequest & WithHPOConfig(const HyperParameterTuningJobConfig &value)
const FeaturizationConfig & GetFeaturizationConfig() const
CreatePredictorRequest & AddTags(const Tag &value)
CreatePredictorRequest & WithEvaluationParameters(EvaluationParameters &&value)
void SetHPOConfig(const HyperParameterTuningJobConfig &value)
CreatePredictorRequest & WithPredictorName(const Aws::String &value)
void SetTrainingParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreatePredictorRequest & WithForecastHorizon(int value)
CreatePredictorRequest & AddTrainingParameters(const Aws::String &key, Aws::String &&value)
CreatePredictorRequest & WithTags(Aws::Vector< Tag > &&value)
void SetEvaluationParameters(const EvaluationParameters &value)
CreatePredictorRequest & WithAutoMLOverrideStrategy(const AutoMLOverrideStrategy &value)
CreatePredictorRequest & WithFeaturizationConfig(const FeaturizationConfig &value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreatePredictorRequest & WithInputDataConfig(const InputDataConfig &value)
CreatePredictorRequest & WithEvaluationParameters(const EvaluationParameters &value)
const HyperParameterTuningJobConfig & GetHPOConfig() const
void SetAutoMLOverrideStrategy(const AutoMLOverrideStrategy &value)
CreatePredictorRequest & WithOptimizationMetric(OptimizationMetric &&value)
void SetAutoMLOverrideStrategy(AutoMLOverrideStrategy &&value)
void SetOptimizationMetric(const OptimizationMetric &value)
CreatePredictorRequest & WithTrainingParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreatePredictorRequest & WithAlgorithmArn(Aws::String &&value)
CreatePredictorRequest & AddTrainingParameters(Aws::String &&key, Aws::String &&value)
CreatePredictorRequest & AddForecastTypes(const char *value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePredictorRequest & AddTrainingParameters(Aws::String &&key, const Aws::String &value)
CreatePredictorRequest & AddForecastTypes(Aws::String &&value)
const AutoMLOverrideStrategy & GetAutoMLOverrideStrategy() const
CreatePredictorRequest & AddTrainingParameters(const Aws::String &key, const Aws::String &value)
CreatePredictorRequest & AddForecastTypes(const Aws::String &value)
const Aws::Vector< Aws::String > & GetForecastTypes() const
const EvaluationParameters & GetEvaluationParameters() const
CreatePredictorRequest & AddTrainingParameters(const char *key, const char *value)
CreatePredictorRequest & WithPredictorName(const char *value)
void SetForecastTypes(Aws::Vector< Aws::String > &&value)
CreatePredictorRequest & AddTrainingParameters(const char *key, Aws::String &&value)
CreatePredictorRequest & WithOptimizationMetric(const OptimizationMetric &value)
CreatePredictorRequest & AddTrainingParameters(Aws::String &&key, const char *value)
CreatePredictorRequest & WithHPOConfig(HyperParameterTuningJobConfig &&value)
CreatePredictorRequest & WithPredictorName(Aws::String &&value)
void SetForecastTypes(const Aws::Vector< Aws::String > &value)
CreatePredictorRequest & WithAlgorithmArn(const char *value)
CreatePredictorRequest & WithForecastTypes(const Aws::Vector< Aws::String > &value)
CreatePredictorRequest & WithForecastTypes(Aws::Vector< Aws::String > &&value)
CreatePredictorRequest & WithFeaturizationConfig(FeaturizationConfig &&value)
CreatePredictorRequest & WithEncryptionConfig(EncryptionConfig &&value)
CreatePredictorRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePredictorRequest & WithInputDataConfig(InputDataConfig &&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