AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAutoPredictorRequest.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/DataConfig.h>
12#include <aws/forecast/model/EncryptionConfig.h>
13#include <aws/forecast/model/OptimizationMetric.h>
14#include <aws/forecast/model/MonitorConfig.h>
15#include <aws/forecast/model/TimeAlignmentBoundary.h>
16#include <aws/forecast/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace ForecastService
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_FORECASTSERVICE_API CreateAutoPredictorRequest() = 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 "CreateAutoPredictor"; }
38
39 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetPredictorName() const { return m_predictorName; }
49 inline bool PredictorNameHasBeenSet() const { return m_predictorNameHasBeenSet; }
50 template<typename PredictorNameT = Aws::String>
51 void SetPredictorName(PredictorNameT&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::forward<PredictorNameT>(value); }
52 template<typename PredictorNameT = Aws::String>
53 CreateAutoPredictorRequest& WithPredictorName(PredictorNameT&& value) { SetPredictorName(std::forward<PredictorNameT>(value)); return *this;}
55
57
67 inline int GetForecastHorizon() const { return m_forecastHorizon; }
68 inline bool ForecastHorizonHasBeenSet() const { return m_forecastHorizonHasBeenSet; }
69 inline void SetForecastHorizon(int value) { m_forecastHorizonHasBeenSet = true; m_forecastHorizon = value; }
70 inline CreateAutoPredictorRequest& WithForecastHorizon(int value) { SetForecastHorizon(value); return *this;}
72
74
80 inline const Aws::Vector<Aws::String>& GetForecastTypes() const { return m_forecastTypes; }
81 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
82 template<typename ForecastTypesT = Aws::Vector<Aws::String>>
83 void SetForecastTypes(ForecastTypesT&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::forward<ForecastTypesT>(value); }
84 template<typename ForecastTypesT = Aws::Vector<Aws::String>>
85 CreateAutoPredictorRequest& WithForecastTypes(ForecastTypesT&& value) { SetForecastTypes(std::forward<ForecastTypesT>(value)); return *this;}
86 template<typename ForecastTypesT = Aws::String>
87 CreateAutoPredictorRequest& AddForecastTypes(ForecastTypesT&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.emplace_back(std::forward<ForecastTypesT>(value)); return *this; }
89
91
98 inline const Aws::Vector<Aws::String>& GetForecastDimensions() const { return m_forecastDimensions; }
99 inline bool ForecastDimensionsHasBeenSet() const { return m_forecastDimensionsHasBeenSet; }
100 template<typename ForecastDimensionsT = Aws::Vector<Aws::String>>
101 void SetForecastDimensions(ForecastDimensionsT&& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions = std::forward<ForecastDimensionsT>(value); }
102 template<typename ForecastDimensionsT = Aws::Vector<Aws::String>>
103 CreateAutoPredictorRequest& WithForecastDimensions(ForecastDimensionsT&& value) { SetForecastDimensions(std::forward<ForecastDimensionsT>(value)); return *this;}
104 template<typename ForecastDimensionsT = Aws::String>
105 CreateAutoPredictorRequest& AddForecastDimensions(ForecastDimensionsT&& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.emplace_back(std::forward<ForecastDimensionsT>(value)); return *this; }
107
109
125 inline const Aws::String& GetForecastFrequency() const { return m_forecastFrequency; }
126 inline bool ForecastFrequencyHasBeenSet() const { return m_forecastFrequencyHasBeenSet; }
127 template<typename ForecastFrequencyT = Aws::String>
128 void SetForecastFrequency(ForecastFrequencyT&& value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency = std::forward<ForecastFrequencyT>(value); }
129 template<typename ForecastFrequencyT = Aws::String>
130 CreateAutoPredictorRequest& WithForecastFrequency(ForecastFrequencyT&& value) { SetForecastFrequency(std::forward<ForecastFrequencyT>(value)); return *this;}
132
134
138 inline const DataConfig& GetDataConfig() const { return m_dataConfig; }
139 inline bool DataConfigHasBeenSet() const { return m_dataConfigHasBeenSet; }
140 template<typename DataConfigT = DataConfig>
141 void SetDataConfig(DataConfigT&& value) { m_dataConfigHasBeenSet = true; m_dataConfig = std::forward<DataConfigT>(value); }
142 template<typename DataConfigT = DataConfig>
143 CreateAutoPredictorRequest& WithDataConfig(DataConfigT&& value) { SetDataConfig(std::forward<DataConfigT>(value)); return *this;}
145
147
148 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
149 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
150 template<typename EncryptionConfigT = EncryptionConfig>
151 void SetEncryptionConfig(EncryptionConfigT&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::forward<EncryptionConfigT>(value); }
152 template<typename EncryptionConfigT = EncryptionConfig>
153 CreateAutoPredictorRequest& WithEncryptionConfig(EncryptionConfigT&& value) { SetEncryptionConfig(std::forward<EncryptionConfigT>(value)); return *this;}
155
157
165 inline const Aws::String& GetReferencePredictorArn() const { return m_referencePredictorArn; }
166 inline bool ReferencePredictorArnHasBeenSet() const { return m_referencePredictorArnHasBeenSet; }
167 template<typename ReferencePredictorArnT = Aws::String>
168 void SetReferencePredictorArn(ReferencePredictorArnT&& value) { m_referencePredictorArnHasBeenSet = true; m_referencePredictorArn = std::forward<ReferencePredictorArnT>(value); }
169 template<typename ReferencePredictorArnT = Aws::String>
170 CreateAutoPredictorRequest& WithReferencePredictorArn(ReferencePredictorArnT&& value) { SetReferencePredictorArn(std::forward<ReferencePredictorArnT>(value)); return *this;}
172
174
177 inline OptimizationMetric GetOptimizationMetric() const { return m_optimizationMetric; }
178 inline bool OptimizationMetricHasBeenSet() const { return m_optimizationMetricHasBeenSet; }
179 inline void SetOptimizationMetric(OptimizationMetric value) { m_optimizationMetricHasBeenSet = true; m_optimizationMetric = value; }
182
184
187 inline bool GetExplainPredictor() const { return m_explainPredictor; }
188 inline bool ExplainPredictorHasBeenSet() const { return m_explainPredictorHasBeenSet; }
189 inline void SetExplainPredictor(bool value) { m_explainPredictorHasBeenSet = true; m_explainPredictor = value; }
190 inline CreateAutoPredictorRequest& WithExplainPredictor(bool value) { SetExplainPredictor(value); return *this;}
192
194
213 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
214 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
215 template<typename TagsT = Aws::Vector<Tag>>
216 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
217 template<typename TagsT = Aws::Vector<Tag>>
218 CreateAutoPredictorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
219 template<typename TagsT = Tag>
220 CreateAutoPredictorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
222
224
232 inline const MonitorConfig& GetMonitorConfig() const { return m_monitorConfig; }
233 inline bool MonitorConfigHasBeenSet() const { return m_monitorConfigHasBeenSet; }
234 template<typename MonitorConfigT = MonitorConfig>
235 void SetMonitorConfig(MonitorConfigT&& value) { m_monitorConfigHasBeenSet = true; m_monitorConfig = std::forward<MonitorConfigT>(value); }
236 template<typename MonitorConfigT = MonitorConfig>
237 CreateAutoPredictorRequest& WithMonitorConfig(MonitorConfigT&& value) { SetMonitorConfig(std::forward<MonitorConfigT>(value)); return *this;}
239
241
252 inline const TimeAlignmentBoundary& GetTimeAlignmentBoundary() const { return m_timeAlignmentBoundary; }
253 inline bool TimeAlignmentBoundaryHasBeenSet() const { return m_timeAlignmentBoundaryHasBeenSet; }
254 template<typename TimeAlignmentBoundaryT = TimeAlignmentBoundary>
255 void SetTimeAlignmentBoundary(TimeAlignmentBoundaryT&& value) { m_timeAlignmentBoundaryHasBeenSet = true; m_timeAlignmentBoundary = std::forward<TimeAlignmentBoundaryT>(value); }
256 template<typename TimeAlignmentBoundaryT = TimeAlignmentBoundary>
257 CreateAutoPredictorRequest& WithTimeAlignmentBoundary(TimeAlignmentBoundaryT&& value) { SetTimeAlignmentBoundary(std::forward<TimeAlignmentBoundaryT>(value)); return *this;}
259 private:
260
261 Aws::String m_predictorName;
262 bool m_predictorNameHasBeenSet = false;
263
264 int m_forecastHorizon{0};
265 bool m_forecastHorizonHasBeenSet = false;
266
267 Aws::Vector<Aws::String> m_forecastTypes;
268 bool m_forecastTypesHasBeenSet = false;
269
270 Aws::Vector<Aws::String> m_forecastDimensions;
271 bool m_forecastDimensionsHasBeenSet = false;
272
273 Aws::String m_forecastFrequency;
274 bool m_forecastFrequencyHasBeenSet = false;
275
276 DataConfig m_dataConfig;
277 bool m_dataConfigHasBeenSet = false;
278
279 EncryptionConfig m_encryptionConfig;
280 bool m_encryptionConfigHasBeenSet = false;
281
282 Aws::String m_referencePredictorArn;
283 bool m_referencePredictorArnHasBeenSet = false;
284
286 bool m_optimizationMetricHasBeenSet = false;
287
288 bool m_explainPredictor{false};
289 bool m_explainPredictorHasBeenSet = false;
290
291 Aws::Vector<Tag> m_tags;
292 bool m_tagsHasBeenSet = false;
293
294 MonitorConfig m_monitorConfig;
295 bool m_monitorConfigHasBeenSet = false;
296
297 TimeAlignmentBoundary m_timeAlignmentBoundary;
298 bool m_timeAlignmentBoundaryHasBeenSet = false;
299 };
300
301} // namespace Model
302} // namespace ForecastService
303} // namespace Aws
CreateAutoPredictorRequest & WithTimeAlignmentBoundary(TimeAlignmentBoundaryT &&value)
CreateAutoPredictorRequest & AddForecastTypes(ForecastTypesT &&value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateAutoPredictorRequest & WithForecastDimensions(ForecastDimensionsT &&value)
CreateAutoPredictorRequest & WithReferencePredictorArn(ReferencePredictorArnT &&value)
CreateAutoPredictorRequest & WithForecastTypes(ForecastTypesT &&value)
CreateAutoPredictorRequest & WithPredictorName(PredictorNameT &&value)
CreateAutoPredictorRequest & WithMonitorConfig(MonitorConfigT &&value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetForecastDimensions() const
CreateAutoPredictorRequest & WithOptimizationMetric(OptimizationMetric value)
CreateAutoPredictorRequest & WithForecastFrequency(ForecastFrequencyT &&value)
CreateAutoPredictorRequest & WithEncryptionConfig(EncryptionConfigT &&value)
CreateAutoPredictorRequest & AddForecastDimensions(ForecastDimensionsT &&value)
AWS_FORECASTSERVICE_API CreateAutoPredictorRequest()=default
const Aws::Vector< Aws::String > & GetForecastTypes() const
CreateAutoPredictorRequest & WithDataConfig(DataConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector