public RunInstancesRequest withIpv6Addresses(java.util.Collection<InstanceIpv6Address> ipv6Addresses) {
        setIpv6Addresses(ipv6Addresses);
        return this;
    }
<p>
The IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot
specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify
this option if you've specified a minimum number of instances to launch.
</p>
<p>
You cannot specify this option and the network interfaces option in the same request.
</p>

@param ipv6Addresses
       The IPv6 addresses from the range of the subnet to associate with the primary network interface. You
       cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You
       cannot specify this option if you've specified a minimum number of instances to launch.</p>
       <p>
       You cannot specify this option and the network interfaces option in the same request.
@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/RunInstancesRequest.java