public InsightsFilter withKubernetesVersions(String... kubernetesVersions) {
        if (this.kubernetesVersions == null) {
            setKubernetesVersions(new java.util.ArrayList<String>(kubernetesVersions.length));
        }
        for (String ele : kubernetesVersions) {
            this.kubernetesVersions.add(ele);
        }
        return this;
    }
<p>
The Kubernetes versions to use to filter the insights.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setKubernetesVersions(java.util.Collection)} or {@link #withKubernetesVersions(java.util.Collection)} if
you want to override the existing values.
</p>

@param kubernetesVersions
       The Kubernetes versions to use to filter the insights.
@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/InsightsFilter.java