AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAssignIpv6AddressOnCreation(const AttributeBooleanValue& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = value; }
54 inline void SetAssignIpv6AddressOnCreation(AttributeBooleanValue&& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = std::move(value); }
58
60
68 inline const AttributeBooleanValue& GetMapPublicIpOnLaunch() const{ return m_mapPublicIpOnLaunch; }
69 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
70 inline void SetMapPublicIpOnLaunch(const AttributeBooleanValue& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; }
71 inline void SetMapPublicIpOnLaunch(AttributeBooleanValue&& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = std::move(value); }
75
77
80 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
81 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
82 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
83 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
84 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
85 inline ModifySubnetAttributeRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
86 inline ModifySubnetAttributeRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
87 inline ModifySubnetAttributeRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
89
91
97 inline const AttributeBooleanValue& GetMapCustomerOwnedIpOnLaunch() const{ return m_mapCustomerOwnedIpOnLaunch; }
98 inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; }
99 inline void SetMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = value; }
100 inline void SetMapCustomerOwnedIpOnLaunch(AttributeBooleanValue&& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = std::move(value); }
104
106
111 inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
112 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
113 inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
114 inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
115 inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
118 inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
120
122
132 inline const AttributeBooleanValue& GetEnableDns64() const{ return m_enableDns64; }
133 inline bool EnableDns64HasBeenSet() const { return m_enableDns64HasBeenSet; }
134 inline void SetEnableDns64(const AttributeBooleanValue& value) { m_enableDns64HasBeenSet = true; m_enableDns64 = value; }
135 inline void SetEnableDns64(AttributeBooleanValue&& value) { m_enableDns64HasBeenSet = true; m_enableDns64 = std::move(value); }
137 inline ModifySubnetAttributeRequest& WithEnableDns64(AttributeBooleanValue&& value) { SetEnableDns64(std::move(value)); return *this;}
139
141
148 inline const HostnameType& GetPrivateDnsHostnameTypeOnLaunch() const{ return m_privateDnsHostnameTypeOnLaunch; }
149 inline bool PrivateDnsHostnameTypeOnLaunchHasBeenSet() const { return m_privateDnsHostnameTypeOnLaunchHasBeenSet; }
150 inline void SetPrivateDnsHostnameTypeOnLaunch(const HostnameType& value) { m_privateDnsHostnameTypeOnLaunchHasBeenSet = true; m_privateDnsHostnameTypeOnLaunch = value; }
151 inline void SetPrivateDnsHostnameTypeOnLaunch(HostnameType&& value) { m_privateDnsHostnameTypeOnLaunchHasBeenSet = true; m_privateDnsHostnameTypeOnLaunch = std::move(value); }
155
157
161 inline const AttributeBooleanValue& GetEnableResourceNameDnsARecordOnLaunch() const{ return m_enableResourceNameDnsARecordOnLaunch; }
162 inline bool EnableResourceNameDnsARecordOnLaunchHasBeenSet() const { return m_enableResourceNameDnsARecordOnLaunchHasBeenSet; }
163 inline void SetEnableResourceNameDnsARecordOnLaunch(const AttributeBooleanValue& value) { m_enableResourceNameDnsARecordOnLaunchHasBeenSet = true; m_enableResourceNameDnsARecordOnLaunch = value; }
164 inline void SetEnableResourceNameDnsARecordOnLaunch(AttributeBooleanValue&& value) { m_enableResourceNameDnsARecordOnLaunchHasBeenSet = true; m_enableResourceNameDnsARecordOnLaunch = std::move(value); }
168
170
174 inline const AttributeBooleanValue& GetEnableResourceNameDnsAAAARecordOnLaunch() const{ return m_enableResourceNameDnsAAAARecordOnLaunch; }
175 inline bool EnableResourceNameDnsAAAARecordOnLaunchHasBeenSet() const { return m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet; }
176 inline void SetEnableResourceNameDnsAAAARecordOnLaunch(const AttributeBooleanValue& value) { m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = true; m_enableResourceNameDnsAAAARecordOnLaunch = value; }
177 inline void SetEnableResourceNameDnsAAAARecordOnLaunch(AttributeBooleanValue&& value) { m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = true; m_enableResourceNameDnsAAAARecordOnLaunch = std::move(value); }
181
183
189 inline int GetEnableLniAtDeviceIndex() const{ return m_enableLniAtDeviceIndex; }
190 inline bool EnableLniAtDeviceIndexHasBeenSet() const { return m_enableLniAtDeviceIndexHasBeenSet; }
191 inline void SetEnableLniAtDeviceIndex(int value) { m_enableLniAtDeviceIndexHasBeenSet = true; m_enableLniAtDeviceIndex = value; }
194
196
200 inline const AttributeBooleanValue& GetDisableLniAtDeviceIndex() const{ return m_disableLniAtDeviceIndex; }
201 inline bool DisableLniAtDeviceIndexHasBeenSet() const { return m_disableLniAtDeviceIndexHasBeenSet; }
202 inline void SetDisableLniAtDeviceIndex(const AttributeBooleanValue& value) { m_disableLniAtDeviceIndexHasBeenSet = true; m_disableLniAtDeviceIndex = value; }
203 inline void SetDisableLniAtDeviceIndex(AttributeBooleanValue&& value) { m_disableLniAtDeviceIndexHasBeenSet = true; m_disableLniAtDeviceIndex = std::move(value); }
207 private:
208
209 AttributeBooleanValue m_assignIpv6AddressOnCreation;
210 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
211
212 AttributeBooleanValue m_mapPublicIpOnLaunch;
213 bool m_mapPublicIpOnLaunchHasBeenSet = false;
214
215 Aws::String m_subnetId;
216 bool m_subnetIdHasBeenSet = false;
217
218 AttributeBooleanValue m_mapCustomerOwnedIpOnLaunch;
219 bool m_mapCustomerOwnedIpOnLaunchHasBeenSet = false;
220
221 Aws::String m_customerOwnedIpv4Pool;
222 bool m_customerOwnedIpv4PoolHasBeenSet = false;
223
224 AttributeBooleanValue m_enableDns64;
225 bool m_enableDns64HasBeenSet = false;
226
227 HostnameType m_privateDnsHostnameTypeOnLaunch;
228 bool m_privateDnsHostnameTypeOnLaunchHasBeenSet = false;
229
230 AttributeBooleanValue m_enableResourceNameDnsARecordOnLaunch;
231 bool m_enableResourceNameDnsARecordOnLaunchHasBeenSet = false;
232
233 AttributeBooleanValue m_enableResourceNameDnsAAAARecordOnLaunch;
234 bool m_enableResourceNameDnsAAAARecordOnLaunchHasBeenSet = false;
235
236 int m_enableLniAtDeviceIndex;
237 bool m_enableLniAtDeviceIndexHasBeenSet = false;
238
239 AttributeBooleanValue m_disableLniAtDeviceIndex;
240 bool m_disableLniAtDeviceIndexHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace EC2
245} // namespace Aws
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
ModifySubnetAttributeRequest & WithEnableResourceNameDnsARecordOnLaunch(const AttributeBooleanValue &value)
void SetMapPublicIpOnLaunch(const AttributeBooleanValue &value)
void SetEnableDns64(const AttributeBooleanValue &value)
const AttributeBooleanValue & GetDisableLniAtDeviceIndex() const
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(const Aws::String &value)
ModifySubnetAttributeRequest & WithDisableLniAtDeviceIndex(const AttributeBooleanValue &value)
const AttributeBooleanValue & GetAssignIpv6AddressOnCreation() const
const AttributeBooleanValue & GetMapCustomerOwnedIpOnLaunch() const
ModifySubnetAttributeRequest & WithEnableResourceNameDnsARecordOnLaunch(AttributeBooleanValue &&value)
void SetDisableLniAtDeviceIndex(AttributeBooleanValue &&value)
void SetMapPublicIpOnLaunch(AttributeBooleanValue &&value)
ModifySubnetAttributeRequest & WithDisableLniAtDeviceIndex(AttributeBooleanValue &&value)
void SetMapCustomerOwnedIpOnLaunch(AttributeBooleanValue &&value)
const AttributeBooleanValue & GetEnableResourceNameDnsAAAARecordOnLaunch() const
void SetAssignIpv6AddressOnCreation(AttributeBooleanValue &&value)
const AttributeBooleanValue & GetEnableResourceNameDnsARecordOnLaunch() const
virtual const char * GetServiceRequestName() const override
ModifySubnetAttributeRequest & WithEnableLniAtDeviceIndex(int value)
ModifySubnetAttributeRequest & WithEnableResourceNameDnsAAAARecordOnLaunch(AttributeBooleanValue &&value)
void SetPrivateDnsHostnameTypeOnLaunch(const HostnameType &value)
ModifySubnetAttributeRequest & WithSubnetId(Aws::String &&value)
void SetEnableResourceNameDnsARecordOnLaunch(const AttributeBooleanValue &value)
ModifySubnetAttributeRequest & WithAssignIpv6AddressOnCreation(AttributeBooleanValue &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue &value)
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(const char *value)
ModifySubnetAttributeRequest & WithPrivateDnsHostnameTypeOnLaunch(const HostnameType &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifySubnetAttributeRequest & WithPrivateDnsHostnameTypeOnLaunch(HostnameType &&value)
ModifySubnetAttributeRequest & WithMapCustomerOwnedIpOnLaunch(AttributeBooleanValue &&value)
ModifySubnetAttributeRequest & WithEnableDns64(AttributeBooleanValue &&value)
ModifySubnetAttributeRequest & WithMapPublicIpOnLaunch(AttributeBooleanValue &&value)
ModifySubnetAttributeRequest & WithAssignIpv6AddressOnCreation(const AttributeBooleanValue &value)
ModifySubnetAttributeRequest & WithSubnetId(const char *value)
void SetAssignIpv6AddressOnCreation(const AttributeBooleanValue &value)
void SetDisableLniAtDeviceIndex(const AttributeBooleanValue &value)
ModifySubnetAttributeRequest & WithMapPublicIpOnLaunch(const AttributeBooleanValue &value)
ModifySubnetAttributeRequest & WithEnableResourceNameDnsAAAARecordOnLaunch(const AttributeBooleanValue &value)
void SetEnableResourceNameDnsAAAARecordOnLaunch(AttributeBooleanValue &&value)
ModifySubnetAttributeRequest & WithMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue &value)
ModifySubnetAttributeRequest & WithSubnetId(const Aws::String &value)
void SetEnableResourceNameDnsARecordOnLaunch(AttributeBooleanValue &&value)
void SetEnableResourceNameDnsAAAARecordOnLaunch(const AttributeBooleanValue &value)
const AttributeBooleanValue & GetMapPublicIpOnLaunch() const
ModifySubnetAttributeRequest & WithEnableDns64(const AttributeBooleanValue &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String