public CreateNetworkInterfaceRequest withIpv6Addresses(java.util.Collection<InstanceIpv6Address> ipv6Addresses) {
        setIpv6Addresses(ipv6Addresses);
        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>

@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