AWS SDK for C++  1.9.97
AWS SDK for C++
DescribePackagesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticsearchService
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribePackages"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
45  inline const Aws::Vector<DescribePackagesFilter>& GetFilters() const{ return m_filters; }
46 
51  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
52 
57  inline void SetFilters(const Aws::Vector<DescribePackagesFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
58 
63  inline void SetFilters(Aws::Vector<DescribePackagesFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
64 
69  inline DescribePackagesRequest& WithFilters(const Aws::Vector<DescribePackagesFilter>& value) { SetFilters(value); return *this;}
70 
75  inline DescribePackagesRequest& WithFilters(Aws::Vector<DescribePackagesFilter>&& value) { SetFilters(std::move(value)); return *this;}
76 
81  inline DescribePackagesRequest& AddFilters(const DescribePackagesFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
82 
87  inline DescribePackagesRequest& AddFilters(DescribePackagesFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
88 
89 
93  inline int GetMaxResults() const{ return m_maxResults; }
94 
98  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 
103  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
104 
108  inline DescribePackagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
109 
110 
115  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
116 
121  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
122 
127  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
128 
133  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
134 
139  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
140 
145  inline DescribePackagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
146 
151  inline DescribePackagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
152 
157  inline DescribePackagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
158 
159  private:
160 
162  bool m_filtersHasBeenSet;
163 
164  int m_maxResults;
165  bool m_maxResultsHasBeenSet;
166 
167  Aws::String m_nextToken;
168  bool m_nextTokenHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace ElasticsearchService
173 } // namespace Aws
Aws::ElasticsearchService::Model::DescribePackagesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::Model::DescribePackagesRequest::SetFilters
void SetFilters(Aws::Vector< DescribePackagesFilter > &&value)
Definition: DescribePackagesRequest.h:63
Aws::ElasticsearchService::Model::DescribePackagesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribePackagesRequest.h:115
Aws::ElasticsearchService::Model::DescribePackagesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribePackagesRequest.h:98
Aws::ElasticsearchService::Model::DescribePackagesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribePackagesRequest.h:93
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::DescribePackagesRequest::WithNextToken
DescribePackagesRequest & WithNextToken(Aws::String &&value)
Definition: DescribePackagesRequest.h:151
Aws::ElasticsearchService::Model::DescribePackagesRequest::WithFilters
DescribePackagesRequest & WithFilters(const Aws::Vector< DescribePackagesFilter > &value)
Definition: DescribePackagesRequest.h:69
Aws::ElasticsearchService::Model::DescribePackagesRequest::SetFilters
void SetFilters(const Aws::Vector< DescribePackagesFilter > &value)
Definition: DescribePackagesRequest.h:57
Aws::ElasticsearchService::Model::DescribePackagesRequest::WithNextToken
DescribePackagesRequest & WithNextToken(const char *value)
Definition: DescribePackagesRequest.h:157
Aws::ElasticsearchService::Model::DescribePackagesRequest::GetFilters
const Aws::Vector< DescribePackagesFilter > & GetFilters() const
Definition: DescribePackagesRequest.h:45
Aws::ElasticsearchService::Model::DescribePackagesRequest::DescribePackagesRequest
DescribePackagesRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::DescribePackagesRequest::AddFilters
DescribePackagesRequest & AddFilters(const DescribePackagesFilter &value)
Definition: DescribePackagesRequest.h:81
AWSVector.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::DescribePackagesRequest::WithFilters
DescribePackagesRequest & WithFilters(Aws::Vector< DescribePackagesFilter > &&value)
Definition: DescribePackagesRequest.h:75
Aws::ElasticsearchService::Model::DescribePackagesRequest::AddFilters
DescribePackagesRequest & AddFilters(DescribePackagesFilter &&value)
Definition: DescribePackagesRequest.h:87
AWSString.h
Aws::ElasticsearchService::Model::DescribePackagesRequest::WithNextToken
DescribePackagesRequest & WithNextToken(const Aws::String &value)
Definition: DescribePackagesRequest.h:145
Aws::ElasticsearchService::Model::DescribePackagesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribePackagesRequest.h:36
Aws::ElasticsearchService::Model::DescribePackagesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribePackagesRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::DescribePackagesRequest::WithMaxResults
DescribePackagesRequest & WithMaxResults(int value)
Definition: DescribePackagesRequest.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::DescribePackagesRequest
Definition: DescribePackagesRequest.h:28
Aws::ElasticsearchService::Model::DescribePackagesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribePackagesRequest.h:121
Aws::ElasticsearchService::Model::DescribePackagesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribePackagesRequest.h:139
Aws::ElasticsearchService::Model::DescribePackagesFilter
Definition: DescribePackagesFilter.h:35
Aws::ElasticsearchService::Model::DescribePackagesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribePackagesRequest.h:51
Aws::ElasticsearchService::Model::DescribePackagesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribePackagesRequest.h:127
Aws::ElasticsearchService::Model::DescribePackagesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribePackagesRequest.h:133
DescribePackagesFilter.h