AWS SDK for C++  1.9.131
AWS SDK for C++
ListForecastsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ForecastService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListForecasts"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
51  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 
58  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
59 
65  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
66 
72  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
73 
79  inline ListForecastsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
80 
86  inline ListForecastsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
87 
93  inline ListForecastsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
94 
95 
99  inline int GetMaxResults() const{ return m_maxResults; }
100 
104  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 
109  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 
114  inline ListForecastsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115 
116 
134  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
135 
153  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
154 
172  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
173 
191  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
192 
210  inline ListForecastsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
211 
229  inline ListForecastsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
230 
248  inline ListForecastsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
249 
267  inline ListForecastsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
268 
269  private:
270 
271  Aws::String m_nextToken;
272  bool m_nextTokenHasBeenSet;
273 
274  int m_maxResults;
275  bool m_maxResultsHasBeenSet;
276 
277  Aws::Vector<Filter> m_filters;
278  bool m_filtersHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace ForecastService
283 } // namespace Aws
Aws::ForecastService::Model::ListForecastsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListForecastsRequest.h:32
Aws::ForecastService::Model::ListForecastsRequest::AddFilters
ListForecastsRequest & AddFilters(Filter &&value)
Definition: ListForecastsRequest.h:267
Aws::ForecastService::Model::ListForecastsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListForecastsRequest.h:134
Filter.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ForecastService::Model::ListForecastsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListForecastsRequest.h:109
Aws::ForecastService::Model::ListForecastsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListForecastsRequest.h:58
ForecastService_EXPORTS.h
Aws::ForecastService::Model::ListForecastsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListForecastsRequest.h:172
Aws::ForecastService::Model::ListForecastsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListForecastsRequest.h:104
Aws::ForecastService::Model::ListForecastsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListForecastsRequest.h:153
Aws::ForecastService::Model::ListForecastsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListForecastsRequest.h:44
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ForecastService::Model::ListForecastsRequest::WithFilters
ListForecastsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListForecastsRequest.h:210
Aws::ForecastService::Model::ListForecastsRequest::WithFilters
ListForecastsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListForecastsRequest.h:229
Aws::ForecastService::Model::ListForecastsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListForecastsRequest.h:191
Aws::ForecastService::Model::ListForecastsRequest::WithNextToken
ListForecastsRequest & WithNextToken(Aws::String &&value)
Definition: ListForecastsRequest.h:86
Aws::ForecastService::Model::ListForecastsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ForecastService::Model::ListForecastsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ForecastService::Model::ListForecastsRequest::ListForecastsRequest
ListForecastsRequest()
ForecastServiceRequest.h
AWSString.h
Aws::ForecastService::Model::Filter
Definition: Filter.h:37
Aws::ForecastService::Model::ListForecastsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListForecastsRequest.h:51
Aws::ForecastService::Model::ListForecastsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListForecastsRequest.h:99
Aws::ForecastService::Model::ListForecastsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListForecastsRequest.h:72
Aws::ForecastService::Model::ListForecastsRequest::WithNextToken
ListForecastsRequest & WithNextToken(const Aws::String &value)
Definition: ListForecastsRequest.h:79
Aws::ForecastService::Model::ListForecastsRequest::WithMaxResults
ListForecastsRequest & WithMaxResults(int value)
Definition: ListForecastsRequest.h:114
Aws::ForecastService::Model::ListForecastsRequest::WithNextToken
ListForecastsRequest & WithNextToken(const char *value)
Definition: ListForecastsRequest.h:93
Aws::ForecastService::Model::ListForecastsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListForecastsRequest.h:65
Aws::ForecastService::ForecastServiceRequest
Definition: ForecastServiceRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::ListForecastsRequest::AddFilters
ListForecastsRequest & AddFilters(const Filter &value)
Definition: ListForecastsRequest.h:248
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::ListForecastsRequest
Definition: ListForecastsRequest.h:24