AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVpcsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeVpcsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeVpcs"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
71 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
72 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
73 template <typename FiltersT = Aws::Vector<Filter>>
74 void SetFilters(FiltersT&& value) {
75 m_filtersHasBeenSet = true;
76 m_filters = std::forward<FiltersT>(value);
77 }
78 template <typename FiltersT = Aws::Vector<Filter>>
79 DescribeVpcsRequest& WithFilters(FiltersT&& value) {
80 SetFilters(std::forward<FiltersT>(value));
81 return *this;
82 }
83 template <typename FiltersT = Filter>
84 DescribeVpcsRequest& AddFilters(FiltersT&& value) {
85 m_filtersHasBeenSet = true;
86 m_filters.emplace_back(std::forward<FiltersT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetVpcIds() const { return m_vpcIds; }
96 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
97 template <typename VpcIdsT = Aws::Vector<Aws::String>>
98 void SetVpcIds(VpcIdsT&& value) {
99 m_vpcIdsHasBeenSet = true;
100 m_vpcIds = std::forward<VpcIdsT>(value);
101 }
102 template <typename VpcIdsT = Aws::Vector<Aws::String>>
103 DescribeVpcsRequest& WithVpcIds(VpcIdsT&& value) {
104 SetVpcIds(std::forward<VpcIdsT>(value));
105 return *this;
106 }
107 template <typename VpcIdsT = Aws::String>
108 DescribeVpcsRequest& AddVpcIds(VpcIdsT&& value) {
109 m_vpcIdsHasBeenSet = true;
110 m_vpcIds.emplace_back(std::forward<VpcIdsT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetNextToken() const { return m_nextToken; }
121 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
122 template <typename NextTokenT = Aws::String>
123 void SetNextToken(NextTokenT&& value) {
124 m_nextTokenHasBeenSet = true;
125 m_nextToken = std::forward<NextTokenT>(value);
126 }
127 template <typename NextTokenT = Aws::String>
128 DescribeVpcsRequest& WithNextToken(NextTokenT&& value) {
129 SetNextToken(std::forward<NextTokenT>(value));
130 return *this;
131 }
133
135
141 inline int GetMaxResults() const { return m_maxResults; }
142 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
143 inline void SetMaxResults(int value) {
144 m_maxResultsHasBeenSet = true;
145 m_maxResults = value;
146 }
148 SetMaxResults(value);
149 return *this;
150 }
152
154
160 inline bool GetDryRun() const { return m_dryRun; }
161 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
162 inline void SetDryRun(bool value) {
163 m_dryRunHasBeenSet = true;
164 m_dryRun = value;
165 }
166 inline DescribeVpcsRequest& WithDryRun(bool value) {
167 SetDryRun(value);
168 return *this;
169 }
171 private:
172 Aws::Vector<Filter> m_filters;
173
175
176 Aws::String m_nextToken;
177
178 int m_maxResults{0};
179
180 bool m_dryRun{false};
181 bool m_filtersHasBeenSet = false;
182 bool m_vpcIdsHasBeenSet = false;
183 bool m_nextTokenHasBeenSet = false;
184 bool m_maxResultsHasBeenSet = false;
185 bool m_dryRunHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace EC2
190} // 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 & WithVpcIds(VpcIdsT &&value)
DescribeVpcsRequest & AddVpcIds(VpcIdsT &&value)
const Aws::String & GetNextToken() const
DescribeVpcsRequest & AddFilters(FiltersT &&value)
DescribeVpcsRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API DescribeVpcsRequest()=default
const Aws::Vector< Aws::String > & GetVpcIds() const
DescribeVpcsRequest & WithNextToken(NextTokenT &&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