Class AssignPrivateIpAddressesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.AssignPrivateIpAddressesRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AssignPrivateIpAddressesRequest>
,Serializable
,Cloneable
public class AssignPrivateIpAddressesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AssignPrivateIpAddressesRequest>
Contains the parameters for AssignPrivateIpAddresses.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AssignPrivateIpAddressesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssignPrivateIpAddressesRequest
clone()
Creates a shallow clone of this request.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(String... privateIpAddresses)
One or more IP addresses to be assigned as a secondary private IP address to 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
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary IP addresses to assign to the network interface.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
public AssignPrivateIpAddressesRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPrivateIpAddresses
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.
- Returns:
- 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.
-
setPrivateIpAddresses
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.
- Parameters:
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.
-
withPrivateIpAddresses
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)
orwithPrivateIpAddresses(java.util.Collection)
if you want to override the existing values.- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPrivateIpAddresses
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecondaryPrivateIpAddressCount
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.
- Parameters:
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.
-
getSecondaryPrivateIpAddressCount
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.
- Returns:
- The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.
-
withSecondaryPrivateIpAddressCount
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAllowReassignment
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.
- Parameters:
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.
-
getAllowReassignment
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.
- Returns:
- 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.
-
withAllowReassignment
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowReassignment
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.
- Returns:
- 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.
-
getDryRunRequest
public Request<AssignPrivateIpAddressesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<AssignPrivateIpAddressesRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AssignPrivateIpAddressesRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-