@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.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
List<String> |
getPrivateIpAddresses()
One or more 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 |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddresses(Collection<String> privateIpAddresses)
One or more 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; useful for testing and debugging.
|
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 |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
AssignPrivateIpAddressesRequest |
withPrivateIpAddresses(Collection<String> privateIpAddresses)
One or more IP addresses to be assigned as a secondary private IP address to the network interface.
|
AssignPrivateIpAddressesRequest |
withPrivateIpAddresses(String... privateIpAddresses)
One or more 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()
One or more 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)
One or more 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
- One or more 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)
One or more 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
- One or more 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)
One or more 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
- One or more 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 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.