public Subnet withAssignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) {
        setAssignIpv6AddressOnCreation(assignIpv6AddressOnCreation);
        return this;
    }
<p>
Indicates whether a network interface created in this subnet (including a network interface created by
<a>RunInstances</a>) receives an IPv6 address.
</p>

@param assignIpv6AddressOnCreation
       Indicates whether a network interface created in this subnet (including a network interface created by
       <a>RunInstances</a>) receives an IPv6 address.
@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/Subnet.java