AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifySubnetAttributeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/AttributeBooleanValue.h>
11#include <aws/ec2/model/HostnameType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API ModifySubnetAttributeRequest() = 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 "ModifySubnetAttribute"; }
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
47 inline const AttributeBooleanValue& GetAssignIpv6AddressOnCreation() const { return m_assignIpv6AddressOnCreation; }
48 inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
49 template <typename AssignIpv6AddressOnCreationT = AttributeBooleanValue>
50 void SetAssignIpv6AddressOnCreation(AssignIpv6AddressOnCreationT&& value) {
51 m_assignIpv6AddressOnCreationHasBeenSet = true;
52 m_assignIpv6AddressOnCreation = std::forward<AssignIpv6AddressOnCreationT>(value);
53 }
54 template <typename AssignIpv6AddressOnCreationT = AttributeBooleanValue>
55 ModifySubnetAttributeRequest& WithAssignIpv6AddressOnCreation(AssignIpv6AddressOnCreationT&& value) {
56 SetAssignIpv6AddressOnCreation(std::forward<AssignIpv6AddressOnCreationT>(value));
57 return *this;
58 }
60
62
70 inline const AttributeBooleanValue& GetMapPublicIpOnLaunch() const { return m_mapPublicIpOnLaunch; }
71 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
72 template <typename MapPublicIpOnLaunchT = AttributeBooleanValue>
73 void SetMapPublicIpOnLaunch(MapPublicIpOnLaunchT&& value) {
74 m_mapPublicIpOnLaunchHasBeenSet = true;
75 m_mapPublicIpOnLaunch = std::forward<MapPublicIpOnLaunchT>(value);
76 }
77 template <typename MapPublicIpOnLaunchT = AttributeBooleanValue>
79 SetMapPublicIpOnLaunch(std::forward<MapPublicIpOnLaunchT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
89 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
90 template <typename SubnetIdT = Aws::String>
91 void SetSubnetId(SubnetIdT&& value) {
92 m_subnetIdHasBeenSet = true;
93 m_subnetId = std::forward<SubnetIdT>(value);
94 }
95 template <typename SubnetIdT = Aws::String>
97 SetSubnetId(std::forward<SubnetIdT>(value));
98 return *this;
99 }
101
103
109 inline const AttributeBooleanValue& GetMapCustomerOwnedIpOnLaunch() const { return m_mapCustomerOwnedIpOnLaunch; }
110 inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; }
111 template <typename MapCustomerOwnedIpOnLaunchT = AttributeBooleanValue>
112 void SetMapCustomerOwnedIpOnLaunch(MapCustomerOwnedIpOnLaunchT&& value) {
113 m_mapCustomerOwnedIpOnLaunchHasBeenSet = true;
114 m_mapCustomerOwnedIpOnLaunch = std::forward<MapCustomerOwnedIpOnLaunchT>(value);
115 }
116 template <typename MapCustomerOwnedIpOnLaunchT = AttributeBooleanValue>
117 ModifySubnetAttributeRequest& WithMapCustomerOwnedIpOnLaunch(MapCustomerOwnedIpOnLaunchT&& value) {
118 SetMapCustomerOwnedIpOnLaunch(std::forward<MapCustomerOwnedIpOnLaunchT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
130 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
131 template <typename CustomerOwnedIpv4PoolT = Aws::String>
132 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
133 m_customerOwnedIpv4PoolHasBeenSet = true;
134 m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value);
135 }
136 template <typename CustomerOwnedIpv4PoolT = Aws::String>
138 SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value));
139 return *this;
140 }
142
144
154 inline const AttributeBooleanValue& GetEnableDns64() const { return m_enableDns64; }
155 inline bool EnableDns64HasBeenSet() const { return m_enableDns64HasBeenSet; }
156 template <typename EnableDns64T = AttributeBooleanValue>
157 void SetEnableDns64(EnableDns64T&& value) {
158 m_enableDns64HasBeenSet = true;
159 m_enableDns64 = std::forward<EnableDns64T>(value);
160 }
161 template <typename EnableDns64T = AttributeBooleanValue>
163 SetEnableDns64(std::forward<EnableDns64T>(value));
164 return *this;
165 }
167
169
176 inline HostnameType GetPrivateDnsHostnameTypeOnLaunch() const { return m_privateDnsHostnameTypeOnLaunch; }
177 inline bool PrivateDnsHostnameTypeOnLaunchHasBeenSet() const { return m_privateDnsHostnameTypeOnLaunchHasBeenSet; }
179 m_privateDnsHostnameTypeOnLaunchHasBeenSet = true;
180 m_privateDnsHostnameTypeOnLaunch = value;
181 }
184 return *this;
185 }
187
189
193 inline const AttributeBooleanValue& GetEnableResourceNameDnsARecordOnLaunch() const { return m_enableResourceNameDnsARecordOnLaunch; }
194 inline bool EnableResourceNameDnsARecordOnLaunchHasBeenSet() const { return m_enableResourceNameDnsARecordOnLaunchHasBeenSet; }
195 template <typename EnableResourceNameDnsARecordOnLaunchT = AttributeBooleanValue>
196 void SetEnableResourceNameDnsARecordOnLaunch(EnableResourceNameDnsARecordOnLaunchT&& value) {
197 m_enableResourceNameDnsARecordOnLaunchHasBeenSet = true;
198 m_enableResourceNameDnsARecordOnLaunch = std::forward<EnableResourceNameDnsARecordOnLaunchT>(value);
199 }
200 template <typename EnableResourceNameDnsARecordOnLaunchT = AttributeBooleanValue>
201 ModifySubnetAttributeRequest& WithEnableResourceNameDnsARecordOnLaunch(EnableResourceNameDnsARecordOnLaunchT&& value) {
202 SetEnableResourceNameDnsARecordOnLaunch(std::forward<EnableResourceNameDnsARecordOnLaunchT>(value));
203 return *this;
204 }
206
208
213 return m_enableResourceNameDnsAAAARecordOnLaunch;
214 }
215 inline bool EnableResourceNameDnsAAAARecordOnLaunchHasBeenSet() const { return m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet; }
216 template <typename EnableResourceNameDnsAAAARecordOnLaunchT = AttributeBooleanValue>
217 void SetEnableResourceNameDnsAAAARecordOnLaunch(EnableResourceNameDnsAAAARecordOnLaunchT&& value) {
218 m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = true;
219 m_enableResourceNameDnsAAAARecordOnLaunch = std::forward<EnableResourceNameDnsAAAARecordOnLaunchT>(value);
220 }
221 template <typename EnableResourceNameDnsAAAARecordOnLaunchT = AttributeBooleanValue>
222 ModifySubnetAttributeRequest& WithEnableResourceNameDnsAAAARecordOnLaunch(EnableResourceNameDnsAAAARecordOnLaunchT&& value) {
223 SetEnableResourceNameDnsAAAARecordOnLaunch(std::forward<EnableResourceNameDnsAAAARecordOnLaunchT>(value));
224 return *this;
225 }
227
229
235 inline int GetEnableLniAtDeviceIndex() const { return m_enableLniAtDeviceIndex; }
236 inline bool EnableLniAtDeviceIndexHasBeenSet() const { return m_enableLniAtDeviceIndexHasBeenSet; }
237 inline void SetEnableLniAtDeviceIndex(int value) {
238 m_enableLniAtDeviceIndexHasBeenSet = true;
239 m_enableLniAtDeviceIndex = value;
240 }
243 return *this;
244 }
246
248
252 inline const AttributeBooleanValue& GetDisableLniAtDeviceIndex() const { return m_disableLniAtDeviceIndex; }
253 inline bool DisableLniAtDeviceIndexHasBeenSet() const { return m_disableLniAtDeviceIndexHasBeenSet; }
254 template <typename DisableLniAtDeviceIndexT = AttributeBooleanValue>
255 void SetDisableLniAtDeviceIndex(DisableLniAtDeviceIndexT&& value) {
256 m_disableLniAtDeviceIndexHasBeenSet = true;
257 m_disableLniAtDeviceIndex = std::forward<DisableLniAtDeviceIndexT>(value);
258 }
259 template <typename DisableLniAtDeviceIndexT = AttributeBooleanValue>
261 SetDisableLniAtDeviceIndex(std::forward<DisableLniAtDeviceIndexT>(value));
262 return *this;
263 }
265 private:
266 AttributeBooleanValue m_assignIpv6AddressOnCreation;
267
268 AttributeBooleanValue m_mapPublicIpOnLaunch;
269
270 Aws::String m_subnetId;
271
272 AttributeBooleanValue m_mapCustomerOwnedIpOnLaunch;
273
274 Aws::String m_customerOwnedIpv4Pool;
275
276 AttributeBooleanValue m_enableDns64;
277
278 HostnameType m_privateDnsHostnameTypeOnLaunch{HostnameType::NOT_SET};
279
280 AttributeBooleanValue m_enableResourceNameDnsARecordOnLaunch;
281
282 AttributeBooleanValue m_enableResourceNameDnsAAAARecordOnLaunch;
283
284 int m_enableLniAtDeviceIndex{0};
285
286 AttributeBooleanValue m_disableLniAtDeviceIndex;
287 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
288 bool m_mapPublicIpOnLaunchHasBeenSet = false;
289 bool m_subnetIdHasBeenSet = false;
290 bool m_mapCustomerOwnedIpOnLaunchHasBeenSet = false;
291 bool m_customerOwnedIpv4PoolHasBeenSet = false;
292 bool m_enableDns64HasBeenSet = false;
293 bool m_privateDnsHostnameTypeOnLaunchHasBeenSet = false;
294 bool m_enableResourceNameDnsARecordOnLaunchHasBeenSet = false;
295 bool m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = false;
296 bool m_enableLniAtDeviceIndexHasBeenSet = false;
297 bool m_disableLniAtDeviceIndexHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace EC2
302} // namespace Aws
void SetMapPublicIpOnLaunch(MapPublicIpOnLaunchT &&value)
ModifySubnetAttributeRequest & WithEnableDns64(EnableDns64T &&value)
const AttributeBooleanValue & GetDisableLniAtDeviceIndex() const
ModifySubnetAttributeRequest & WithSubnetId(SubnetIdT &&value)
ModifySubnetAttributeRequest & WithEnableResourceNameDnsARecordOnLaunch(EnableResourceNameDnsARecordOnLaunchT &&value)
ModifySubnetAttributeRequest & WithMapCustomerOwnedIpOnLaunch(MapCustomerOwnedIpOnLaunchT &&value)
const AttributeBooleanValue & GetAssignIpv6AddressOnCreation() const
const AttributeBooleanValue & GetMapCustomerOwnedIpOnLaunch() const
ModifySubnetAttributeRequest & WithPrivateDnsHostnameTypeOnLaunch(HostnameType value)
ModifySubnetAttributeRequest & WithEnableResourceNameDnsAAAARecordOnLaunch(EnableResourceNameDnsAAAARecordOnLaunchT &&value)
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
const AttributeBooleanValue & GetEnableResourceNameDnsAAAARecordOnLaunch() const
void SetDisableLniAtDeviceIndex(DisableLniAtDeviceIndexT &&value)
AWS_EC2_API ModifySubnetAttributeRequest()=default
const AttributeBooleanValue & GetEnableResourceNameDnsARecordOnLaunch() const
virtual const char * GetServiceRequestName() const override
ModifySubnetAttributeRequest & WithEnableLniAtDeviceIndex(int value)
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
void SetEnableResourceNameDnsAAAARecordOnLaunch(EnableResourceNameDnsAAAARecordOnLaunchT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifySubnetAttributeRequest & WithAssignIpv6AddressOnCreation(AssignIpv6AddressOnCreationT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifySubnetAttributeRequest & WithDisableLniAtDeviceIndex(DisableLniAtDeviceIndexT &&value)
ModifySubnetAttributeRequest & WithMapPublicIpOnLaunch(MapPublicIpOnLaunchT &&value)
void SetEnableResourceNameDnsARecordOnLaunch(EnableResourceNameDnsARecordOnLaunchT &&value)
void SetMapCustomerOwnedIpOnLaunch(MapCustomerOwnedIpOnLaunchT &&value)
void SetAssignIpv6AddressOnCreation(AssignIpv6AddressOnCreationT &&value)
const AttributeBooleanValue & GetMapPublicIpOnLaunch() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String