AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSubnetsRequest.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 DescribeSubnetsRequest() = 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 "DescribeSubnets"; }
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
102 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
103 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
104 template <typename FiltersT = Aws::Vector<Filter>>
105 void SetFilters(FiltersT&& value) {
106 m_filtersHasBeenSet = true;
107 m_filters = std::forward<FiltersT>(value);
108 }
109 template <typename FiltersT = Aws::Vector<Filter>>
111 SetFilters(std::forward<FiltersT>(value));
112 return *this;
113 }
114 template <typename FiltersT = Filter>
116 m_filtersHasBeenSet = true;
117 m_filters.emplace_back(std::forward<FiltersT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
127 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
128 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
129 void SetSubnetIds(SubnetIdsT&& value) {
130 m_subnetIdsHasBeenSet = true;
131 m_subnetIds = std::forward<SubnetIdsT>(value);
132 }
133 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
135 SetSubnetIds(std::forward<SubnetIdsT>(value));
136 return *this;
137 }
138 template <typename SubnetIdsT = Aws::String>
140 m_subnetIdsHasBeenSet = true;
141 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetNextToken() const { return m_nextToken; }
152 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 template <typename NextTokenT = Aws::String>
154 void SetNextToken(NextTokenT&& value) {
155 m_nextTokenHasBeenSet = true;
156 m_nextToken = std::forward<NextTokenT>(value);
157 }
158 template <typename NextTokenT = Aws::String>
160 SetNextToken(std::forward<NextTokenT>(value));
161 return *this;
162 }
164
166
172 inline int GetMaxResults() const { return m_maxResults; }
173 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
174 inline void SetMaxResults(int value) {
175 m_maxResultsHasBeenSet = true;
176 m_maxResults = value;
177 }
179 SetMaxResults(value);
180 return *this;
181 }
183
185
191 inline bool GetDryRun() const { return m_dryRun; }
192 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
193 inline void SetDryRun(bool value) {
194 m_dryRunHasBeenSet = true;
195 m_dryRun = value;
196 }
197 inline DescribeSubnetsRequest& WithDryRun(bool value) {
198 SetDryRun(value);
199 return *this;
200 }
202 private:
203 Aws::Vector<Filter> m_filters;
204
205 Aws::Vector<Aws::String> m_subnetIds;
206
207 Aws::String m_nextToken;
208
209 int m_maxResults{0};
210
211 bool m_dryRun{false};
212 bool m_filtersHasBeenSet = false;
213 bool m_subnetIdsHasBeenSet = false;
214 bool m_nextTokenHasBeenSet = false;
215 bool m_maxResultsHasBeenSet = false;
216 bool m_dryRunHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace EC2
221} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSubnetsRequest & WithDryRun(bool value)
AWS_EC2_API DescribeSubnetsRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeSubnetsRequest & WithFilters(FiltersT &&value)
DescribeSubnetsRequest & AddSubnetIds(SubnetIdsT &&value)
DescribeSubnetsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Filter > & GetFilters() const
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSubnetsRequest & AddFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
DescribeSubnetsRequest & WithMaxResults(int value)
DescribeSubnetsRequest & WithSubnetIds(SubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector