public LaunchTemplateInstanceNetworkInterfaceSpecification withIpv4Prefixes(Ipv4PrefixSpecificationResponse... ipv4Prefixes) {
        if (this.ipv4Prefixes == null) {
            setIpv4Prefixes(new com.amazonaws.internal.SdkInternalList<Ipv4PrefixSpecificationResponse>(ipv4Prefixes.length));
        }
        for (Ipv4PrefixSpecificationResponse ele : ipv4Prefixes) {
            this.ipv4Prefixes.add(ele);
        }
        return this;
    }
<p>
One or more IPv4 prefixes assigned to the network interface.
</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
       One or more IPv4 prefixes 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/LaunchTemplateInstanceNetworkInterfaceSpecification.java