AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PredictorNameT = Aws::String>
54 void SetPredictorName(PredictorNameT&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::forward<PredictorNameT>(value); }
55 template<typename PredictorNameT = Aws::String>
56 CreatePredictorRequest& WithPredictorName(PredictorNameT&& value) { SetPredictorName(std::forward<PredictorNameT>(value)); return *this;}
58
60
71 inline const Aws::String& GetAlgorithmArn() const { return m_algorithmArn; }
72 inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
73 template<typename AlgorithmArnT = Aws::String>
74 void SetAlgorithmArn(AlgorithmArnT&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::forward<AlgorithmArnT>(value); }
75 template<typename AlgorithmArnT = Aws::String>
76 CreatePredictorRequest& WithAlgorithmArn(AlgorithmArnT&& value) { SetAlgorithmArn(std::forward<AlgorithmArnT>(value)); return *this;}
78
80
89 inline int GetForecastHorizon() const { return m_forecastHorizon; }
90 inline bool ForecastHorizonHasBeenSet() const { return m_forecastHorizonHasBeenSet; }
91 inline void SetForecastHorizon(int value) { m_forecastHorizonHasBeenSet = true; m_forecastHorizon = value; }
92 inline CreatePredictorRequest& WithForecastHorizon(int value) { SetForecastHorizon(value); return *this;}
94
96
103 inline const Aws::Vector<Aws::String>& GetForecastTypes() const { return m_forecastTypes; }
104 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
105 template<typename ForecastTypesT = Aws::Vector<Aws::String>>
106 void SetForecastTypes(ForecastTypesT&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::forward<ForecastTypesT>(value); }
107 template<typename ForecastTypesT = Aws::Vector<Aws::String>>
108 CreatePredictorRequest& WithForecastTypes(ForecastTypesT&& value) { SetForecastTypes(std::forward<ForecastTypesT>(value)); return *this;}
109 template<typename ForecastTypesT = Aws::String>
110 CreatePredictorRequest& AddForecastTypes(ForecastTypesT&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.emplace_back(std::forward<ForecastTypesT>(value)); return *this; }
112
114
123 inline bool GetPerformAutoML() const { return m_performAutoML; }
124 inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
125 inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
126 inline CreatePredictorRequest& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
128
130
139 inline AutoMLOverrideStrategy GetAutoMLOverrideStrategy() const { return m_autoMLOverrideStrategy; }
140 inline bool AutoMLOverrideStrategyHasBeenSet() const { return m_autoMLOverrideStrategyHasBeenSet; }
141 inline void SetAutoMLOverrideStrategy(AutoMLOverrideStrategy value) { m_autoMLOverrideStrategyHasBeenSet = true; m_autoMLOverrideStrategy = value; }
144
146
160 inline bool GetPerformHPO() const { return m_performHPO; }
161 inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
162 inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
163 inline CreatePredictorRequest& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
165
167
172 inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const { return m_trainingParameters; }
173 inline bool TrainingParametersHasBeenSet() const { return m_trainingParametersHasBeenSet; }
174 template<typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
175 void SetTrainingParameters(TrainingParametersT&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = std::forward<TrainingParametersT>(value); }
176 template<typename TrainingParametersT = Aws::Map<Aws::String, Aws::String>>
177 CreatePredictorRequest& WithTrainingParameters(TrainingParametersT&& value) { SetTrainingParameters(std::forward<TrainingParametersT>(value)); return *this;}
178 template<typename TrainingParametersKeyT = Aws::String, typename TrainingParametersValueT = Aws::String>
179 CreatePredictorRequest& AddTrainingParameters(TrainingParametersKeyT&& key, TrainingParametersValueT&& value) {
180 m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::forward<TrainingParametersKeyT>(key), std::forward<TrainingParametersValueT>(value)); return *this;
181 }
183
185
191 inline const EvaluationParameters& GetEvaluationParameters() const { return m_evaluationParameters; }
192 inline bool EvaluationParametersHasBeenSet() const { return m_evaluationParametersHasBeenSet; }
193 template<typename EvaluationParametersT = EvaluationParameters>
194 void SetEvaluationParameters(EvaluationParametersT&& value) { m_evaluationParametersHasBeenSet = true; m_evaluationParameters = std::forward<EvaluationParametersT>(value); }
195 template<typename EvaluationParametersT = EvaluationParameters>
196 CreatePredictorRequest& WithEvaluationParameters(EvaluationParametersT&& value) { SetEvaluationParameters(std::forward<EvaluationParametersT>(value)); return *this;}
198
200
208 inline const HyperParameterTuningJobConfig& GetHPOConfig() const { return m_hPOConfig; }
209 inline bool HPOConfigHasBeenSet() const { return m_hPOConfigHasBeenSet; }
210 template<typename HPOConfigT = HyperParameterTuningJobConfig>
211 void SetHPOConfig(HPOConfigT&& value) { m_hPOConfigHasBeenSet = true; m_hPOConfig = std::forward<HPOConfigT>(value); }
212 template<typename HPOConfigT = HyperParameterTuningJobConfig>
213 CreatePredictorRequest& WithHPOConfig(HPOConfigT&& value) { SetHPOConfig(std::forward<HPOConfigT>(value)); return *this;}
215
217
221 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
222 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
223 template<typename InputDataConfigT = InputDataConfig>
224 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
225 template<typename InputDataConfigT = InputDataConfig>
226 CreatePredictorRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
228
230
233 inline const FeaturizationConfig& GetFeaturizationConfig() const { return m_featurizationConfig; }
234 inline bool FeaturizationConfigHasBeenSet() const { return m_featurizationConfigHasBeenSet; }
235 template<typename FeaturizationConfigT = FeaturizationConfig>
236 void SetFeaturizationConfig(FeaturizationConfigT&& value) { m_featurizationConfigHasBeenSet = true; m_featurizationConfig = std::forward<FeaturizationConfigT>(value); }
237 template<typename FeaturizationConfigT = FeaturizationConfig>
238 CreatePredictorRequest& WithFeaturizationConfig(FeaturizationConfigT&& value) { SetFeaturizationConfig(std::forward<FeaturizationConfigT>(value)); return *this;}
240
242
246 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
247 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
248 template<typename EncryptionConfigT = EncryptionConfig>
249 void SetEncryptionConfig(EncryptionConfigT&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::forward<EncryptionConfigT>(value); }
250 template<typename EncryptionConfigT = EncryptionConfig>
251 CreatePredictorRequest& WithEncryptionConfig(EncryptionConfigT&& value) { SetEncryptionConfig(std::forward<EncryptionConfigT>(value)); return *this;}
253
255
276 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
277 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
278 template<typename TagsT = Aws::Vector<Tag>>
279 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
280 template<typename TagsT = Aws::Vector<Tag>>
281 CreatePredictorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
282 template<typename TagsT = Tag>
283 CreatePredictorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
285
287
290 inline OptimizationMetric GetOptimizationMetric() const { return m_optimizationMetric; }
291 inline bool OptimizationMetricHasBeenSet() const { return m_optimizationMetricHasBeenSet; }
292 inline void SetOptimizationMetric(OptimizationMetric value) { m_optimizationMetricHasBeenSet = true; m_optimizationMetric = value; }
295 private:
296
297 Aws::String m_predictorName;
298 bool m_predictorNameHasBeenSet = false;
299
300 Aws::String m_algorithmArn;
301 bool m_algorithmArnHasBeenSet = false;
302
303 int m_forecastHorizon{0};
304 bool m_forecastHorizonHasBeenSet = false;
305
306 Aws::Vector<Aws::String> m_forecastTypes;
307 bool m_forecastTypesHasBeenSet = false;
308
309 bool m_performAutoML{false};
310 bool m_performAutoMLHasBeenSet = false;
311
313 bool m_autoMLOverrideStrategyHasBeenSet = false;
314
315 bool m_performHPO{false};
316 bool m_performHPOHasBeenSet = false;
317
318 Aws::Map<Aws::String, Aws::String> m_trainingParameters;
319 bool m_trainingParametersHasBeenSet = false;
320
321 EvaluationParameters m_evaluationParameters;
322 bool m_evaluationParametersHasBeenSet = false;
323
324 HyperParameterTuningJobConfig m_hPOConfig;
325 bool m_hPOConfigHasBeenSet = false;
326
327 InputDataConfig m_inputDataConfig;
328 bool m_inputDataConfigHasBeenSet = false;
329
330 FeaturizationConfig m_featurizationConfig;
331 bool m_featurizationConfigHasBeenSet = false;
332
333 EncryptionConfig m_encryptionConfig;
334 bool m_encryptionConfigHasBeenSet = false;
335
336 Aws::Vector<Tag> m_tags;
337 bool m_tagsHasBeenSet = false;
338
340 bool m_optimizationMetricHasBeenSet = false;
341 };
342
343} // namespace Model
344} // namespace ForecastService
345} // 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 & WithForecastHorizon(int 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