public GetLibraryItemResult withCategories(java.util.Collection<Category> categories) {
        setCategories(categories);
        return this;
    }
<p>
The categories associated with the library item for discovery.
</p>

@param categories
       The categories associated with the library item for discovery.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qapps/src/main/java/com/amazonaws/services/qapps/model/GetLibraryItemResult.java