AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
AllocateIpamPoolCidrRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API AllocateIpamPoolCidrRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AllocateIpamPoolCidr"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline bool GetDryRun() const { return m_dryRun; }
46 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
47 inline void SetDryRun(bool value) {
48 m_dryRunHasBeenSet = true;
49 m_dryRun = value;
50 }
52 SetDryRun(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
62 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
63 template <typename IpamPoolIdT = Aws::String>
64 void SetIpamPoolId(IpamPoolIdT&& value) {
65 m_ipamPoolIdHasBeenSet = true;
66 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
67 }
68 template <typename IpamPoolIdT = Aws::String>
70 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
71 return *this;
72 }
74
76
85 inline const Aws::String& GetCidr() const { return m_cidr; }
86 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
87 template <typename CidrT = Aws::String>
88 void SetCidr(CidrT&& value) {
89 m_cidrHasBeenSet = true;
90 m_cidr = std::forward<CidrT>(value);
91 }
92 template <typename CidrT = Aws::String>
94 SetCidr(std::forward<CidrT>(value));
95 return *this;
96 }
98
100
110 inline int GetNetmaskLength() const { return m_netmaskLength; }
111 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
112 inline void SetNetmaskLength(int value) {
113 m_netmaskLengthHasBeenSet = true;
114 m_netmaskLength = value;
115 }
117 SetNetmaskLength(value);
118 return *this;
119 }
121
123
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template <typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) {
133 m_clientTokenHasBeenSet = true;
134 m_clientToken = std::forward<ClientTokenT>(value);
135 }
136 template <typename ClientTokenT = Aws::String>
138 SetClientToken(std::forward<ClientTokenT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetDescription() const { return m_description; }
148 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
149 template <typename DescriptionT = Aws::String>
150 void SetDescription(DescriptionT&& value) {
151 m_descriptionHasBeenSet = true;
152 m_description = std::forward<DescriptionT>(value);
153 }
154 template <typename DescriptionT = Aws::String>
156 SetDescription(std::forward<DescriptionT>(value));
157 return *this;
158 }
160
162
165 inline bool GetPreviewNextCidr() const { return m_previewNextCidr; }
166 inline bool PreviewNextCidrHasBeenSet() const { return m_previewNextCidrHasBeenSet; }
167 inline void SetPreviewNextCidr(bool value) {
168 m_previewNextCidrHasBeenSet = true;
169 m_previewNextCidr = value;
170 }
172 SetPreviewNextCidr(value);
173 return *this;
174 }
176
178
182 inline const Aws::Vector<Aws::String>& GetAllowedCidrs() const { return m_allowedCidrs; }
183 inline bool AllowedCidrsHasBeenSet() const { return m_allowedCidrsHasBeenSet; }
184 template <typename AllowedCidrsT = Aws::Vector<Aws::String>>
185 void SetAllowedCidrs(AllowedCidrsT&& value) {
186 m_allowedCidrsHasBeenSet = true;
187 m_allowedCidrs = std::forward<AllowedCidrsT>(value);
188 }
189 template <typename AllowedCidrsT = Aws::Vector<Aws::String>>
191 SetAllowedCidrs(std::forward<AllowedCidrsT>(value));
192 return *this;
193 }
194 template <typename AllowedCidrsT = Aws::String>
196 m_allowedCidrsHasBeenSet = true;
197 m_allowedCidrs.emplace_back(std::forward<AllowedCidrsT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::Vector<Aws::String>& GetDisallowedCidrs() const { return m_disallowedCidrs; }
208 inline bool DisallowedCidrsHasBeenSet() const { return m_disallowedCidrsHasBeenSet; }
209 template <typename DisallowedCidrsT = Aws::Vector<Aws::String>>
210 void SetDisallowedCidrs(DisallowedCidrsT&& value) {
211 m_disallowedCidrsHasBeenSet = true;
212 m_disallowedCidrs = std::forward<DisallowedCidrsT>(value);
213 }
214 template <typename DisallowedCidrsT = Aws::Vector<Aws::String>>
216 SetDisallowedCidrs(std::forward<DisallowedCidrsT>(value));
217 return *this;
218 }
219 template <typename DisallowedCidrsT = Aws::String>
221 m_disallowedCidrsHasBeenSet = true;
222 m_disallowedCidrs.emplace_back(std::forward<DisallowedCidrsT>(value));
223 return *this;
224 }
226
228
237 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
238 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
239 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
240 void SetTagSpecifications(TagSpecificationsT&& value) {
241 m_tagSpecificationsHasBeenSet = true;
242 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
243 }
244 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
246 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
247 return *this;
248 }
249 template <typename TagSpecificationsT = TagSpecification>
251 m_tagSpecificationsHasBeenSet = true;
252 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
253 return *this;
254 }
256 private:
257 bool m_dryRun{false};
258
259 Aws::String m_ipamPoolId;
260
261 Aws::String m_cidr;
262
263 int m_netmaskLength{0};
264
266
267 Aws::String m_description;
268
269 bool m_previewNextCidr{false};
270
271 Aws::Vector<Aws::String> m_allowedCidrs;
272
273 Aws::Vector<Aws::String> m_disallowedCidrs;
274
275 Aws::Vector<TagSpecification> m_tagSpecifications;
276 bool m_dryRunHasBeenSet = false;
277 bool m_ipamPoolIdHasBeenSet = false;
278 bool m_cidrHasBeenSet = false;
279 bool m_netmaskLengthHasBeenSet = false;
280 bool m_clientTokenHasBeenSet = true;
281 bool m_descriptionHasBeenSet = false;
282 bool m_previewNextCidrHasBeenSet = false;
283 bool m_allowedCidrsHasBeenSet = false;
284 bool m_disallowedCidrsHasBeenSet = false;
285 bool m_tagSpecificationsHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace EC2
290} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API AllocateIpamPoolCidrRequest()=default
AllocateIpamPoolCidrRequest & WithDisallowedCidrs(DisallowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithAllowedCidrs(AllowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithNetmaskLength(int value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API Aws::String SerializePayload() const override
AllocateIpamPoolCidrRequest & WithTagSpecifications(TagSpecificationsT &&value)
AllocateIpamPoolCidrRequest & WithPreviewNextCidr(bool value)
virtual const char * GetServiceRequestName() const override
AllocateIpamPoolCidrRequest & AddDisallowedCidrs(DisallowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithIpamPoolId(IpamPoolIdT &&value)
AllocateIpamPoolCidrRequest & AddAllowedCidrs(AllowedCidrsT &&value)
const Aws::Vector< Aws::String > & GetDisallowedCidrs() const
AllocateIpamPoolCidrRequest & AddTagSpecifications(TagSpecificationsT &&value)
AllocateIpamPoolCidrRequest & WithCidr(CidrT &&value)
AllocateIpamPoolCidrRequest & WithClientToken(ClientTokenT &&value)
AllocateIpamPoolCidrRequest & WithDescription(DescriptionT &&value)
AllocateIpamPoolCidrRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetAllowedCidrs() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector