AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeVpcsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API DescribeVpcsRequest();
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
75 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
76 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
77 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
78 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
79 inline DescribeVpcsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
80 inline DescribeVpcsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
81 inline DescribeVpcsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
82 inline DescribeVpcsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Vector<Aws::String>& GetVpcIds() const{ return m_vpcIds; }
90 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
91 inline void SetVpcIds(const Aws::Vector<Aws::String>& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = value; }
92 inline void SetVpcIds(Aws::Vector<Aws::String>&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::move(value); }
93 inline DescribeVpcsRequest& WithVpcIds(const Aws::Vector<Aws::String>& value) { SetVpcIds(value); return *this;}
94 inline DescribeVpcsRequest& WithVpcIds(Aws::Vector<Aws::String>&& value) { SetVpcIds(std::move(value)); return *this;}
95 inline DescribeVpcsRequest& AddVpcIds(const Aws::String& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
96 inline DescribeVpcsRequest& AddVpcIds(Aws::String&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(std::move(value)); return *this; }
97 inline DescribeVpcsRequest& AddVpcIds(const char* value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
99
101
105 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
106 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
107 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
108 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
109 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
110 inline DescribeVpcsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
111 inline DescribeVpcsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 inline DescribeVpcsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114
116
122 inline int GetMaxResults() const{ return m_maxResults; }
123 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
124 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
125 inline DescribeVpcsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
127
129
135 inline bool GetDryRun() const{ return m_dryRun; }
136 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
137 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
138 inline DescribeVpcsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
140 private:
141
142 Aws::Vector<Filter> m_filters;
143 bool m_filtersHasBeenSet = false;
144
146 bool m_vpcIdsHasBeenSet = false;
147
148 Aws::String m_nextToken;
149 bool m_nextTokenHasBeenSet = false;
150
151 int m_maxResults;
152 bool m_maxResultsHasBeenSet = false;
153
154 bool m_dryRun;
155 bool m_dryRunHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace EC2
160} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeVpcsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
DescribeVpcsRequest & WithDryRun(bool value)
DescribeVpcsRequest & WithNextToken(const Aws::String &value)
DescribeVpcsRequest & WithNextToken(Aws::String &&value)
DescribeVpcsRequest & WithNextToken(const char *value)
const Aws::String & GetNextToken() const
DescribeVpcsRequest & AddFilters(Filter &&value)
DescribeVpcsRequest & AddVpcIds(const char *value)
void SetFilters(const Aws::Vector< Filter > &value)
DescribeVpcsRequest & WithVpcIds(const Aws::Vector< Aws::String > &value)
DescribeVpcsRequest & WithFilters(const Aws::Vector< Filter > &value)
void SetFilters(Aws::Vector< Filter > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetVpcIds(const Aws::Vector< Aws::String > &value)
void SetVpcIds(Aws::Vector< Aws::String > &&value)
DescribeVpcsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeVpcsRequest & AddVpcIds(const Aws::String &value)
void SetNextToken(const Aws::String &value)
DescribeVpcsRequest & AddFilters(const Filter &value)
DescribeVpcsRequest & AddVpcIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcIds() const
DescribeVpcsRequest & WithVpcIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Filter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector