public LaunchTemplateInstanceNetworkInterfaceSpecification withIpv6Prefixes(Ipv6PrefixSpecificationResponse... ipv6Prefixes) {
        if (this.ipv6Prefixes == null) {
            setIpv6Prefixes(new com.amazonaws.internal.SdkInternalList<Ipv6PrefixSpecificationResponse>(ipv6Prefixes.length));
        }
        for (Ipv6PrefixSpecificationResponse ele : ipv6Prefixes) {
            this.ipv6Prefixes.add(ele);
        }
        return this;
    }
<p>
One or more IPv6 prefixes assigned to the network interface.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIpv6Prefixes(java.util.Collection)} or {@link #withIpv6Prefixes(java.util.Collection)} if you want to
override the existing values.
</p>

@param ipv6Prefixes
       One or more IPv6 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