/** * 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 UnassignIpv6AddressesRequest : public EC2Request { public: AWS_EC2_API UnassignIpv6AddressesRequest(); // 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 "UnassignIpv6Addresses"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The IPv6 addresses to unassign from the network interface.

*/ inline const Aws::Vector& GetIpv6Addresses() const{ return m_ipv6Addresses; } /** *

The IPv6 addresses to unassign from the network interface.

*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *

The IPv6 addresses to unassign from the network interface.

*/ inline void SetIpv6Addresses(const Aws::Vector& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; } /** *

The IPv6 addresses to unassign from the network interface.

*/ inline void SetIpv6Addresses(Aws::Vector&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); } /** *

The IPv6 addresses to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& WithIpv6Addresses(const Aws::Vector& value) { SetIpv6Addresses(value); return *this;} /** *

The IPv6 addresses to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& WithIpv6Addresses(Aws::Vector&& value) { SetIpv6Addresses(std::move(value)); return *this;} /** *

The IPv6 addresses to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *

The IPv6 addresses to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; } /** *

The IPv6 addresses to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline const Aws::Vector& GetIpv6Prefixes() const{ return m_ipv6Prefixes; } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline bool Ipv6PrefixesHasBeenSet() const { return m_ipv6PrefixesHasBeenSet; } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline void SetIpv6Prefixes(const Aws::Vector& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = value; } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline void SetIpv6Prefixes(Aws::Vector&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = std::move(value); } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& WithIpv6Prefixes(const Aws::Vector& value) { SetIpv6Prefixes(value); return *this;} /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& WithIpv6Prefixes(Aws::Vector&& value) { SetIpv6Prefixes(std::move(value)); return *this;} /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& AddIpv6Prefixes(const Aws::String& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& AddIpv6Prefixes(Aws::String&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(std::move(value)); return *this; } /** *

The IPv6 prefixes to unassign from the network interface.

*/ inline UnassignIpv6AddressesRequest& AddIpv6Prefixes(const char* value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; } /** *

The ID of the network interface.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The ID of the network interface.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The ID of the network interface.

*/ inline UnassignIpv6AddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the network interface.

*/ inline UnassignIpv6AddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The ID of the network interface.

*/ inline UnassignIpv6AddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} private: Aws::Vector m_ipv6Addresses; bool m_ipv6AddressesHasBeenSet = false; Aws::Vector m_ipv6Prefixes; bool m_ipv6PrefixesHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws