public NetworkInterface withIpv6Addresses(NetworkInterfaceIpv6Address... ipv6Addresses) {
        if (this.ipv6Addresses == null) {
            setIpv6Addresses(new com.amazonaws.internal.SdkInternalList<NetworkInterfaceIpv6Address>(ipv6Addresses.length));
        }
        for (NetworkInterfaceIpv6Address ele : ipv6Addresses) {
            this.ipv6Addresses.add(ele);
        }
        return this;
    }
public NetworkInterface withIpv6Addresses ( NetworkInterfaceIpv6Address ... ipv6Addresses ) { if ( this . ipv6Addresses == null ) { setIpv6Addresses ( new com . amazonaws . internal . SdkInternalList < NetworkInterfaceIpv6Address > ( ipv6Addresses . length ) ) ; } for ( NetworkInterfaceIpv6Address ele : ipv6Addresses ) { this . ipv6Addresses . add ( ele ) ; } return this ; }
<p>
The IPv6 addresses associated with the network interface.
</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 associated with the network interface.
@return Returns a reference to this object so that method calls can be chained together.