Class AssignPrivateIpAddressesRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AssignPrivateIpAddressesRequest>
,Serializable
,Cloneable
Contains the parameters for AssignPrivateIpAddresses.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
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.This method is intended for internal use only.The ID of the network interface.One or more IP addresses to be assigned as a secondary private IP address to the network interface.The number of secondary IP addresses to assign to the network interface.int
hashCode()
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.toString()
Returns a string representation of this object; useful for testing and debugging.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.withNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.withPrivateIpAddresses
(String... privateIpAddresses) One or more IP addresses to be assigned as a secondary private IP address to the network interface.withPrivateIpAddresses
(Collection<String> privateIpAddresses) One or more IP addresses to be assigned as a secondary private IP address to the network interface.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
-
Constructor Details
-
AssignPrivateIpAddressesRequest
public AssignPrivateIpAddressesRequest()
-
-
Method Details
-
setNetworkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
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
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
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
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
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-