public AddonInfo withAddonVersions(AddonVersionInfo... addonVersions) {
        if (this.addonVersions == null) {
            setAddonVersions(new java.util.ArrayList<AddonVersionInfo>(addonVersions.length));
        }
        for (AddonVersionInfo ele : addonVersions) {
            this.addonVersions.add(ele);
        }
        return this;
    }
<p>
An object representing information about available add-on versions and compatible Kubernetes versions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAddonVersions(java.util.Collection)} or {@link #withAddonVersions(java.util.Collection)} if you want
to override the existing values.
</p>

@param addonVersions
       An object representing information about available add-on versions and compatible Kubernetes versions.
@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/AddonInfo.java