AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifySubnetAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/AttributeBooleanValue.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/HostnameType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API ModifySubnetAttributeRequest() = default;
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 "ModifySubnetAttribute"; }
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
51 inline const AttributeBooleanValue& GetAssignIpv6AddressOnCreation() const { return m_assignIpv6AddressOnCreation; }
52 inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
53 template<typename AssignIpv6AddressOnCreationT = AttributeBooleanValue>
54 void SetAssignIpv6AddressOnCreation(AssignIpv6AddressOnCreationT&& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = std::forward<AssignIpv6AddressOnCreationT>(value); }
55 template<typename AssignIpv6AddressOnCreationT = AttributeBooleanValue>
56 ModifySubnetAttributeRequest& WithAssignIpv6AddressOnCreation(AssignIpv6AddressOnCreationT&& value) { SetAssignIpv6AddressOnCreation(std::forward<AssignIpv6AddressOnCreationT>(value)); return *this;}
58
60
68 inline const AttributeBooleanValue& GetMapPublicIpOnLaunch() const { return m_mapPublicIpOnLaunch; }
69 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
70 template<typename MapPublicIpOnLaunchT = AttributeBooleanValue>
71 void SetMapPublicIpOnLaunch(MapPublicIpOnLaunchT&& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = std::forward<MapPublicIpOnLaunchT>(value); }
72 template<typename MapPublicIpOnLaunchT = AttributeBooleanValue>
73 ModifySubnetAttributeRequest& WithMapPublicIpOnLaunch(MapPublicIpOnLaunchT&& value) { SetMapPublicIpOnLaunch(std::forward<MapPublicIpOnLaunchT>(value)); return *this;}
75
77
80 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
81 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
82 template<typename SubnetIdT = Aws::String>
83 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
84 template<typename SubnetIdT = Aws::String>
85 ModifySubnetAttributeRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
87
89
95 inline const AttributeBooleanValue& GetMapCustomerOwnedIpOnLaunch() const { return m_mapCustomerOwnedIpOnLaunch; }
96 inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; }
97 template<typename MapCustomerOwnedIpOnLaunchT = AttributeBooleanValue>
98 void SetMapCustomerOwnedIpOnLaunch(MapCustomerOwnedIpOnLaunchT&& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = std::forward<MapCustomerOwnedIpOnLaunchT>(value); }
99 template<typename MapCustomerOwnedIpOnLaunchT = AttributeBooleanValue>
100 ModifySubnetAttributeRequest& WithMapCustomerOwnedIpOnLaunch(MapCustomerOwnedIpOnLaunchT&& value) { SetMapCustomerOwnedIpOnLaunch(std::forward<MapCustomerOwnedIpOnLaunchT>(value)); return *this;}
102
104
109 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
110 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
111 template<typename CustomerOwnedIpv4PoolT = Aws::String>
112 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value); }
113 template<typename CustomerOwnedIpv4PoolT = Aws::String>
114 ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value)); return *this;}
116
118
128 inline const AttributeBooleanValue& GetEnableDns64() const { return m_enableDns64; }
129 inline bool EnableDns64HasBeenSet() const { return m_enableDns64HasBeenSet; }
130 template<typename EnableDns64T = AttributeBooleanValue>
131 void SetEnableDns64(EnableDns64T&& value) { m_enableDns64HasBeenSet = true; m_enableDns64 = std::forward<EnableDns64T>(value); }
132 template<typename EnableDns64T = AttributeBooleanValue>
133 ModifySubnetAttributeRequest& WithEnableDns64(EnableDns64T&& value) { SetEnableDns64(std::forward<EnableDns64T>(value)); return *this;}
135
137
144 inline HostnameType GetPrivateDnsHostnameTypeOnLaunch() const { return m_privateDnsHostnameTypeOnLaunch; }
145 inline bool PrivateDnsHostnameTypeOnLaunchHasBeenSet() const { return m_privateDnsHostnameTypeOnLaunchHasBeenSet; }
146 inline void SetPrivateDnsHostnameTypeOnLaunch(HostnameType value) { m_privateDnsHostnameTypeOnLaunchHasBeenSet = true; m_privateDnsHostnameTypeOnLaunch = value; }
149
151
155 inline const AttributeBooleanValue& GetEnableResourceNameDnsARecordOnLaunch() const { return m_enableResourceNameDnsARecordOnLaunch; }
156 inline bool EnableResourceNameDnsARecordOnLaunchHasBeenSet() const { return m_enableResourceNameDnsARecordOnLaunchHasBeenSet; }
157 template<typename EnableResourceNameDnsARecordOnLaunchT = AttributeBooleanValue>
158 void SetEnableResourceNameDnsARecordOnLaunch(EnableResourceNameDnsARecordOnLaunchT&& value) { m_enableResourceNameDnsARecordOnLaunchHasBeenSet = true; m_enableResourceNameDnsARecordOnLaunch = std::forward<EnableResourceNameDnsARecordOnLaunchT>(value); }
159 template<typename EnableResourceNameDnsARecordOnLaunchT = AttributeBooleanValue>
160 ModifySubnetAttributeRequest& WithEnableResourceNameDnsARecordOnLaunch(EnableResourceNameDnsARecordOnLaunchT&& value) { SetEnableResourceNameDnsARecordOnLaunch(std::forward<EnableResourceNameDnsARecordOnLaunchT>(value)); return *this;}
162
164
168 inline const AttributeBooleanValue& GetEnableResourceNameDnsAAAARecordOnLaunch() const { return m_enableResourceNameDnsAAAARecordOnLaunch; }
169 inline bool EnableResourceNameDnsAAAARecordOnLaunchHasBeenSet() const { return m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet; }
170 template<typename EnableResourceNameDnsAAAARecordOnLaunchT = AttributeBooleanValue>
171 void SetEnableResourceNameDnsAAAARecordOnLaunch(EnableResourceNameDnsAAAARecordOnLaunchT&& value) { m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = true; m_enableResourceNameDnsAAAARecordOnLaunch = std::forward<EnableResourceNameDnsAAAARecordOnLaunchT>(value); }
172 template<typename EnableResourceNameDnsAAAARecordOnLaunchT = AttributeBooleanValue>
173 ModifySubnetAttributeRequest& WithEnableResourceNameDnsAAAARecordOnLaunch(EnableResourceNameDnsAAAARecordOnLaunchT&& value) { SetEnableResourceNameDnsAAAARecordOnLaunch(std::forward<EnableResourceNameDnsAAAARecordOnLaunchT>(value)); return *this;}
175
177
183 inline int GetEnableLniAtDeviceIndex() const { return m_enableLniAtDeviceIndex; }
184 inline bool EnableLniAtDeviceIndexHasBeenSet() const { return m_enableLniAtDeviceIndexHasBeenSet; }
185 inline void SetEnableLniAtDeviceIndex(int value) { m_enableLniAtDeviceIndexHasBeenSet = true; m_enableLniAtDeviceIndex = value; }
188
190
194 inline const AttributeBooleanValue& GetDisableLniAtDeviceIndex() const { return m_disableLniAtDeviceIndex; }
195 inline bool DisableLniAtDeviceIndexHasBeenSet() const { return m_disableLniAtDeviceIndexHasBeenSet; }
196 template<typename DisableLniAtDeviceIndexT = AttributeBooleanValue>
197 void SetDisableLniAtDeviceIndex(DisableLniAtDeviceIndexT&& value) { m_disableLniAtDeviceIndexHasBeenSet = true; m_disableLniAtDeviceIndex = std::forward<DisableLniAtDeviceIndexT>(value); }
198 template<typename DisableLniAtDeviceIndexT = AttributeBooleanValue>
199 ModifySubnetAttributeRequest& WithDisableLniAtDeviceIndex(DisableLniAtDeviceIndexT&& value) { SetDisableLniAtDeviceIndex(std::forward<DisableLniAtDeviceIndexT>(value)); return *this;}
201 private:
202
203 AttributeBooleanValue m_assignIpv6AddressOnCreation;
204 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
205
206 AttributeBooleanValue m_mapPublicIpOnLaunch;
207 bool m_mapPublicIpOnLaunchHasBeenSet = false;
208
209 Aws::String m_subnetId;
210 bool m_subnetIdHasBeenSet = false;
211
212 AttributeBooleanValue m_mapCustomerOwnedIpOnLaunch;
213 bool m_mapCustomerOwnedIpOnLaunchHasBeenSet = false;
214
215 Aws::String m_customerOwnedIpv4Pool;
216 bool m_customerOwnedIpv4PoolHasBeenSet = false;
217
218 AttributeBooleanValue m_enableDns64;
219 bool m_enableDns64HasBeenSet = false;
220
221 HostnameType m_privateDnsHostnameTypeOnLaunch{HostnameType::NOT_SET};
222 bool m_privateDnsHostnameTypeOnLaunchHasBeenSet = false;
223
224 AttributeBooleanValue m_enableResourceNameDnsARecordOnLaunch;
225 bool m_enableResourceNameDnsARecordOnLaunchHasBeenSet = false;
226
227 AttributeBooleanValue m_enableResourceNameDnsAAAARecordOnLaunch;
228 bool m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = false;
229
230 int m_enableLniAtDeviceIndex{0};
231 bool m_enableLniAtDeviceIndexHasBeenSet = false;
232
233 AttributeBooleanValue m_disableLniAtDeviceIndex;
234 bool m_disableLniAtDeviceIndexHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace EC2
239} // 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