AWS SDK for C++  1.9.15
AWS SDK for C++
GetCoipPoolUsageRequest.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 "GetCoipPoolUsage"; }
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::String& GetPoolId() const{ return m_poolId; }
45 
49  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
50 
54  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
55 
59  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
60 
64  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
65 
69  inline GetCoipPoolUsageRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
70 
74  inline GetCoipPoolUsageRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
75 
79  inline GetCoipPoolUsageRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
80 
81 
89  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
90 
98  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
99 
107  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
108 
116  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
117 
125  inline GetCoipPoolUsageRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
126 
134  inline GetCoipPoolUsageRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
135 
143  inline GetCoipPoolUsageRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
144 
152  inline GetCoipPoolUsageRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
153 
154 
160  inline int GetMaxResults() const{ return m_maxResults; }
161 
167  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
168 
174  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
175 
181  inline GetCoipPoolUsageRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
182 
183 
187  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
188 
192  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
193 
197  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
198 
202  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
203 
207  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
208 
212  inline GetCoipPoolUsageRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
213 
217  inline GetCoipPoolUsageRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
218 
222  inline GetCoipPoolUsageRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224 
231  inline bool GetDryRun() const{ return m_dryRun; }
232 
239  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
240 
247  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
248 
255  inline GetCoipPoolUsageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
256 
257  private:
258 
259  Aws::String m_poolId;
260  bool m_poolIdHasBeenSet;
261 
262  Aws::Vector<Filter> m_filters;
263  bool m_filtersHasBeenSet;
264 
265  int m_maxResults;
266  bool m_maxResultsHasBeenSet;
267 
268  Aws::String m_nextToken;
269  bool m_nextTokenHasBeenSet;
270 
271  bool m_dryRun;
272  bool m_dryRunHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace EC2
277 } // namespace Aws
Aws::EC2::Model::GetCoipPoolUsageRequest::AddFilters
GetCoipPoolUsageRequest & AddFilters(Filter &&value)
Definition: GetCoipPoolUsageRequest.h:152
Aws::EC2::Model::GetCoipPoolUsageRequest::WithFilters
GetCoipPoolUsageRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: GetCoipPoolUsageRequest.h:125
Aws::EC2::Model::GetCoipPoolUsageRequest::GetDryRun
bool GetDryRun() const
Definition: GetCoipPoolUsageRequest.h:231
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetCoipPoolUsageRequest::WithPoolId
GetCoipPoolUsageRequest & WithPoolId(const char *value)
Definition: GetCoipPoolUsageRequest.h:79
Aws::EC2::Model::GetCoipPoolUsageRequest::WithNextToken
GetCoipPoolUsageRequest & WithNextToken(const Aws::String &value)
Definition: GetCoipPoolUsageRequest.h:212
Aws::EC2::Model::GetCoipPoolUsageRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: GetCoipPoolUsageRequest.h:107
Aws::EC2::Model::GetCoipPoolUsageRequest::SetPoolId
void SetPoolId(const char *value)
Definition: GetCoipPoolUsageRequest.h:64
Aws::EC2::Model::GetCoipPoolUsageRequest::WithPoolId
GetCoipPoolUsageRequest & WithPoolId(Aws::String &&value)
Definition: GetCoipPoolUsageRequest.h:74
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetCoipPoolUsageRequest::WithNextToken
GetCoipPoolUsageRequest & WithNextToken(const char *value)
Definition: GetCoipPoolUsageRequest.h:222
Aws::EC2::Model::GetCoipPoolUsageRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetCoipPoolUsageRequest.h:239
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetCoipPoolUsageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetCoipPoolUsageRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCoipPoolUsageRequest.h:160
Aws::EC2::Model::GetCoipPoolUsageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSVector.h
Filter.h
Aws::EC2::Model::GetCoipPoolUsageRequest::WithDryRun
GetCoipPoolUsageRequest & WithDryRun(bool value)
Definition: GetCoipPoolUsageRequest.h:255
Aws::EC2::Model::GetCoipPoolUsageRequest
Definition: GetCoipPoolUsageRequest.h:24
Aws::EC2::Model::GetCoipPoolUsageRequest::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: GetCoipPoolUsageRequest.h:54
Aws::EC2::Model::GetCoipPoolUsageRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCoipPoolUsageRequest.h:167
Aws::EC2::Model::GetCoipPoolUsageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCoipPoolUsageRequest.h:32
Aws::EC2::Model::GetCoipPoolUsageRequest::WithMaxResults
GetCoipPoolUsageRequest & WithMaxResults(int value)
Definition: GetCoipPoolUsageRequest.h:181
Aws::EC2::Model::GetCoipPoolUsageRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: GetCoipPoolUsageRequest.h:116
Aws::EC2::Model::GetCoipPoolUsageRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: GetCoipPoolUsageRequest.h:89
Aws::EC2::Model::GetCoipPoolUsageRequest::GetPoolId
const Aws::String & GetPoolId() const
Definition: GetCoipPoolUsageRequest.h:44
EC2Request.h
Aws::EC2::Model::GetCoipPoolUsageRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetCoipPoolUsageRequest.h:207
Aws::EC2::Model::GetCoipPoolUsageRequest::AddFilters
GetCoipPoolUsageRequest & AddFilters(const Filter &value)
Definition: GetCoipPoolUsageRequest.h:143
Aws::EC2::Model::GetCoipPoolUsageRequest::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: GetCoipPoolUsageRequest.h:49
Aws::EC2::Model::GetCoipPoolUsageRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetCoipPoolUsageRequest.h:192
Aws::EC2::Model::GetCoipPoolUsageRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: GetCoipPoolUsageRequest.h:98
AWSString.h
Aws::EC2::Model::GetCoipPoolUsageRequest::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: GetCoipPoolUsageRequest.h:59
Aws::EC2::Model::GetCoipPoolUsageRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetCoipPoolUsageRequest.h:247
Aws::EC2::Model::GetCoipPoolUsageRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCoipPoolUsageRequest.h:197
Aws::EC2::Model::GetCoipPoolUsageRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCoipPoolUsageRequest.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetCoipPoolUsageRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCoipPoolUsageRequest.h:174
Aws::EC2::Model::GetCoipPoolUsageRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCoipPoolUsageRequest.h:202
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
EC2_EXPORTS.h
Aws::EC2::Model::GetCoipPoolUsageRequest::WithFilters
GetCoipPoolUsageRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: GetCoipPoolUsageRequest.h:134
Aws::EC2::Model::GetCoipPoolUsageRequest::WithNextToken
GetCoipPoolUsageRequest & WithNextToken(Aws::String &&value)
Definition: GetCoipPoolUsageRequest.h:217
Aws::EC2::Model::GetCoipPoolUsageRequest::GetCoipPoolUsageRequest
GetCoipPoolUsageRequest()
Aws::EC2::Model::GetCoipPoolUsageRequest::WithPoolId
GetCoipPoolUsageRequest & WithPoolId(const Aws::String &value)
Definition: GetCoipPoolUsageRequest.h:69