public CreateNetworkInterfaceRequest withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes) {
        if (this.ipv4Prefixes == null) {
            setIpv4Prefixes(new com.amazonaws.internal.SdkInternalList<Ipv4PrefixSpecificationRequest>(ipv4Prefixes.length));
        }
        for (Ipv4PrefixSpecificationRequest ele : ipv4Prefixes) {
            this.ipv4Prefixes.add(ele);
        }
        return this;
    }
<p>
The IPv4 prefixes assigned to the network interface.
</p>
<p>
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific
private IPv4 addresses, or a count of private IPv4 addresses.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIpv4Prefixes(java.util.Collection)} or {@link #withIpv4Prefixes(java.util.Collection)} if you want to
override the existing values.
</p>

@param ipv4Prefixes
       The IPv4 prefixes assigned to the network interface.</p>
       <p>
       You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes,
       specific private IPv4 addresses, or a count of private IPv4 addresses.
@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