/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class AWS_EC2_API ModifySubnetAttributeRequest : public EC2Request { public: ModifySubnetAttributeRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifySubnetAttribute"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Specify true to indicate that network interfaces created in the * specified subnet should be assigned an IPv6 address. This includes a network * interface that's created when launching an instance into the subnet (the * instance therefore receives an IPv6 address).

If you enable the IPv6 * addressing feature for your subnet, your network interface or instance only * receives an IPv6 address if it's created using version 2016-11-15 * or later of the Amazon EC2 API.

*/ inline const AttributeBooleanValue& GetAssignIpv6AddressOnCreation() const{ return m_assignIpv6AddressOnCreation; } /** *

Specify true to indicate that network interfaces created in the * specified subnet should be assigned an IPv6 address. This includes a network * interface that's created when launching an instance into the subnet (the * instance therefore receives an IPv6 address).

If you enable the IPv6 * addressing feature for your subnet, your network interface or instance only * receives an IPv6 address if it's created using version 2016-11-15 * or later of the Amazon EC2 API.

*/ inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; } /** *

Specify true to indicate that network interfaces created in the * specified subnet should be assigned an IPv6 address. This includes a network * interface that's created when launching an instance into the subnet (the * instance therefore receives an IPv6 address).

If you enable the IPv6 * addressing feature for your subnet, your network interface or instance only * receives an IPv6 address if it's created using version 2016-11-15 * or later of the Amazon EC2 API.

*/ inline void SetAssignIpv6AddressOnCreation(const AttributeBooleanValue& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = value; } /** *

Specify true to indicate that network interfaces created in the * specified subnet should be assigned an IPv6 address. This includes a network * interface that's created when launching an instance into the subnet (the * instance therefore receives an IPv6 address).

If you enable the IPv6 * addressing feature for your subnet, your network interface or instance only * receives an IPv6 address if it's created using version 2016-11-15 * or later of the Amazon EC2 API.

*/ inline void SetAssignIpv6AddressOnCreation(AttributeBooleanValue&& value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = std::move(value); } /** *

Specify true to indicate that network interfaces created in the * specified subnet should be assigned an IPv6 address. This includes a network * interface that's created when launching an instance into the subnet (the * instance therefore receives an IPv6 address).

If you enable the IPv6 * addressing feature for your subnet, your network interface or instance only * receives an IPv6 address if it's created using version 2016-11-15 * or later of the Amazon EC2 API.

*/ inline ModifySubnetAttributeRequest& WithAssignIpv6AddressOnCreation(const AttributeBooleanValue& value) { SetAssignIpv6AddressOnCreation(value); return *this;} /** *

Specify true to indicate that network interfaces created in the * specified subnet should be assigned an IPv6 address. This includes a network * interface that's created when launching an instance into the subnet (the * instance therefore receives an IPv6 address).

If you enable the IPv6 * addressing feature for your subnet, your network interface or instance only * receives an IPv6 address if it's created using version 2016-11-15 * or later of the Amazon EC2 API.

*/ inline ModifySubnetAttributeRequest& WithAssignIpv6AddressOnCreation(AttributeBooleanValue&& value) { SetAssignIpv6AddressOnCreation(std::move(value)); return *this;} /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a public IPv4 * address.

*/ inline const AttributeBooleanValue& GetMapPublicIpOnLaunch() const{ return m_mapPublicIpOnLaunch; } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a public IPv4 * address.

*/ inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a public IPv4 * address.

*/ inline void SetMapPublicIpOnLaunch(const AttributeBooleanValue& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a public IPv4 * address.

*/ inline void SetMapPublicIpOnLaunch(AttributeBooleanValue&& value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = std::move(value); } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a public IPv4 * address.

*/ inline ModifySubnetAttributeRequest& WithMapPublicIpOnLaunch(const AttributeBooleanValue& value) { SetMapPublicIpOnLaunch(value); return *this;} /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a public IPv4 * address.

*/ inline ModifySubnetAttributeRequest& WithMapPublicIpOnLaunch(AttributeBooleanValue&& value) { SetMapPublicIpOnLaunch(std::move(value)); return *this;} /** *

The ID of the subnet.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet.

*/ inline ModifySubnetAttributeRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet.

*/ inline ModifySubnetAttributeRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet.

*/ inline ModifySubnetAttributeRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a customer-owned * IPv4 address.

When this value is true, you must specify the * customer-owned IP pool using CustomerOwnedIpv4Pool.

*/ inline const AttributeBooleanValue& GetMapCustomerOwnedIpOnLaunch() const{ return m_mapCustomerOwnedIpOnLaunch; } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a customer-owned * IPv4 address.

When this value is true, you must specify the * customer-owned IP pool using CustomerOwnedIpv4Pool.

*/ inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a customer-owned * IPv4 address.

When this value is true, you must specify the * customer-owned IP pool using CustomerOwnedIpv4Pool.

*/ inline void SetMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = value; } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a customer-owned * IPv4 address.

When this value is true, you must specify the * customer-owned IP pool using CustomerOwnedIpv4Pool.

*/ inline void SetMapCustomerOwnedIpOnLaunch(AttributeBooleanValue&& value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = std::move(value); } /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a customer-owned * IPv4 address.

When this value is true, you must specify the * customer-owned IP pool using CustomerOwnedIpv4Pool.

*/ inline ModifySubnetAttributeRequest& WithMapCustomerOwnedIpOnLaunch(const AttributeBooleanValue& value) { SetMapCustomerOwnedIpOnLaunch(value); return *this;} /** *

Specify true to indicate that network interfaces attached to * instances created in the specified subnet should be assigned a customer-owned * IPv4 address.

When this value is true, you must specify the * customer-owned IP pool using CustomerOwnedIpv4Pool.

*/ inline ModifySubnetAttributeRequest& WithMapCustomerOwnedIpOnLaunch(AttributeBooleanValue&& value) { SetMapCustomerOwnedIpOnLaunch(std::move(value)); return *this;} /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; } /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; } /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; } /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); } /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); } /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;} /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;} /** *

The customer-owned IPv4 address pool associated with the subnet.

You * must set this value when you specify true for * MapCustomerOwnedIpOnLaunch.

*/ inline ModifySubnetAttributeRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;} private: AttributeBooleanValue m_assignIpv6AddressOnCreation; bool m_assignIpv6AddressOnCreationHasBeenSet; AttributeBooleanValue m_mapPublicIpOnLaunch; bool m_mapPublicIpOnLaunchHasBeenSet; Aws::String m_subnetId; bool m_subnetIdHasBeenSet; AttributeBooleanValue m_mapCustomerOwnedIpOnLaunch; bool m_mapCustomerOwnedIpOnLaunchHasBeenSet; Aws::String m_customerOwnedIpv4Pool; bool m_customerOwnedIpv4PoolHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws