AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetForecastName(const Aws::String& value) { m_forecastNameHasBeenSet = true; m_forecastName = value; }
47 inline void SetForecastName(Aws::String&& value) { m_forecastNameHasBeenSet = true; m_forecastName = std::move(value); }
48 inline void SetForecastName(const char* value) { m_forecastNameHasBeenSet = true; m_forecastName.assign(value); }
49 inline CreateForecastRequest& WithForecastName(const Aws::String& value) { SetForecastName(value); return *this;}
50 inline CreateForecastRequest& WithForecastName(Aws::String&& value) { SetForecastName(std::move(value)); return *this;}
51 inline CreateForecastRequest& WithForecastName(const char* value) { SetForecastName(value); return *this;}
53
55
59 inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
60 inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
61 inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
62 inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
63 inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
64 inline CreateForecastRequest& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
65 inline CreateForecastRequest& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
66 inline CreateForecastRequest& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
68
70
80 inline const Aws::Vector<Aws::String>& GetForecastTypes() const{ return m_forecastTypes; }
81 inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
82 inline void SetForecastTypes(const Aws::Vector<Aws::String>& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = value; }
83 inline void SetForecastTypes(Aws::Vector<Aws::String>&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::move(value); }
85 inline CreateForecastRequest& WithForecastTypes(Aws::Vector<Aws::String>&& value) { SetForecastTypes(std::move(value)); return *this;}
86 inline CreateForecastRequest& AddForecastTypes(const Aws::String& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
87 inline CreateForecastRequest& AddForecastTypes(Aws::String&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(std::move(value)); return *this; }
88 inline CreateForecastRequest& AddForecastTypes(const char* value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
90
92
113 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateForecastRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 inline CreateForecastRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateForecastRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateForecastRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122
124
131 inline const TimeSeriesSelector& GetTimeSeriesSelector() const{ return m_timeSeriesSelector; }
132 inline bool TimeSeriesSelectorHasBeenSet() const { return m_timeSeriesSelectorHasBeenSet; }
133 inline void SetTimeSeriesSelector(const TimeSeriesSelector& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = value; }
134 inline void SetTimeSeriesSelector(TimeSeriesSelector&& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = std::move(value); }
138 private:
139
140 Aws::String m_forecastName;
141 bool m_forecastNameHasBeenSet = false;
142
143 Aws::String m_predictorArn;
144 bool m_predictorArnHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_forecastTypes;
147 bool m_forecastTypesHasBeenSet = false;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_tagsHasBeenSet = false;
151
152 TimeSeriesSelector m_timeSeriesSelector;
153 bool m_timeSeriesSelectorHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace ForecastService
158} // namespace Aws
CreateForecastRequest & WithPredictorArn(Aws::String &&value)
CreateForecastRequest & WithTags(const Aws::Vector< Tag > &value)
void SetForecastTypes(const Aws::Vector< Aws::String > &value)
CreateForecastRequest & WithPredictorArn(const char *value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateForecastRequest & AddForecastTypes(const char *value)
CreateForecastRequest & WithForecastName(const Aws::String &value)
void SetTimeSeriesSelector(const TimeSeriesSelector &value)
CreateForecastRequest & WithTimeSeriesSelector(const TimeSeriesSelector &value)
CreateForecastRequest & AddForecastTypes(const Aws::String &value)
CreateForecastRequest & WithForecastName(const char *value)
const Aws::Vector< Aws::String > & GetForecastTypes() const
CreateForecastRequest & WithTags(Aws::Vector< Tag > &&value)
CreateForecastRequest & WithForecastTypes(const Aws::Vector< Aws::String > &value)
CreateForecastRequest & WithForecastTypes(Aws::Vector< Aws::String > &&value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
void SetForecastTypes(Aws::Vector< Aws::String > &&value)
CreateForecastRequest & WithForecastName(Aws::String &&value)
CreateForecastRequest & WithPredictorArn(const Aws::String &value)
CreateForecastRequest & WithTimeSeriesSelector(TimeSeriesSelector &&value)
CreateForecastRequest & AddForecastTypes(Aws::String &&value)
const TimeSeriesSelector & GetTimeSeriesSelector() const
virtual const char * GetServiceRequestName() const override
CreateForecastRequest & AddTags(const Tag &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