AWS SDK for C++  1.9.67
AWS SDK for C++
ModifySubnetAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifySubnetAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
49  inline const AttributeBooleanValue& GetAssignIpv6AddressOnCreation() const{ return m_assignIpv6AddressOnCreation; }
50 
60  inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
61 
71  inline void SetAssignIpv6AddressOnCreation(const AttributeBooleanValue& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = value; }
72 
82  inline void SetAssignIpv6AddressOnCreation(AttributeBooleanValue&& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = std::move(value); }
83 
93  inline ModifySubnetAttributeRequest& WithAssignIpv6AddressOnCreation(const AttributeBooleanValue& value) { SetAssignIpv6AddressOnCreation(value); return *this;}
94 
104  inline ModifySubnetAttributeRequest& WithAssignIpv6AddressOnCreation(AttributeBooleanValue&& value) { SetAssignIpv6AddressOnCreation(std::move(value)); return *this;}
105 
106 
112  inline const AttributeBooleanValue& GetMapPublicIpOnLaunch() const{ return m_mapPublicIpOnLaunch; }
113 
119  inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
120 
126  inline void SetMapPublicIpOnLaunch(const AttributeBooleanValue& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; }
127 
133  inline void SetMapPublicIpOnLaunch(AttributeBooleanValue&& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = std::move(value); }
134 
140  inline ModifySubnetAttributeRequest& WithMapPublicIpOnLaunch(const AttributeBooleanValue& value) { SetMapPublicIpOnLaunch(value); return *this;}
141 
147  inline ModifySubnetAttributeRequest& WithMapPublicIpOnLaunch(AttributeBooleanValue&& value) { SetMapPublicIpOnLaunch(std::move(value)); return *this;}
148 
149 
153  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
154 
158  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
159 
163  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
164 
168  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
169 
173  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
174 
178  inline ModifySubnetAttributeRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
179 
183  inline ModifySubnetAttributeRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
184 
188  inline ModifySubnetAttributeRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
189 
190 
197  inline const AttributeBooleanValue& GetMapCustomerOwnedIpOnLaunch() const{ return m_mapCustomerOwnedIpOnLaunch; }
198 
205  inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; }
206 
213  inline void SetMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = value; }
214 
221  inline void SetMapCustomerOwnedIpOnLaunch(AttributeBooleanValue&& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = std::move(value); }
222 
229  inline ModifySubnetAttributeRequest& WithMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue& value) { SetMapCustomerOwnedIpOnLaunch(value); return *this;}
230 
237  inline ModifySubnetAttributeRequest& WithMapCustomerOwnedIpOnLaunch(AttributeBooleanValue&& value) { SetMapCustomerOwnedIpOnLaunch(std::move(value)); return *this;}
238 
239 
245  inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
246 
252  inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
253 
259  inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
260 
266  inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
267 
273  inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
274 
280  inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;}
281 
287  inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
288 
294  inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
295 
296  private:
297 
298  AttributeBooleanValue m_assignIpv6AddressOnCreation;
299  bool m_assignIpv6AddressOnCreationHasBeenSet;
300 
301  AttributeBooleanValue m_mapPublicIpOnLaunch;
302  bool m_mapPublicIpOnLaunchHasBeenSet;
303 
304  Aws::String m_subnetId;
305  bool m_subnetIdHasBeenSet;
306 
307  AttributeBooleanValue m_mapCustomerOwnedIpOnLaunch;
308  bool m_mapCustomerOwnedIpOnLaunchHasBeenSet;
309 
310  Aws::String m_customerOwnedIpv4Pool;
311  bool m_customerOwnedIpv4PoolHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace EC2
316 } // namespace Aws
Aws::EC2::Model::ModifySubnetAttributeRequest::WithAssignIpv6AddressOnCreation
ModifySubnetAttributeRequest & WithAssignIpv6AddressOnCreation(const AttributeBooleanValue &value)
Definition: ModifySubnetAttributeRequest.h:93
Aws::EC2::Model::ModifySubnetAttributeRequest::GetCustomerOwnedIpv4Pool
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition: ModifySubnetAttributeRequest.h:245
Aws::EC2::Model::ModifySubnetAttributeRequest::WithSubnetId
ModifySubnetAttributeRequest & WithSubnetId(const char *value)
Definition: ModifySubnetAttributeRequest.h:188
AttributeBooleanValue.h
Aws::EC2::Model::ModifySubnetAttributeRequest::GetMapCustomerOwnedIpOnLaunch
const AttributeBooleanValue & GetMapCustomerOwnedIpOnLaunch() const
Definition: ModifySubnetAttributeRequest.h:197
Aws::EC2::Model::ModifySubnetAttributeRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(Aws::String &&value)
Definition: ModifySubnetAttributeRequest.h:266
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifySubnetAttributeRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: ModifySubnetAttributeRequest.h:163
Aws::EC2::Model::ModifySubnetAttributeRequest::SetAssignIpv6AddressOnCreation
void SetAssignIpv6AddressOnCreation(AttributeBooleanValue &&value)
Definition: ModifySubnetAttributeRequest.h:82
Aws::EC2::Model::ModifySubnetAttributeRequest::WithCustomerOwnedIpv4Pool
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(const char *value)
Definition: ModifySubnetAttributeRequest.h:294
Aws::EC2::Model::ModifySubnetAttributeRequest::WithMapCustomerOwnedIpOnLaunch
ModifySubnetAttributeRequest & WithMapCustomerOwnedIpOnLaunch(AttributeBooleanValue &&value)
Definition: ModifySubnetAttributeRequest.h:237
Aws::EC2::Model::ModifySubnetAttributeRequest::WithMapPublicIpOnLaunch
ModifySubnetAttributeRequest & WithMapPublicIpOnLaunch(AttributeBooleanValue &&value)
Definition: ModifySubnetAttributeRequest.h:147
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifySubnetAttributeRequest::WithCustomerOwnedIpv4Pool
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
Definition: ModifySubnetAttributeRequest.h:287
Aws::EC2::Model::ModifySubnetAttributeRequest::SetMapPublicIpOnLaunch
void SetMapPublicIpOnLaunch(const AttributeBooleanValue &value)
Definition: ModifySubnetAttributeRequest.h:126
Aws::EC2::Model::ModifySubnetAttributeRequest::GetAssignIpv6AddressOnCreation
const AttributeBooleanValue & GetAssignIpv6AddressOnCreation() const
Definition: ModifySubnetAttributeRequest.h:49
Aws::EC2::Model::ModifySubnetAttributeRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: ModifySubnetAttributeRequest.h:158
Aws::EC2::Model::ModifySubnetAttributeRequest::WithAssignIpv6AddressOnCreation
ModifySubnetAttributeRequest & WithAssignIpv6AddressOnCreation(AttributeBooleanValue &&value)
Definition: ModifySubnetAttributeRequest.h:104
Aws::EC2::Model::ModifySubnetAttributeRequest::WithMapPublicIpOnLaunch
ModifySubnetAttributeRequest & WithMapPublicIpOnLaunch(const AttributeBooleanValue &value)
Definition: ModifySubnetAttributeRequest.h:140
Aws::EC2::Model::ModifySubnetAttributeRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(const char *value)
Definition: ModifySubnetAttributeRequest.h:273
Aws::EC2::Model::ModifySubnetAttributeRequest::CustomerOwnedIpv4PoolHasBeenSet
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition: ModifySubnetAttributeRequest.h:252
Aws::EC2::Model::ModifySubnetAttributeRequest::SetMapCustomerOwnedIpOnLaunch
void SetMapCustomerOwnedIpOnLaunch(AttributeBooleanValue &&value)
Definition: ModifySubnetAttributeRequest.h:221
Aws::EC2::Model::ModifySubnetAttributeRequest::WithSubnetId
ModifySubnetAttributeRequest & WithSubnetId(Aws::String &&value)
Definition: ModifySubnetAttributeRequest.h:183
Aws::EC2::Model::ModifySubnetAttributeRequest::SetMapPublicIpOnLaunch
void SetMapPublicIpOnLaunch(AttributeBooleanValue &&value)
Definition: ModifySubnetAttributeRequest.h:133
Aws::EC2::Model::ModifySubnetAttributeRequest::SetAssignIpv6AddressOnCreation
void SetAssignIpv6AddressOnCreation(const AttributeBooleanValue &value)
Definition: ModifySubnetAttributeRequest.h:71
Aws::EC2::Model::ModifySubnetAttributeRequest::WithCustomerOwnedIpv4Pool
ModifySubnetAttributeRequest & WithCustomerOwnedIpv4Pool(const Aws::String &value)
Definition: ModifySubnetAttributeRequest.h:280
Aws::EC2::Model::ModifySubnetAttributeRequest::SetMapCustomerOwnedIpOnLaunch
void SetMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue &value)
Definition: ModifySubnetAttributeRequest.h:213
Aws::EC2::Model::ModifySubnetAttributeRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: ModifySubnetAttributeRequest.h:168
Aws::EC2::Model::ModifySubnetAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifySubnetAttributeRequest::GetMapPublicIpOnLaunch
const AttributeBooleanValue & GetMapPublicIpOnLaunch() const
Definition: ModifySubnetAttributeRequest.h:112
Aws::EC2::Model::ModifySubnetAttributeRequest::MapCustomerOwnedIpOnLaunchHasBeenSet
bool MapCustomerOwnedIpOnLaunchHasBeenSet() const
Definition: ModifySubnetAttributeRequest.h:205
EC2Request.h
Aws::EC2::Model::ModifySubnetAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifySubnetAttributeRequest.h:31
Aws::EC2::Model::ModifySubnetAttributeRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: ModifySubnetAttributeRequest.h:173
AWSString.h
Aws::EC2::Model::ModifySubnetAttributeRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: ModifySubnetAttributeRequest.h:153
Aws::EC2::Model::ModifySubnetAttributeRequest::AssignIpv6AddressOnCreationHasBeenSet
bool AssignIpv6AddressOnCreationHasBeenSet() const
Definition: ModifySubnetAttributeRequest.h:60
Aws::EC2::Model::ModifySubnetAttributeRequest::MapPublicIpOnLaunchHasBeenSet
bool MapPublicIpOnLaunchHasBeenSet() const
Definition: ModifySubnetAttributeRequest.h:119
Aws::EC2::Model::AttributeBooleanValue
Definition: AttributeBooleanValue.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifySubnetAttributeRequest::WithMapCustomerOwnedIpOnLaunch
ModifySubnetAttributeRequest & WithMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue &value)
Definition: ModifySubnetAttributeRequest.h:229
Aws::EC2::Model::ModifySubnetAttributeRequest::WithSubnetId
ModifySubnetAttributeRequest & WithSubnetId(const Aws::String &value)
Definition: ModifySubnetAttributeRequest.h:178
Aws::EC2::Model::ModifySubnetAttributeRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(const Aws::String &value)
Definition: ModifySubnetAttributeRequest.h:259
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifySubnetAttributeRequest
Definition: ModifySubnetAttributeRequest.h:23
Aws::EC2::Model::ModifySubnetAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::ModifySubnetAttributeRequest::ModifySubnetAttributeRequest
ModifySubnetAttributeRequest()