AWS SDK for C++  1.9.125
AWS SDK for C++
DescribeRouteTablesRequest.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 "DescribeRouteTables"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
88  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
89 
137  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
138 
186  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
187 
235  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
236 
284  inline DescribeRouteTablesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
285 
333  inline DescribeRouteTablesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
334 
382  inline DescribeRouteTablesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
383 
431  inline DescribeRouteTablesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
432 
433 
440  inline bool GetDryRun() const{ return m_dryRun; }
441 
448  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
449 
456  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
457 
464  inline DescribeRouteTablesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
465 
466 
471  inline const Aws::Vector<Aws::String>& GetRouteTableIds() const{ return m_routeTableIds; }
472 
477  inline bool RouteTableIdsHasBeenSet() const { return m_routeTableIdsHasBeenSet; }
478 
483  inline void SetRouteTableIds(const Aws::Vector<Aws::String>& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = value; }
484 
489  inline void SetRouteTableIds(Aws::Vector<Aws::String>&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds = std::move(value); }
490 
495  inline DescribeRouteTablesRequest& WithRouteTableIds(const Aws::Vector<Aws::String>& value) { SetRouteTableIds(value); return *this;}
496 
501  inline DescribeRouteTablesRequest& WithRouteTableIds(Aws::Vector<Aws::String>&& value) { SetRouteTableIds(std::move(value)); return *this;}
502 
507  inline DescribeRouteTablesRequest& AddRouteTableIds(const Aws::String& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
508 
513  inline DescribeRouteTablesRequest& AddRouteTableIds(Aws::String&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(std::move(value)); return *this; }
514 
519  inline DescribeRouteTablesRequest& AddRouteTableIds(const char* value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; }
520 
521 
525  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
526 
530  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
531 
535  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
536 
540  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
541 
545  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
546 
550  inline DescribeRouteTablesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
551 
555  inline DescribeRouteTablesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
556 
560  inline DescribeRouteTablesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
561 
562 
568  inline int GetMaxResults() const{ return m_maxResults; }
569 
575  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
576 
582  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
583 
589  inline DescribeRouteTablesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
590 
591  private:
592 
593  Aws::Vector<Filter> m_filters;
594  bool m_filtersHasBeenSet;
595 
596  bool m_dryRun;
597  bool m_dryRunHasBeenSet;
598 
599  Aws::Vector<Aws::String> m_routeTableIds;
600  bool m_routeTableIdsHasBeenSet;
601 
602  Aws::String m_nextToken;
603  bool m_nextTokenHasBeenSet;
604 
605  int m_maxResults;
606  bool m_maxResultsHasBeenSet;
607  };
608 
609 } // namespace Model
610 } // namespace EC2
611 } // namespace Aws
Aws::EC2::Model::DescribeRouteTablesRequest::AddFilters
DescribeRouteTablesRequest & AddFilters(Filter &&value)
Definition: DescribeRouteTablesRequest.h:431
Aws::EC2::Model::DescribeRouteTablesRequest::WithDryRun
DescribeRouteTablesRequest & WithDryRun(bool value)
Definition: DescribeRouteTablesRequest.h:464
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeRouteTablesRequest::AddRouteTableIds
DescribeRouteTablesRequest & AddRouteTableIds(const char *value)
Definition: DescribeRouteTablesRequest.h:519
Aws::EC2::Model::DescribeRouteTablesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeRouteTablesRequest.h:540
Aws::EC2::Model::DescribeRouteTablesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeRouteTablesRequest.h:456
Aws::EC2::Model::DescribeRouteTablesRequest::DescribeRouteTablesRequest
DescribeRouteTablesRequest()
Aws::EC2::Model::DescribeRouteTablesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeRouteTablesRequest.h:32
Aws::EC2::Model::DescribeRouteTablesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeRouteTablesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeRouteTablesRequest.h:575
Aws::EC2::Model::DescribeRouteTablesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeRouteTablesRequest.h:568
Aws::EC2::Model::DescribeRouteTablesRequest::SetRouteTableIds
void SetRouteTableIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeRouteTablesRequest.h:483
Aws::EC2::Model::DescribeRouteTablesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeRouteTablesRequest.h:530
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeRouteTablesRequest::SetRouteTableIds
void SetRouteTableIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeRouteTablesRequest.h:489
Aws::EC2::Model::DescribeRouteTablesRequest::WithFilters
DescribeRouteTablesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeRouteTablesRequest.h:284
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeRouteTablesRequest::AddFilters
DescribeRouteTablesRequest & AddFilters(const Filter &value)
Definition: DescribeRouteTablesRequest.h:382
Aws::EC2::Model::DescribeRouteTablesRequest::RouteTableIdsHasBeenSet
bool RouteTableIdsHasBeenSet() const
Definition: DescribeRouteTablesRequest.h:477
Aws::EC2::Model::DescribeRouteTablesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeRouteTablesRequest.h:235
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeRouteTablesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeRouteTablesRequest.h:137
Aws::EC2::Model::DescribeRouteTablesRequest::WithNextToken
DescribeRouteTablesRequest & WithNextToken(const char *value)
Definition: DescribeRouteTablesRequest.h:560
Aws::EC2::Model::DescribeRouteTablesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeRouteTablesRequest.h:88
Aws::EC2::Model::DescribeRouteTablesRequest::GetRouteTableIds
const Aws::Vector< Aws::String > & GetRouteTableIds() const
Definition: DescribeRouteTablesRequest.h:471
Aws::EC2::Model::DescribeRouteTablesRequest::WithFilters
DescribeRouteTablesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeRouteTablesRequest.h:333
Aws::EC2::Model::DescribeRouteTablesRequest::WithNextToken
DescribeRouteTablesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeRouteTablesRequest.h:555
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeRouteTablesRequest::AddRouteTableIds
DescribeRouteTablesRequest & AddRouteTableIds(const Aws::String &value)
Definition: DescribeRouteTablesRequest.h:507
Aws::EC2::Model::DescribeRouteTablesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeRouteTablesRequest.h:186
Aws::EC2::Model::DescribeRouteTablesRequest::WithRouteTableIds
DescribeRouteTablesRequest & WithRouteTableIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeRouteTablesRequest.h:501
Aws::EC2::Model::DescribeRouteTablesRequest
Definition: DescribeRouteTablesRequest.h:24
Aws::EC2::Model::DescribeRouteTablesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeRouteTablesRequest.h:535
Aws::EC2::Model::DescribeRouteTablesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeRouteTablesRequest.h:448
Aws::EC2::Model::DescribeRouteTablesRequest::WithMaxResults
DescribeRouteTablesRequest & WithMaxResults(int value)
Definition: DescribeRouteTablesRequest.h:589
Aws::EC2::Model::DescribeRouteTablesRequest::WithRouteTableIds
DescribeRouteTablesRequest & WithRouteTableIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeRouteTablesRequest.h:495
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeRouteTablesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeRouteTablesRequest.h:545
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::DescribeRouteTablesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeRouteTablesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeRouteTablesRequest.h:440
Aws::EC2::Model::DescribeRouteTablesRequest::WithNextToken
DescribeRouteTablesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeRouteTablesRequest.h:550
Aws::EC2::Model::DescribeRouteTablesRequest::AddRouteTableIds
DescribeRouteTablesRequest & AddRouteTableIds(Aws::String &&value)
Definition: DescribeRouteTablesRequest.h:513
Aws::EC2::Model::DescribeRouteTablesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeRouteTablesRequest.h:582
EC2_EXPORTS.h
Aws::EC2::Model::DescribeRouteTablesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeRouteTablesRequest.h:525