AWS SDK for C++  1.9.74
AWS SDK for C++
DescribeCoipPoolsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
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 "DescribeCoipPools"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetPoolIds() const{ return m_poolIds; }
45 
49  inline bool PoolIdsHasBeenSet() const { return m_poolIdsHasBeenSet; }
50 
54  inline void SetPoolIds(const Aws::Vector<Aws::String>& value) { m_poolIdsHasBeenSet = true; m_poolIds = value; }
55 
59  inline void SetPoolIds(Aws::Vector<Aws::String>&& value) { m_poolIdsHasBeenSet = true; m_poolIds = std::move(value); }
60 
64  inline DescribeCoipPoolsRequest& WithPoolIds(const Aws::Vector<Aws::String>& value) { SetPoolIds(value); return *this;}
65 
69  inline DescribeCoipPoolsRequest& WithPoolIds(Aws::Vector<Aws::String>&& value) { SetPoolIds(std::move(value)); return *this;}
70 
74  inline DescribeCoipPoolsRequest& AddPoolIds(const Aws::String& value) { m_poolIdsHasBeenSet = true; m_poolIds.push_back(value); return *this; }
75 
79  inline DescribeCoipPoolsRequest& AddPoolIds(Aws::String&& value) { m_poolIdsHasBeenSet = true; m_poolIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeCoipPoolsRequest& AddPoolIds(const char* value) { m_poolIdsHasBeenSet = true; m_poolIds.push_back(value); return *this; }
85 
86 
92  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
93 
99  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
100 
106  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
107 
113  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
114 
120  inline DescribeCoipPoolsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
121 
127  inline DescribeCoipPoolsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
128 
134  inline DescribeCoipPoolsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
135 
141  inline DescribeCoipPoolsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
142 
143 
149  inline int GetMaxResults() const{ return m_maxResults; }
150 
156  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
157 
163  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
164 
170  inline DescribeCoipPoolsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
171 
172 
176  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
177 
181  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 
186  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
187 
191  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
192 
196  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
197 
201  inline DescribeCoipPoolsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
202 
206  inline DescribeCoipPoolsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
207 
211  inline DescribeCoipPoolsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
212 
213 
220  inline bool GetDryRun() const{ return m_dryRun; }
221 
228  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
229 
236  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
237 
244  inline DescribeCoipPoolsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
245 
246  private:
247 
248  Aws::Vector<Aws::String> m_poolIds;
249  bool m_poolIdsHasBeenSet;
250 
251  Aws::Vector<Filter> m_filters;
252  bool m_filtersHasBeenSet;
253 
254  int m_maxResults;
255  bool m_maxResultsHasBeenSet;
256 
257  Aws::String m_nextToken;
258  bool m_nextTokenHasBeenSet;
259 
260  bool m_dryRun;
261  bool m_dryRunHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace EC2
266 } // namespace Aws
Aws::EC2::Model::DescribeCoipPoolsRequest::AddPoolIds
DescribeCoipPoolsRequest & AddPoolIds(Aws::String &&value)
Definition: DescribeCoipPoolsRequest.h:79
Aws::EC2::Model::DescribeCoipPoolsRequest::AddPoolIds
DescribeCoipPoolsRequest & AddPoolIds(const char *value)
Definition: DescribeCoipPoolsRequest.h:84
Aws::EC2::Model::DescribeCoipPoolsRequest::WithDryRun
DescribeCoipPoolsRequest & WithDryRun(bool value)
Definition: DescribeCoipPoolsRequest.h:244
Aws::EC2::Model::DescribeCoipPoolsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeCoipPoolsRequest.h:156
Aws::EC2::Model::DescribeCoipPoolsRequest::AddFilters
DescribeCoipPoolsRequest & AddFilters(const Filter &value)
Definition: DescribeCoipPoolsRequest.h:134
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeCoipPoolsRequest::WithNextToken
DescribeCoipPoolsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeCoipPoolsRequest.h:206
Aws::EC2::Model::DescribeCoipPoolsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeCoipPoolsRequest.h:149
Aws::EC2::Model::DescribeCoipPoolsRequest
Definition: DescribeCoipPoolsRequest.h:24
Aws::EC2::Model::DescribeCoipPoolsRequest::WithNextToken
DescribeCoipPoolsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeCoipPoolsRequest.h:201
Aws::EC2::Model::DescribeCoipPoolsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeCoipPoolsRequest.h:32
Aws::EC2::Model::DescribeCoipPoolsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeCoipPoolsRequest.h:99
Aws::EC2::Model::DescribeCoipPoolsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeCoipPoolsRequest.h:92
Aws::EC2::Model::DescribeCoipPoolsRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeCoipPoolsRequest::SetPoolIds
void SetPoolIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCoipPoolsRequest.h:59
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeCoipPoolsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeCoipPoolsRequest.h:236
Aws::EC2::Model::DescribeCoipPoolsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeCoipPoolsRequest::DescribeCoipPoolsRequest
DescribeCoipPoolsRequest()
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeCoipPoolsRequest::SetPoolIds
void SetPoolIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCoipPoolsRequest.h:54
Aws::EC2::Model::DescribeCoipPoolsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeCoipPoolsRequest.h:113
Aws::EC2::Model::DescribeCoipPoolsRequest::GetPoolIds
const Aws::Vector< Aws::String > & GetPoolIds() const
Definition: DescribeCoipPoolsRequest.h:44
Aws::EC2::Model::DescribeCoipPoolsRequest::WithPoolIds
DescribeCoipPoolsRequest & WithPoolIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCoipPoolsRequest.h:69
EC2Request.h
Aws::EC2::Model::DescribeCoipPoolsRequest::WithFilters
DescribeCoipPoolsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeCoipPoolsRequest.h:120
Aws::EC2::Model::DescribeCoipPoolsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeCoipPoolsRequest.h:196
AWSString.h
Aws::EC2::Model::DescribeCoipPoolsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeCoipPoolsRequest.h:181
Aws::EC2::Model::DescribeCoipPoolsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeCoipPoolsRequest.h:191
Aws::EC2::Model::DescribeCoipPoolsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeCoipPoolsRequest.h:163
Aws::EC2::Model::DescribeCoipPoolsRequest::WithNextToken
DescribeCoipPoolsRequest & WithNextToken(const char *value)
Definition: DescribeCoipPoolsRequest.h:211
Aws::EC2::Model::DescribeCoipPoolsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeCoipPoolsRequest.h:176
Aws::EC2::Model::DescribeCoipPoolsRequest::AddFilters
DescribeCoipPoolsRequest & AddFilters(Filter &&value)
Definition: DescribeCoipPoolsRequest.h:141
Aws::EC2::Model::DescribeCoipPoolsRequest::WithMaxResults
DescribeCoipPoolsRequest & WithMaxResults(int value)
Definition: DescribeCoipPoolsRequest.h:170
Aws::EC2::Model::DescribeCoipPoolsRequest::PoolIdsHasBeenSet
bool PoolIdsHasBeenSet() const
Definition: DescribeCoipPoolsRequest.h:49
Aws::EC2::Model::DescribeCoipPoolsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeCoipPoolsRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeCoipPoolsRequest::WithPoolIds
DescribeCoipPoolsRequest & WithPoolIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCoipPoolsRequest.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeCoipPoolsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeCoipPoolsRequest.h:220
Aws::EC2::Model::DescribeCoipPoolsRequest::AddPoolIds
DescribeCoipPoolsRequest & AddPoolIds(const Aws::String &value)
Definition: DescribeCoipPoolsRequest.h:74
Aws::EC2::Model::DescribeCoipPoolsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeCoipPoolsRequest.h:186
EC2_EXPORTS.h
Aws::EC2::Model::DescribeCoipPoolsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeCoipPoolsRequest.h:228
Aws::EC2::Model::DescribeCoipPoolsRequest::WithFilters
DescribeCoipPoolsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeCoipPoolsRequest.h:127