public InsightSummary withCategories(InsightCategory... categories) {
        java.util.ArrayList<String> categoriesCopy = new java.util.ArrayList<String>(categories.length);
        for (InsightCategory value : categories) {
            categoriesCopy.add(value.toString());
        }
        if (getCategories() == null) {
            setCategories(categoriesCopy);
        } else {
            getCategories().addAll(categoriesCopy);
        }
        return this;
    }
<p>
Categories The categories that label and describe the type of insight.
</p>

@param categories
       Categories The categories that label and describe the type of insight.
@return Returns a reference to this object so that method calls can be chained together.
@see InsightCategory
aws-java-sdk-xray/src/main/java/com/amazonaws/services/xray/model/InsightSummary.java