public DescribeAddonVersionsResult withAddons(AddonInfo... addons) {
        if (this.addons == null) {
            setAddons(new java.util.ArrayList<AddonInfo>(addons.length));
        }
        for (AddonInfo ele : addons) {
            this.addons.add(ele);
        }
        return this;
    }
<p>
The list of available versions with Kubernetes version compatibility and other properties.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAddons(java.util.Collection)} or {@link #withAddons(java.util.Collection)} if you want to override the
existing values.
</p>

@param addons
       The list of available versions with Kubernetes version compatibility and other properties.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/DescribeAddonVersionsResult.java