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

@param categories
       The categories to use to filter insights.
@return Returns a reference to this object so that method calls can be chained together.
@see Category
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/InsightsFilter.java