public NetworkInterface withPrivateIpAddresses(PrivateIp... privateIpAddresses) {
        if (this.privateIpAddresses == null) {
            setPrivateIpAddresses(new java.util.ArrayList<PrivateIp>(privateIpAddresses.length));
        }
        for (PrivateIp ele : privateIpAddresses) {
            this.privateIpAddresses.add(ele);
        }
        return this;
    }
<p>
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and
privateIpAddress.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPrivateIpAddresses(java.util.Collection)} or {@link #withPrivateIpAddresses(java.util.Collection)} if
you want to override the existing values.
</p>

@param privateIpAddresses
       A list of the private IP addresses associated with the network interface. Includes the privateDnsName and
       privateIpAddress.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/NetworkInterface.java