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:
  • Constructor Details

    • AssignPrivateIpAddressesRequest

      public AssignPrivateIpAddressesRequest()
  • Method Details

    • 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) or withPrivateIpAddresses(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 interface DryRunSupportedRequest<AssignPrivateIpAddressesRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: