AWS SDK for C++  1.9.131
AWS SDK for C++
ListPredictorsRequest.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 "ListPredictors"; }
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 ListPredictorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
80 
86  inline ListPredictorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
87 
93  inline ListPredictorsRequest& 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 ListPredictorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115 
116 
133  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
134 
151  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
152 
169  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
170 
187  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
188 
205  inline ListPredictorsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
206 
223  inline ListPredictorsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
224 
241  inline ListPredictorsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
242 
259  inline ListPredictorsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
260 
261  private:
262 
263  Aws::String m_nextToken;
264  bool m_nextTokenHasBeenSet;
265 
266  int m_maxResults;
267  bool m_maxResultsHasBeenSet;
268 
269  Aws::Vector<Filter> m_filters;
270  bool m_filtersHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace ForecastService
275 } // namespace Aws
Aws::ForecastService::Model::ListPredictorsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPredictorsRequest.h:72
Aws::ForecastService::Model::ListPredictorsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ForecastService::Model::ListPredictorsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPredictorsRequest.h:65
Filter.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ForecastService::Model::ListPredictorsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPredictorsRequest.h:58
ForecastService_EXPORTS.h
Aws::ForecastService::Model::ListPredictorsRequest::WithNextToken
ListPredictorsRequest & WithNextToken(const char *value)
Definition: ListPredictorsRequest.h:93
Aws::ForecastService::Model::ListPredictorsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListPredictorsRequest.h:151
Aws::ForecastService::Model::ListPredictorsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListPredictorsRequest.h:133
Aws::ForecastService::Model::ListPredictorsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPredictorsRequest.h:51
Aws::ForecastService::Model::ListPredictorsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ForecastService::Model::ListPredictorsRequest::WithFilters
ListPredictorsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListPredictorsRequest.h:223
Aws::ForecastService::Model::ListPredictorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPredictorsRequest.h:32
Aws::ForecastService::Model::ListPredictorsRequest::AddFilters
ListPredictorsRequest & AddFilters(Filter &&value)
Definition: ListPredictorsRequest.h:259
ForecastServiceRequest.h
Aws::ForecastService::Model::ListPredictorsRequest::ListPredictorsRequest
ListPredictorsRequest()
Aws::ForecastService::Model::ListPredictorsRequest::WithMaxResults
ListPredictorsRequest & WithMaxResults(int value)
Definition: ListPredictorsRequest.h:114
Aws::ForecastService::Model::ListPredictorsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPredictorsRequest.h:104
AWSString.h
Aws::ForecastService::Model::ListPredictorsRequest::AddFilters
ListPredictorsRequest & AddFilters(const Filter &value)
Definition: ListPredictorsRequest.h:241
Aws::ForecastService::Model::Filter
Definition: Filter.h:37
Aws::ForecastService::Model::ListPredictorsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPredictorsRequest.h:99
Aws::ForecastService::Model::ListPredictorsRequest
Definition: ListPredictorsRequest.h:24
Aws::ForecastService::Model::ListPredictorsRequest::WithNextToken
ListPredictorsRequest & WithNextToken(Aws::String &&value)
Definition: ListPredictorsRequest.h:86
Aws::ForecastService::ForecastServiceRequest
Definition: ForecastServiceRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::ListPredictorsRequest::WithNextToken
ListPredictorsRequest & WithNextToken(const Aws::String &value)
Definition: ListPredictorsRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::ListPredictorsRequest::WithFilters
ListPredictorsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListPredictorsRequest.h:205
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::ListPredictorsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListPredictorsRequest.h:169
Aws::ForecastService::Model::ListPredictorsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPredictorsRequest.h:44
Aws::ForecastService::Model::ListPredictorsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPredictorsRequest.h:109
Aws::ForecastService::Model::ListPredictorsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListPredictorsRequest.h:187