/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the parameters for AssignPrivateIpAddresses.See
* Also:
AWS
* API Reference
Indicates whether to allow an IP address that is already assigned to another * network interface or instance to be reassigned to the specified network * interface.
*/ inline bool GetAllowReassignment() const{ return m_allowReassignment; } /** *Indicates whether to allow an IP address that is already assigned to another * network interface or instance to be reassigned to the specified network * interface.
*/ inline bool AllowReassignmentHasBeenSet() const { return m_allowReassignmentHasBeenSet; } /** *Indicates whether to allow an IP address that is already assigned to another * network interface or instance to be reassigned to the specified network * interface.
*/ inline void SetAllowReassignment(bool value) { m_allowReassignmentHasBeenSet = true; m_allowReassignment = value; } /** *Indicates whether to allow an IP address that is already assigned to another * network interface or instance to be reassigned to the specified network * interface.
*/ inline AssignPrivateIpAddressesRequest& WithAllowReassignment(bool value) { SetAllowReassignment(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 AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of the network interface.
*/ inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *The ID of the network interface.
*/ inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *The IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline const Aws::VectorThe IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *The IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline void SetPrivateIpAddresses(const Aws::VectorThe IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline void SetPrivateIpAddresses(Aws::VectorThe IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(const Aws::VectorThe IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(Aws::VectorThe IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *The IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *The IP addresses to be assigned as a secondary private IP address to the * network interface. You can't specify this parameter when also specifying a * number of secondary IP addresses.
If you don't specify an IP address, * Amazon EC2 automatically selects an IP address within the subnet range.
*/ inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *The number of secondary IP addresses to assign to the network interface. You * can't specify this parameter when also specifying private IP addresses.
*/ inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; } /** *The number of secondary IP addresses to assign to the network interface. You * can't specify this parameter when also specifying private IP addresses.
*/ inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; } /** *The number of secondary IP addresses to assign to the network interface. You * can't specify this parameter when also specifying private IP addresses.
*/ inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; } /** *The number of secondary IP addresses to assign to the network interface. You * can't specify this parameter when also specifying private IP addresses.
*/ inline AssignPrivateIpAddressesRequest& WithSecondaryPrivateIpAddressCount(int value) { SetSecondaryPrivateIpAddressCount(value); return *this;} /** *One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use
* this option if you use the Ipv4PrefixCount
option.
The number of IPv4 prefixes that Amazon Web Services automatically assigns to
* the network interface. You cannot use this option if you use the Ipv4
* Prefixes
option.
The number of IPv4 prefixes that Amazon Web Services automatically assigns to
* the network interface. You cannot use this option if you use the Ipv4
* Prefixes
option.
The number of IPv4 prefixes that Amazon Web Services automatically assigns to
* the network interface. You cannot use this option if you use the Ipv4
* Prefixes
option.
The number of IPv4 prefixes that Amazon Web Services automatically assigns to
* the network interface. You cannot use this option if you use the Ipv4
* Prefixes
option.