AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeSubnetsRequest.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 "DescribeSubnets"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
77  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
78 
115  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
116 
153  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
154 
191  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
192 
229  inline DescribeSubnetsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
230 
267  inline DescribeSubnetsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
268 
305  inline DescribeSubnetsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
306 
343  inline DescribeSubnetsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
344 
345 
349  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
350 
354  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
355 
359  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
360 
364  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
365 
369  inline DescribeSubnetsRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
370 
374  inline DescribeSubnetsRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
375 
379  inline DescribeSubnetsRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
380 
384  inline DescribeSubnetsRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
385 
389  inline DescribeSubnetsRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
390 
391 
398  inline bool GetDryRun() const{ return m_dryRun; }
399 
406  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
407 
414  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
415 
422  inline DescribeSubnetsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
423 
424 
428  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
429 
433  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
434 
438  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
439 
443  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
444 
448  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
449 
453  inline DescribeSubnetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
454 
458  inline DescribeSubnetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
459 
463  inline DescribeSubnetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
464 
465 
471  inline int GetMaxResults() const{ return m_maxResults; }
472 
478  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
479 
485  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
486 
492  inline DescribeSubnetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
493 
494  private:
495 
496  Aws::Vector<Filter> m_filters;
497  bool m_filtersHasBeenSet;
498 
499  Aws::Vector<Aws::String> m_subnetIds;
500  bool m_subnetIdsHasBeenSet;
501 
502  bool m_dryRun;
503  bool m_dryRunHasBeenSet;
504 
505  Aws::String m_nextToken;
506  bool m_nextTokenHasBeenSet;
507 
508  int m_maxResults;
509  bool m_maxResultsHasBeenSet;
510  };
511 
512 } // namespace Model
513 } // namespace EC2
514 } // namespace Aws
Aws::EC2::Model::DescribeSubnetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSubnetsRequest.h:448
Aws::EC2::Model::DescribeSubnetsRequest::WithDryRun
DescribeSubnetsRequest & WithDryRun(bool value)
Definition: DescribeSubnetsRequest.h:422
Aws::EC2::Model::DescribeSubnetsRequest::WithFilters
DescribeSubnetsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeSubnetsRequest.h:267
Aws::EC2::Model::DescribeSubnetsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeSubnetsRequest.h:115
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeSubnetsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeSubnetsRequest.h:77
Aws::EC2::Model::DescribeSubnetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSubnetsRequest.h:438
Aws::EC2::Model::DescribeSubnetsRequest::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: DescribeSubnetsRequest.h:354
Aws::EC2::Model::DescribeSubnetsRequest::WithMaxResults
DescribeSubnetsRequest & WithMaxResults(int value)
Definition: DescribeSubnetsRequest.h:492
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeSubnetsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeSubnetsRequest.h:398
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeSubnetsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeSubnetsRequest.h:471
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeSubnetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeSubnetsRequest::WithFilters
DescribeSubnetsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeSubnetsRequest.h:229
Aws::EC2::Model::DescribeSubnetsRequest::WithSubnetIds
DescribeSubnetsRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSubnetsRequest.h:369
Aws::EC2::Model::DescribeSubnetsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeSubnetsRequest.h:191
Aws::EC2::Model::DescribeSubnetsRequest::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: DescribeSubnetsRequest.h:349
Aws::EC2::Model::DescribeSubnetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSubnetsRequest.h:443
EC2Request.h
Aws::EC2::Model::DescribeSubnetsRequest::DescribeSubnetsRequest
DescribeSubnetsRequest()
AWSString.h
Aws::EC2::Model::DescribeSubnetsRequest
Definition: DescribeSubnetsRequest.h:24
Aws::EC2::Model::DescribeSubnetsRequest::WithNextToken
DescribeSubnetsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeSubnetsRequest.h:458
Aws::EC2::Model::DescribeSubnetsRequest::WithNextToken
DescribeSubnetsRequest & WithNextToken(const char *value)
Definition: DescribeSubnetsRequest.h:463
Aws::EC2::Model::DescribeSubnetsRequest::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSubnetsRequest.h:359
Aws::EC2::Model::DescribeSubnetsRequest::AddSubnetIds
DescribeSubnetsRequest & AddSubnetIds(const Aws::String &value)
Definition: DescribeSubnetsRequest.h:379
Aws::EC2::Model::DescribeSubnetsRequest::AddFilters
DescribeSubnetsRequest & AddFilters(const Filter &value)
Definition: DescribeSubnetsRequest.h:305
Aws::EC2::Model::DescribeSubnetsRequest::WithSubnetIds
DescribeSubnetsRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSubnetsRequest.h:374
Aws::EC2::Model::DescribeSubnetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSubnetsRequest.h:428
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSubnetsRequest::AddSubnetIds
DescribeSubnetsRequest & AddSubnetIds(const char *value)
Definition: DescribeSubnetsRequest.h:389
Aws::EC2::Model::DescribeSubnetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeSubnetsRequest.h:485
Aws::EC2::Model::DescribeSubnetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSubnetsRequest.h:32
Aws::EC2::Model::DescribeSubnetsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeSubnetsRequest.h:406
Aws::EC2::Model::DescribeSubnetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeSubnetsRequest.h:433
Aws::EC2::Model::DescribeSubnetsRequest::AddFilters
DescribeSubnetsRequest & AddFilters(Filter &&value)
Definition: DescribeSubnetsRequest.h:343
Aws::EC2::Model::DescribeSubnetsRequest::WithNextToken
DescribeSubnetsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeSubnetsRequest.h:453
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::DescribeSubnetsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeSubnetsRequest.h:414
Aws::EC2::Model::DescribeSubnetsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeSubnetsRequest.h:153
Aws::EC2::Model::DescribeSubnetsRequest::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSubnetsRequest.h:364
Aws::EC2::Model::DescribeSubnetsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::DescribeSubnetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeSubnetsRequest.h:478
Aws::EC2::Model::DescribeSubnetsRequest::AddSubnetIds
DescribeSubnetsRequest & AddSubnetIds(Aws::String &&value)
Definition: DescribeSubnetsRequest.h:384