public CreateNetworkInterfaceRequest withIpv6Addresses(InstanceIpv6Address... ipv6Addresses) {
        if (this.ipv6Addresses == null) {
            setIpv6Addresses(new com.amazonaws.internal.SdkInternalList<InstanceIpv6Address>(ipv6Addresses.length));
        }
        for (InstanceIpv6Address ele : ipv6Addresses) {
            this.ipv6Addresses.add(ele);
        }
        return this;
    }
<p>
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
</p>
<p>
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6
addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIpv6Addresses(java.util.Collection)} or {@link #withIpv6Addresses(java.util.Collection)} if you want
to override the existing values.
</p>

@param ipv6Addresses
       The IPv6 addresses from the IPv6 CIDR block range of your subnet.</p>
       <p>
       You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of
       IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 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