AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateForecastRequest.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/TimeSeriesSelector.h>
12#include <aws/forecast/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ForecastService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_FORECASTSERVICE_API CreateForecastRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateForecast"; }
34
35 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetForecastName() const { return m_forecastName; }
45 inline bool ForecastNameHasBeenSet() const { return m_forecastNameHasBeenSet; }
46 template<typename ForecastNameT = Aws::String>
47 void SetForecastName(ForecastNameT&& value) { m_forecastNameHasBeenSet = true; m_forecastName = std::forward<ForecastNameT>(value); }
48 template<typename ForecastNameT = Aws::String>
49 CreateForecastRequest& WithForecastName(ForecastNameT&& value) { SetForecastName(std::forward<ForecastNameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetPredictorArn() const { return m_predictorArn; }
58 inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
59 template<typename PredictorArnT = Aws::String>
60 void SetPredictorArn(PredictorArnT&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::forward<PredictorArnT>(value); }
61 template<typename PredictorArnT = Aws::String>
62 CreateForecastRequest& WithPredictorArn(PredictorArnT&& value) { SetPredictorArn(std::forward<PredictorArnT>(value)); return *this;}
64
66
76 inline const Aws::Vector<Aws::String>& GetForecastTypes() const { return m_forecastTypes; }
77 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
78 template<typename ForecastTypesT = Aws::Vector<Aws::String>>
79 void SetForecastTypes(ForecastTypesT&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::forward<ForecastTypesT>(value); }
80 template<typename ForecastTypesT = Aws::Vector<Aws::String>>
81 CreateForecastRequest& WithForecastTypes(ForecastTypesT&& value) { SetForecastTypes(std::forward<ForecastTypesT>(value)); return *this;}
82 template<typename ForecastTypesT = Aws::String>
83 CreateForecastRequest& AddForecastTypes(ForecastTypesT&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.emplace_back(std::forward<ForecastTypesT>(value)); return *this; }
85
87
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Vector<Tag>>
113 CreateForecastRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsT = Tag>
115 CreateForecastRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
117
119
126 inline const TimeSeriesSelector& GetTimeSeriesSelector() const { return m_timeSeriesSelector; }
127 inline bool TimeSeriesSelectorHasBeenSet() const { return m_timeSeriesSelectorHasBeenSet; }
128 template<typename TimeSeriesSelectorT = TimeSeriesSelector>
129 void SetTimeSeriesSelector(TimeSeriesSelectorT&& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = std::forward<TimeSeriesSelectorT>(value); }
130 template<typename TimeSeriesSelectorT = TimeSeriesSelector>
131 CreateForecastRequest& WithTimeSeriesSelector(TimeSeriesSelectorT&& value) { SetTimeSeriesSelector(std::forward<TimeSeriesSelectorT>(value)); return *this;}
133 private:
134
135 Aws::String m_forecastName;
136 bool m_forecastNameHasBeenSet = false;
137
138 Aws::String m_predictorArn;
139 bool m_predictorArnHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_forecastTypes;
142 bool m_forecastTypesHasBeenSet = false;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_tagsHasBeenSet = false;
146
147 TimeSeriesSelector m_timeSeriesSelector;
148 bool m_timeSeriesSelectorHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ForecastService
153} // 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