@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssignPrivateIpAddressesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AssignPrivateIpAddressesRequest>
Contains the parameters for AssignPrivateIpAddresses.
NOOP
Constructor and Description |
---|
AssignPrivateIpAddressesRequest() |
Modifier and Type | Method and Description |
---|---|
AssignPrivateIpAddressesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getAllowReassignment()
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.
|
Request<AssignPrivateIpAddressesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getIpv4PrefixCount()
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
|
List<String> |
getIpv4Prefixes()
One or more IPv4 prefixes assigned to the network interface.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
List<String> |
getPrivateIpAddresses()
The IP addresses to be assigned as a secondary private IP address to the network interface.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary IP addresses to assign to the network interface.
|
int |
hashCode() |
Boolean |
isAllowReassignment()
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.
|
void |
setAllowReassignment(Boolean 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.
|
void |
setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
|
void |
setIpv4Prefixes(Collection<String> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddresses(Collection<String> privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary IP addresses to assign to the network interface.
|
String |
toString()
Returns a string representation of this object.
|
AssignPrivateIpAddressesRequest |
withAllowReassignment(Boolean 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.
|
AssignPrivateIpAddressesRequest |
withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
|
AssignPrivateIpAddressesRequest |
withIpv4Prefixes(Collection<String> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.
|
AssignPrivateIpAddressesRequest |
withIpv4Prefixes(String... ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.
|
AssignPrivateIpAddressesRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
AssignPrivateIpAddressesRequest |
withPrivateIpAddresses(Collection<String> privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface.
|
AssignPrivateIpAddressesRequest |
withPrivateIpAddresses(String... privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface.
|
AssignPrivateIpAddressesRequest |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary IP addresses to assign to the network interface.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAllowReassignment(Boolean 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.
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.public Boolean getAllowReassignment()
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.
public AssignPrivateIpAddressesRequest withAllowReassignment(Boolean 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.
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.public Boolean isAllowReassignment()
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.
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public AssignPrivateIpAddressesRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public List<String> getPrivateIpAddresses()
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.
If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
public void setPrivateIpAddresses(Collection<String> privateIpAddresses)
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.
privateIpAddresses
- 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.
public AssignPrivateIpAddressesRequest withPrivateIpAddresses(String... privateIpAddresses)
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.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateIpAddresses(java.util.Collection)
or withPrivateIpAddresses(java.util.Collection)
if
you want to override the existing values.
privateIpAddresses
- 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.
public AssignPrivateIpAddressesRequest withPrivateIpAddresses(Collection<String> privateIpAddresses)
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.
privateIpAddresses
- 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.
public void setSecondaryPrivateIpAddressCount(Integer 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.
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.public Integer getSecondaryPrivateIpAddressCount()
The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.
public AssignPrivateIpAddressesRequest withSecondaryPrivateIpAddressCount(Integer 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.
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.public List<String> getIpv4Prefixes()
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
Ipv4PrefixCount
option.public void setIpv4Prefixes(Collection<String> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.public AssignPrivateIpAddressesRequest withIpv4Prefixes(String... ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
NOTE: This method appends the values to the existing list (if any). Use
setIpv4Prefixes(java.util.Collection)
or withIpv4Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.public AssignPrivateIpAddressesRequest withIpv4Prefixes(Collection<String> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.public void setIpv4PrefixCount(Integer ipv4PrefixCount)
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.
ipv4PrefixCount
- 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.public Integer getIpv4PrefixCount()
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.
Ipv4 Prefixes
option.public AssignPrivateIpAddressesRequest withIpv4PrefixCount(Integer ipv4PrefixCount)
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.
ipv4PrefixCount
- 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.public Request<AssignPrivateIpAddressesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AssignPrivateIpAddressesRequest>
public String toString()
toString
in class Object
Object.toString()
public AssignPrivateIpAddressesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()