public Service withCategories(Category... categories) {
        if (this.categories == null) {
            setCategories(new com.amazonaws.internal.SdkInternalList<Category>(categories.length));
        }
        for (Category ele : categories) {
            this.categories.add(ele);
        }
        return this;
    }
<p>
A list of categories that describe the type of support issue a case describes. Categories consist of a category
name and a category code. Category names and codes are passed to Amazon Web Services Support when you call
<a>CreateCase</a>.
</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
       A list of categories that describe the type of support issue a case describes. Categories consist of a
       category name and a category code. Category names and codes are passed to Amazon Web Services Support when
       you call <a>CreateCase</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-support/src/main/java/com/amazonaws/services/support/model/Service.java