public AddonVersionInfo withCompatibilities(Compatibility... compatibilities) {
        if (this.compatibilities == null) {
            setCompatibilities(new java.util.ArrayList<Compatibility>(compatibilities.length));
        }
        for (Compatibility ele : compatibilities) {
            this.compatibilities.add(ele);
        }
        return this;
    }
<p>
An object representing the compatibilities of a version.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCompatibilities(java.util.Collection)} or {@link #withCompatibilities(java.util.Collection)} if you
want to override the existing values.
</p>

@param compatibilities
       An object representing the compatibilities of a version.
@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/AddonVersionInfo.java