public AssignPrivateIpAddressesResult withAssignedPrivateIpAddresses(AssignedPrivateIpAddress... assignedPrivateIpAddresses) {
        if (this.assignedPrivateIpAddresses == null) {
            setAssignedPrivateIpAddresses(new com.amazonaws.internal.SdkInternalList<AssignedPrivateIpAddress>(assignedPrivateIpAddresses.length));
        }
        for (AssignedPrivateIpAddress ele : assignedPrivateIpAddresses) {
            this.assignedPrivateIpAddresses.add(ele);
        }
        return this;
    }
<p>
The private IP addresses assigned to the network interface.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAssignedPrivateIpAddresses(java.util.Collection)} or
{@link #withAssignedPrivateIpAddresses(java.util.Collection)} if you want to override the existing values.
</p>

@param assignedPrivateIpAddresses
       The private IP addresses assigned to the network interface.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/AssignPrivateIpAddressesResult.java