AWS SDK for C++  1.9.129
AWS SDK for C++
GetSubnetCidrReservationsRequest.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 "GetSubnetCidrReservations"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
54  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
55 
69  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
70 
84  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
85 
99  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
100 
114  inline GetSubnetCidrReservationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
115 
129  inline GetSubnetCidrReservationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
130 
144  inline GetSubnetCidrReservationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
145 
159  inline GetSubnetCidrReservationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
160 
161 
165  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
166 
170  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
171 
175  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
176 
180  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
181 
185  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
186 
190  inline GetSubnetCidrReservationsRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
191 
195  inline GetSubnetCidrReservationsRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
196 
200  inline GetSubnetCidrReservationsRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
201 
202 
209  inline bool GetDryRun() const{ return m_dryRun; }
210 
217  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
218 
225  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
226 
233  inline GetSubnetCidrReservationsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
234 
235 
239  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
240 
244  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
245 
249  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
250 
254  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
255 
259  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
260 
264  inline GetSubnetCidrReservationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
265 
269  inline GetSubnetCidrReservationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
270 
274  inline GetSubnetCidrReservationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
275 
276 
282  inline int GetMaxResults() const{ return m_maxResults; }
283 
289  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
290 
296  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
297 
303  inline GetSubnetCidrReservationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
304 
305  private:
306 
307  Aws::Vector<Filter> m_filters;
308  bool m_filtersHasBeenSet;
309 
310  Aws::String m_subnetId;
311  bool m_subnetIdHasBeenSet;
312 
313  bool m_dryRun;
314  bool m_dryRunHasBeenSet;
315 
316  Aws::String m_nextToken;
317  bool m_nextTokenHasBeenSet;
318 
319  int m_maxResults;
320  bool m_maxResultsHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace EC2
325 } // namespace Aws
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetSubnetCidrReservationsRequest.h:282
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithFilters
GetSubnetCidrReservationsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: GetSubnetCidrReservationsRequest.h:129
Aws::EC2::Model::GetSubnetCidrReservationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetSubnetCidrReservationsRequest.h:244
Aws::EC2::Model::GetSubnetCidrReservationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetSubnetCidrReservationsRequest.h:289
Aws::EC2::Model::GetSubnetCidrReservationsRequest
Definition: GetSubnetCidrReservationsRequest.h:24
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: GetSubnetCidrReservationsRequest.h:170
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetSubnetCidrReservationsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetSubnetCidrReservationsRequest.h:217
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetDryRun
bool GetDryRun() const
Definition: GetSubnetCidrReservationsRequest.h:209
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetSubnetCidrReservationsRequest
GetSubnetCidrReservationsRequest()
AWSVector.h
Aws::EC2::Model::GetSubnetCidrReservationsRequest::AddFilters
GetSubnetCidrReservationsRequest & AddFilters(Filter &&value)
Definition: GetSubnetCidrReservationsRequest.h:159
Filter.h
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: GetSubnetCidrReservationsRequest.h:54
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSubnetCidrReservationsRequest.h:32
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetSubnetCidrReservationsRequest.h:239
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithDryRun
GetSubnetCidrReservationsRequest & WithDryRun(bool value)
Definition: GetSubnetCidrReservationsRequest.h:233
Aws::EC2::Model::GetSubnetCidrReservationsRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: GetSubnetCidrReservationsRequest.h:165
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: GetSubnetCidrReservationsRequest.h:180
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithSubnetId
GetSubnetCidrReservationsRequest & WithSubnetId(const char *value)
Definition: GetSubnetCidrReservationsRequest.h:200
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithNextToken
GetSubnetCidrReservationsRequest & WithNextToken(const char *value)
Definition: GetSubnetCidrReservationsRequest.h:274
EC2Request.h
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetSubnetCidrReservationsRequest.h:254
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: GetSubnetCidrReservationsRequest.h:99
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetSubnetCidrReservationsRequest.h:296
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithMaxResults
GetSubnetCidrReservationsRequest & WithMaxResults(int value)
Definition: GetSubnetCidrReservationsRequest.h:303
AWSString.h
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetSubnetCidrReservationsRequest.h:249
Aws::EC2::Model::GetSubnetCidrReservationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: GetSubnetCidrReservationsRequest.h:69
Aws::EC2::Model::GetSubnetCidrReservationsRequest::AddFilters
GetSubnetCidrReservationsRequest & AddFilters(const Filter &value)
Definition: GetSubnetCidrReservationsRequest.h:144
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: GetSubnetCidrReservationsRequest.h:84
Aws::EC2::Model::GetSubnetCidrReservationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: GetSubnetCidrReservationsRequest.h:175
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithSubnetId
GetSubnetCidrReservationsRequest & WithSubnetId(Aws::String &&value)
Definition: GetSubnetCidrReservationsRequest.h:195
Aws
Definition: AccessManagementClient.h:15
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::GetSubnetCidrReservationsRequest::WithNextToken
GetSubnetCidrReservationsRequest & WithNextToken(Aws::String &&value)
Definition: GetSubnetCidrReservationsRequest.h:269
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetSubnetCidrReservationsRequest.h:259
EC2_EXPORTS.h
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithFilters
GetSubnetCidrReservationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: GetSubnetCidrReservationsRequest.h:114
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: GetSubnetCidrReservationsRequest.h:185
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithNextToken
GetSubnetCidrReservationsRequest & WithNextToken(const Aws::String &value)
Definition: GetSubnetCidrReservationsRequest.h:264
Aws::EC2::Model::GetSubnetCidrReservationsRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetSubnetCidrReservationsRequest.h:225
Aws::EC2::Model::GetSubnetCidrReservationsRequest::WithSubnetId
GetSubnetCidrReservationsRequest & WithSubnetId(const Aws::String &value)
Definition: GetSubnetCidrReservationsRequest.h:190