/** * 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 { /** *

Contains the parameters for UnassignPrivateIpAddresses.

See * Also:

AWS * API Reference

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

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 UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the network interface.

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

The ID of the network interface.

*/ inline UnassignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline const Aws::Vector& GetPrivateIpAddresses() const{ return m_privateIpAddresses; } /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline void SetPrivateIpAddresses(const Aws::Vector& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; } /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline void SetPrivateIpAddresses(Aws::Vector&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); } /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::Vector& value) { SetPrivateIpAddresses(value); return *this;} /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline UnassignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::Vector&& value) { SetPrivateIpAddresses(std::move(value)); return *this;} /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *

The secondary private IP addresses to unassign from the network interface. * You can specify this option multiple times to unassign more than one IP * address.

*/ inline UnassignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline const Aws::Vector& GetIpv4Prefixes() const{ return m_ipv4Prefixes; } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline void SetIpv4Prefixes(const Aws::Vector& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = value; } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline void SetIpv4Prefixes(Aws::Vector&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::move(value); } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline UnassignPrivateIpAddressesRequest& WithIpv4Prefixes(const Aws::Vector& value) { SetIpv4Prefixes(value); return *this;} /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline UnassignPrivateIpAddressesRequest& WithIpv4Prefixes(Aws::Vector&& value) { SetIpv4Prefixes(std::move(value)); return *this;} /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline UnassignPrivateIpAddressesRequest& AddIpv4Prefixes(const Aws::String& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline UnassignPrivateIpAddressesRequest& AddIpv4Prefixes(Aws::String&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(std::move(value)); return *this; } /** *

The IPv4 prefixes to unassign from the network interface.

*/ inline UnassignPrivateIpAddressesRequest& AddIpv4Prefixes(const char* value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; } private: Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::Vector m_privateIpAddresses; bool m_privateIpAddressesHasBeenSet = false; Aws::Vector m_ipv4Prefixes; bool m_ipv4PrefixesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws