AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateForecastRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/forecast/ForecastServiceRequest.h>
10#include <aws/forecast/ForecastService_EXPORTS.h>
11#include <aws/forecast/model/Tag.h>
12#include <aws/forecast/model/TimeSeriesSelector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ForecastService {
18namespace Model {
19
23 public:
24 AWS_FORECASTSERVICE_API CreateForecastRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateForecast"; }
31
32 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetForecastName() const { return m_forecastName; }
41 inline bool ForecastNameHasBeenSet() const { return m_forecastNameHasBeenSet; }
42 template <typename ForecastNameT = Aws::String>
43 void SetForecastName(ForecastNameT&& value) {
44 m_forecastNameHasBeenSet = true;
45 m_forecastName = std::forward<ForecastNameT>(value);
46 }
47 template <typename ForecastNameT = Aws::String>
48 CreateForecastRequest& WithForecastName(ForecastNameT&& value) {
49 SetForecastName(std::forward<ForecastNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetPredictorArn() const { return m_predictorArn; }
60 inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
61 template <typename PredictorArnT = Aws::String>
62 void SetPredictorArn(PredictorArnT&& value) {
63 m_predictorArnHasBeenSet = true;
64 m_predictorArn = std::forward<PredictorArnT>(value);
65 }
66 template <typename PredictorArnT = Aws::String>
67 CreateForecastRequest& WithPredictorArn(PredictorArnT&& value) {
68 SetPredictorArn(std::forward<PredictorArnT>(value));
69 return *this;
70 }
72
74
84 inline const Aws::Vector<Aws::String>& GetForecastTypes() const { return m_forecastTypes; }
85 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
86 template <typename ForecastTypesT = Aws::Vector<Aws::String>>
87 void SetForecastTypes(ForecastTypesT&& value) {
88 m_forecastTypesHasBeenSet = true;
89 m_forecastTypes = std::forward<ForecastTypesT>(value);
90 }
91 template <typename ForecastTypesT = Aws::Vector<Aws::String>>
92 CreateForecastRequest& WithForecastTypes(ForecastTypesT&& value) {
93 SetForecastTypes(std::forward<ForecastTypesT>(value));
94 return *this;
95 }
96 template <typename ForecastTypesT = Aws::String>
97 CreateForecastRequest& AddForecastTypes(ForecastTypesT&& value) {
98 m_forecastTypesHasBeenSet = true;
99 m_forecastTypes.emplace_back(std::forward<ForecastTypesT>(value));
100 return *this;
101 }
103
105
126 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Vector<Tag>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Vector<Tag>>
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsT = Tag>
140 m_tagsHasBeenSet = true;
141 m_tags.emplace_back(std::forward<TagsT>(value));
142 return *this;
143 }
145
147
154 inline const TimeSeriesSelector& GetTimeSeriesSelector() const { return m_timeSeriesSelector; }
155 inline bool TimeSeriesSelectorHasBeenSet() const { return m_timeSeriesSelectorHasBeenSet; }
156 template <typename TimeSeriesSelectorT = TimeSeriesSelector>
157 void SetTimeSeriesSelector(TimeSeriesSelectorT&& value) {
158 m_timeSeriesSelectorHasBeenSet = true;
159 m_timeSeriesSelector = std::forward<TimeSeriesSelectorT>(value);
160 }
161 template <typename TimeSeriesSelectorT = TimeSeriesSelector>
162 CreateForecastRequest& WithTimeSeriesSelector(TimeSeriesSelectorT&& value) {
163 SetTimeSeriesSelector(std::forward<TimeSeriesSelectorT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_forecastName;
169
170 Aws::String m_predictorArn;
171
172 Aws::Vector<Aws::String> m_forecastTypes;
173
174 Aws::Vector<Tag> m_tags;
175
176 TimeSeriesSelector m_timeSeriesSelector;
177 bool m_forecastNameHasBeenSet = false;
178 bool m_predictorArnHasBeenSet = false;
179 bool m_forecastTypesHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181 bool m_timeSeriesSelectorHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace ForecastService
186} // namespace Aws
CreateForecastRequest & WithTimeSeriesSelector(TimeSeriesSelectorT &&value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateForecastRequest & WithPredictorArn(PredictorArnT &&value)
AWS_FORECASTSERVICE_API CreateForecastRequest()=default
CreateForecastRequest & WithForecastName(ForecastNameT &&value)
const Aws::Vector< Aws::String > & GetForecastTypes() const
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateForecastRequest & WithForecastTypes(ForecastTypesT &&value)
CreateForecastRequest & AddForecastTypes(ForecastTypesT &&value)
const TimeSeriesSelector & GetTimeSeriesSelector() const
CreateForecastRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
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