public AssignIpv6AddressesResult withAssignedIpv6Addresses(String... assignedIpv6Addresses) {
        if (this.assignedIpv6Addresses == null) {
            setAssignedIpv6Addresses(new com.amazonaws.internal.SdkInternalList<String>(assignedIpv6Addresses.length));
        }
        for (String ele : assignedIpv6Addresses) {
            this.assignedIpv6Addresses.add(ele);
        }
        return this;
    }
<p>
The new IPv6 addresses assigned to the network interface. Existing IPv6 addresses that were assigned to the
network interface before the request are not included.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAssignedIpv6Addresses(java.util.Collection)} or
{@link #withAssignedIpv6Addresses(java.util.Collection)} if you want to override the existing values.
</p>

@param assignedIpv6Addresses
       The new IPv6 addresses assigned to the network interface. Existing IPv6 addresses that were assigned to
       the network interface before the request are not included.
@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/AssignIpv6AddressesResult.java