AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPredictorName(const Aws::String& value) { m_predictorNameHasBeenSet = true; m_predictorName = value; }
51 inline void SetPredictorName(Aws::String&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::move(value); }
52 inline void SetPredictorName(const char* value) { m_predictorNameHasBeenSet = true; m_predictorName.assign(value); }
53 inline CreateAutoPredictorRequest& WithPredictorName(const Aws::String& value) { SetPredictorName(value); return *this;}
54 inline CreateAutoPredictorRequest& WithPredictorName(Aws::String&& value) { SetPredictorName(std::move(value)); return *this;}
55 inline CreateAutoPredictorRequest& WithPredictorName(const char* value) { SetPredictorName(value); return *this;}
57
59
69 inline int GetForecastHorizon() const{ return m_forecastHorizon; }
70 inline bool ForecastHorizonHasBeenSet() const { return m_forecastHorizonHasBeenSet; }
71 inline void SetForecastHorizon(int value) { m_forecastHorizonHasBeenSet = true; m_forecastHorizon = value; }
72 inline CreateAutoPredictorRequest& WithForecastHorizon(int value) { SetForecastHorizon(value); return *this;}
74
76
82 inline const Aws::Vector<Aws::String>& GetForecastTypes() const{ return m_forecastTypes; }
83 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
84 inline void SetForecastTypes(const Aws::Vector<Aws::String>& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = value; }
85 inline void SetForecastTypes(Aws::Vector<Aws::String>&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::move(value); }
88 inline CreateAutoPredictorRequest& AddForecastTypes(const Aws::String& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
89 inline CreateAutoPredictorRequest& AddForecastTypes(Aws::String&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(std::move(value)); return *this; }
90 inline CreateAutoPredictorRequest& AddForecastTypes(const char* value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
92
94
101 inline const Aws::Vector<Aws::String>& GetForecastDimensions() const{ return m_forecastDimensions; }
102 inline bool ForecastDimensionsHasBeenSet() const { return m_forecastDimensionsHasBeenSet; }
103 inline void SetForecastDimensions(const Aws::Vector<Aws::String>& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions = value; }
104 inline void SetForecastDimensions(Aws::Vector<Aws::String>&& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions = std::move(value); }
107 inline CreateAutoPredictorRequest& AddForecastDimensions(const Aws::String& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.push_back(value); return *this; }
108 inline CreateAutoPredictorRequest& AddForecastDimensions(Aws::String&& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.push_back(std::move(value)); return *this; }
109 inline CreateAutoPredictorRequest& AddForecastDimensions(const char* value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.push_back(value); return *this; }
111
113
129 inline const Aws::String& GetForecastFrequency() const{ return m_forecastFrequency; }
130 inline bool ForecastFrequencyHasBeenSet() const { return m_forecastFrequencyHasBeenSet; }
131 inline void SetForecastFrequency(const Aws::String& value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency = value; }
132 inline void SetForecastFrequency(Aws::String&& value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency = std::move(value); }
133 inline void SetForecastFrequency(const char* value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency.assign(value); }
135 inline CreateAutoPredictorRequest& WithForecastFrequency(Aws::String&& value) { SetForecastFrequency(std::move(value)); return *this;}
136 inline CreateAutoPredictorRequest& WithForecastFrequency(const char* value) { SetForecastFrequency(value); return *this;}
138
140
144 inline const DataConfig& GetDataConfig() const{ return m_dataConfig; }
145 inline bool DataConfigHasBeenSet() const { return m_dataConfigHasBeenSet; }
146 inline void SetDataConfig(const DataConfig& value) { m_dataConfigHasBeenSet = true; m_dataConfig = value; }
147 inline void SetDataConfig(DataConfig&& value) { m_dataConfigHasBeenSet = true; m_dataConfig = std::move(value); }
148 inline CreateAutoPredictorRequest& WithDataConfig(const DataConfig& value) { SetDataConfig(value); return *this;}
149 inline CreateAutoPredictorRequest& WithDataConfig(DataConfig&& value) { SetDataConfig(std::move(value)); return *this;}
151
153
154 inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
155 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
156 inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
157 inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
159 inline CreateAutoPredictorRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
161
163
171 inline const Aws::String& GetReferencePredictorArn() const{ return m_referencePredictorArn; }
172 inline bool ReferencePredictorArnHasBeenSet() const { return m_referencePredictorArnHasBeenSet; }
173 inline void SetReferencePredictorArn(const Aws::String& value) { m_referencePredictorArnHasBeenSet = true; m_referencePredictorArn = value; }
174 inline void SetReferencePredictorArn(Aws::String&& value) { m_referencePredictorArnHasBeenSet = true; m_referencePredictorArn = std::move(value); }
175 inline void SetReferencePredictorArn(const char* value) { m_referencePredictorArnHasBeenSet = true; m_referencePredictorArn.assign(value); }
178 inline CreateAutoPredictorRequest& WithReferencePredictorArn(const char* value) { SetReferencePredictorArn(value); return *this;}
180
182
185 inline const OptimizationMetric& GetOptimizationMetric() const{ return m_optimizationMetric; }
186 inline bool OptimizationMetricHasBeenSet() const { return m_optimizationMetricHasBeenSet; }
187 inline void SetOptimizationMetric(const OptimizationMetric& value) { m_optimizationMetricHasBeenSet = true; m_optimizationMetric = value; }
188 inline void SetOptimizationMetric(OptimizationMetric&& value) { m_optimizationMetricHasBeenSet = true; m_optimizationMetric = std::move(value); }
192
194
197 inline bool GetExplainPredictor() const{ return m_explainPredictor; }
198 inline bool ExplainPredictorHasBeenSet() const { return m_explainPredictorHasBeenSet; }
199 inline void SetExplainPredictor(bool value) { m_explainPredictorHasBeenSet = true; m_explainPredictor = value; }
200 inline CreateAutoPredictorRequest& WithExplainPredictor(bool value) { SetExplainPredictor(value); return *this;}
202
204
223 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
224 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
226 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
227 inline CreateAutoPredictorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
228 inline CreateAutoPredictorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
229 inline CreateAutoPredictorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
230 inline CreateAutoPredictorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
232
234
242 inline const MonitorConfig& GetMonitorConfig() const{ return m_monitorConfig; }
243 inline bool MonitorConfigHasBeenSet() const { return m_monitorConfigHasBeenSet; }
244 inline void SetMonitorConfig(const MonitorConfig& value) { m_monitorConfigHasBeenSet = true; m_monitorConfig = value; }
245 inline void SetMonitorConfig(MonitorConfig&& value) { m_monitorConfigHasBeenSet = true; m_monitorConfig = std::move(value); }
246 inline CreateAutoPredictorRequest& WithMonitorConfig(const MonitorConfig& value) { SetMonitorConfig(value); return *this;}
247 inline CreateAutoPredictorRequest& WithMonitorConfig(MonitorConfig&& value) { SetMonitorConfig(std::move(value)); return *this;}
249
251
262 inline const TimeAlignmentBoundary& GetTimeAlignmentBoundary() const{ return m_timeAlignmentBoundary; }
263 inline bool TimeAlignmentBoundaryHasBeenSet() const { return m_timeAlignmentBoundaryHasBeenSet; }
264 inline void SetTimeAlignmentBoundary(const TimeAlignmentBoundary& value) { m_timeAlignmentBoundaryHasBeenSet = true; m_timeAlignmentBoundary = value; }
265 inline void SetTimeAlignmentBoundary(TimeAlignmentBoundary&& value) { m_timeAlignmentBoundaryHasBeenSet = true; m_timeAlignmentBoundary = std::move(value); }
269 private:
270
271 Aws::String m_predictorName;
272 bool m_predictorNameHasBeenSet = false;
273
274 int m_forecastHorizon;
275 bool m_forecastHorizonHasBeenSet = false;
276
277 Aws::Vector<Aws::String> m_forecastTypes;
278 bool m_forecastTypesHasBeenSet = false;
279
280 Aws::Vector<Aws::String> m_forecastDimensions;
281 bool m_forecastDimensionsHasBeenSet = false;
282
283 Aws::String m_forecastFrequency;
284 bool m_forecastFrequencyHasBeenSet = false;
285
286 DataConfig m_dataConfig;
287 bool m_dataConfigHasBeenSet = false;
288
289 EncryptionConfig m_encryptionConfig;
290 bool m_encryptionConfigHasBeenSet = false;
291
292 Aws::String m_referencePredictorArn;
293 bool m_referencePredictorArnHasBeenSet = false;
294
295 OptimizationMetric m_optimizationMetric;
296 bool m_optimizationMetricHasBeenSet = false;
297
298 bool m_explainPredictor;
299 bool m_explainPredictorHasBeenSet = false;
300
301 Aws::Vector<Tag> m_tags;
302 bool m_tagsHasBeenSet = false;
303
304 MonitorConfig m_monitorConfig;
305 bool m_monitorConfigHasBeenSet = false;
306
307 TimeAlignmentBoundary m_timeAlignmentBoundary;
308 bool m_timeAlignmentBoundaryHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace ForecastService
313} // namespace Aws
void SetForecastDimensions(const Aws::Vector< Aws::String > &value)
CreateAutoPredictorRequest & WithPredictorName(Aws::String &&value)
CreateAutoPredictorRequest & AddForecastTypes(const char *value)
CreateAutoPredictorRequest & WithPredictorName(const Aws::String &value)
CreateAutoPredictorRequest & AddForecastTypes(Aws::String &&value)
CreateAutoPredictorRequest & WithForecastDimensions(const Aws::Vector< Aws::String > &value)
CreateAutoPredictorRequest & WithForecastTypes(const Aws::Vector< Aws::String > &value)
CreateAutoPredictorRequest & AddForecastTypes(const Aws::String &value)
CreateAutoPredictorRequest & WithMonitorConfig(const MonitorConfig &value)
void SetForecastTypes(const Aws::Vector< Aws::String > &value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateAutoPredictorRequest & WithEncryptionConfig(const EncryptionConfig &value)
CreateAutoPredictorRequest & WithOptimizationMetric(OptimizationMetric &&value)
CreateAutoPredictorRequest & WithForecastFrequency(Aws::String &&value)
CreateAutoPredictorRequest & WithReferencePredictorArn(const Aws::String &value)
CreateAutoPredictorRequest & WithForecastDimensions(Aws::Vector< Aws::String > &&value)
CreateAutoPredictorRequest & WithTimeAlignmentBoundary(TimeAlignmentBoundary &&value)
CreateAutoPredictorRequest & WithReferencePredictorArn(Aws::String &&value)
CreateAutoPredictorRequest & WithDataConfig(DataConfig &&value)
CreateAutoPredictorRequest & WithReferencePredictorArn(const char *value)
CreateAutoPredictorRequest & AddForecastDimensions(const Aws::String &value)
CreateAutoPredictorRequest & WithForecastFrequency(const Aws::String &value)
CreateAutoPredictorRequest & AddTags(const Tag &value)
CreateAutoPredictorRequest & WithDataConfig(const DataConfig &value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetForecastDimensions() const
CreateAutoPredictorRequest & WithOptimizationMetric(const OptimizationMetric &value)
CreateAutoPredictorRequest & AddForecastDimensions(Aws::String &&value)
CreateAutoPredictorRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAutoPredictorRequest & WithForecastFrequency(const char *value)
CreateAutoPredictorRequest & AddForecastDimensions(const char *value)
void SetTimeAlignmentBoundary(const TimeAlignmentBoundary &value)
CreateAutoPredictorRequest & WithEncryptionConfig(EncryptionConfig &&value)
CreateAutoPredictorRequest & WithMonitorConfig(MonitorConfig &&value)
CreateAutoPredictorRequest & WithPredictorName(const char *value)
CreateAutoPredictorRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAutoPredictorRequest & WithTimeAlignmentBoundary(const TimeAlignmentBoundary &value)
CreateAutoPredictorRequest & WithForecastTypes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetForecastTypes() const
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