public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses) {
        if (this.privateIpAddresses == null) {
            setPrivateIpAddresses(new com.amazonaws.internal.SdkInternalList<PrivateIpAddressSpecification>(privateIpAddresses.length));
        }
        for (PrivateIpAddressSpecification ele : privateIpAddresses) {
            this.privateIpAddresses.add(ele);
        }
        return this;
    }
<p>
The private IPv4 addresses.
</p>
<p>
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4
addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
</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
       The private IPv4 addresses.</p>
       <p>
       You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4
       addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
@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/CreateNetworkInterfaceRequest.java