AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeVpcsRequest.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 "DescribeVpcs"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
74  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
75 
109  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
110 
144  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
145 
179  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
180 
214  inline DescribeVpcsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
215 
249  inline DescribeVpcsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
250 
284  inline DescribeVpcsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
285 
319  inline DescribeVpcsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
320 
321 
325  inline const Aws::Vector<Aws::String>& GetVpcIds() const{ return m_vpcIds; }
326 
330  inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
331 
335  inline void SetVpcIds(const Aws::Vector<Aws::String>& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = value; }
336 
340  inline void SetVpcIds(Aws::Vector<Aws::String>&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::move(value); }
341 
345  inline DescribeVpcsRequest& WithVpcIds(const Aws::Vector<Aws::String>& value) { SetVpcIds(value); return *this;}
346 
350  inline DescribeVpcsRequest& WithVpcIds(Aws::Vector<Aws::String>&& value) { SetVpcIds(std::move(value)); return *this;}
351 
355  inline DescribeVpcsRequest& AddVpcIds(const Aws::String& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
356 
360  inline DescribeVpcsRequest& AddVpcIds(Aws::String&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(std::move(value)); return *this; }
361 
365  inline DescribeVpcsRequest& AddVpcIds(const char* value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
366 
367 
374  inline bool GetDryRun() const{ return m_dryRun; }
375 
382  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
383 
390  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
391 
398  inline DescribeVpcsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
399 
400 
404  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
405 
409  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
410 
414  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
415 
419  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
420 
424  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
425 
429  inline DescribeVpcsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
430 
434  inline DescribeVpcsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
435 
439  inline DescribeVpcsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
440 
441 
447  inline int GetMaxResults() const{ return m_maxResults; }
448 
454  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
455 
461  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
462 
468  inline DescribeVpcsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
469 
470  private:
471 
472  Aws::Vector<Filter> m_filters;
473  bool m_filtersHasBeenSet;
474 
475  Aws::Vector<Aws::String> m_vpcIds;
476  bool m_vpcIdsHasBeenSet;
477 
478  bool m_dryRun;
479  bool m_dryRunHasBeenSet;
480 
481  Aws::String m_nextToken;
482  bool m_nextTokenHasBeenSet;
483 
484  int m_maxResults;
485  bool m_maxResultsHasBeenSet;
486  };
487 
488 } // namespace Model
489 } // namespace EC2
490 } // namespace Aws
Aws::EC2::Model::DescribeVpcsRequest::WithFilters
DescribeVpcsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcsRequest.h:214
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVpcsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeVpcsRequest.h:454
Aws::EC2::Model::DescribeVpcsRequest::SetVpcIds
void SetVpcIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpcsRequest.h:340
Aws::EC2::Model::DescribeVpcsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVpcsRequest.h:390
Aws::EC2::Model::DescribeVpcsRequest::AddVpcIds
DescribeVpcsRequest & AddVpcIds(const Aws::String &value)
Definition: DescribeVpcsRequest.h:355
Aws::EC2::Model::DescribeVpcsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeVpcsRequest.h:447
Aws::EC2::Model::DescribeVpcsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeVpcsRequest.h:409
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVpcsRequest::AddVpcIds
DescribeVpcsRequest & AddVpcIds(Aws::String &&value)
Definition: DescribeVpcsRequest.h:360
Aws::EC2::Model::DescribeVpcsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeVpcsRequest.h:461
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeVpcsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVpcsRequest.h:374
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeVpcsRequest::DescribeVpcsRequest
DescribeVpcsRequest()
Aws::EC2::Model::DescribeVpcsRequest::WithVpcIds
DescribeVpcsRequest & WithVpcIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpcsRequest.h:350
Aws::EC2::Model::DescribeVpcsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeVpcsRequest::AddFilters
DescribeVpcsRequest & AddFilters(Filter &&value)
Definition: DescribeVpcsRequest.h:319
Aws::EC2::Model::DescribeVpcsRequest::WithDryRun
DescribeVpcsRequest & WithDryRun(bool value)
Definition: DescribeVpcsRequest.h:398
Aws::EC2::Model::DescribeVpcsRequest::WithFilters
DescribeVpcsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcsRequest.h:249
EC2Request.h
Aws::EC2::Model::DescribeVpcsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcsRequest.h:144
Aws::EC2::Model::DescribeVpcsRequest::WithVpcIds
DescribeVpcsRequest & WithVpcIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpcsRequest.h:345
Aws::EC2::Model::DescribeVpcsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVpcsRequest.h:32
AWSString.h
Aws::EC2::Model::DescribeVpcsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVpcsRequest.h:74
Aws::EC2::Model::DescribeVpcsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVpcsRequest.h:419
Aws::EC2::Model::DescribeVpcsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcsRequest.h:179
Aws::EC2::Model::DescribeVpcsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVpcsRequest.h:404
Aws::EC2::Model::DescribeVpcsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVpcsRequest.h:109
Aws::EC2::Model::DescribeVpcsRequest
Definition: DescribeVpcsRequest.h:24
Aws::EC2::Model::DescribeVpcsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVpcsRequest.h:414
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpcsRequest::AddFilters
DescribeVpcsRequest & AddFilters(const Filter &value)
Definition: DescribeVpcsRequest.h:284
Aws::EC2::Model::DescribeVpcsRequest::WithMaxResults
DescribeVpcsRequest & WithMaxResults(int value)
Definition: DescribeVpcsRequest.h:468
Aws::EC2::Model::DescribeVpcsRequest::WithNextToken
DescribeVpcsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeVpcsRequest.h:429
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVpcsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVpcsRequest.h:424
Aws::EC2::Model::DescribeVpcsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeVpcsRequest::AddVpcIds
DescribeVpcsRequest & AddVpcIds(const char *value)
Definition: DescribeVpcsRequest.h:365
Aws::EC2::Model::DescribeVpcsRequest::SetVpcIds
void SetVpcIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpcsRequest.h:335
Aws::EC2::Model::DescribeVpcsRequest::VpcIdsHasBeenSet
bool VpcIdsHasBeenSet() const
Definition: DescribeVpcsRequest.h:330
Aws::EC2::Model::DescribeVpcsRequest::WithNextToken
DescribeVpcsRequest & WithNextToken(const char *value)
Definition: DescribeVpcsRequest.h:439
Aws::EC2::Model::DescribeVpcsRequest::GetVpcIds
const Aws::Vector< Aws::String > & GetVpcIds() const
Definition: DescribeVpcsRequest.h:325
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpcsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVpcsRequest.h:382
Aws::EC2::Model::DescribeVpcsRequest::WithNextToken
DescribeVpcsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeVpcsRequest.h:434