Class AssignPrivateIpAddressesRequest

    • Constructor Detail

      • AssignPrivateIpAddressesRequest

        public AssignPrivateIpAddressesRequest()
    • 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) 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object