public AddonVersionInfo withCompatibilities(java.util.Collection<Compatibility> compatibilities) {
        setCompatibilities(compatibilities);
        return this;
    }
<p>
An object representing the compatibilities of a version.
</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