public InsightsFilter withCategories(Category... categories) {
        java.util.ArrayList<String> categoriesCopy = new java.util.ArrayList<String>(categories.length);
        for (Category value : categories) {
            categoriesCopy.add(value.toString());
        }
        if (getCategories() == null) {
            setCategories(categoriesCopy);
        } else {
            getCategories().addAll(categoriesCopy);
        }
        return this;
    }
<p>
The categories to use to filter insights.
</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