public void setCategories(java.util.Collection<Category> categories) {
        if (categories == null) {
            this.categories = null;
            return;
        }

        this.categories = new java.util.ArrayList<Category>(categories);
    }
<p>
The categories associated with the library item for discovery.
</p>

@param categories
       The categories associated with the library item for discovery.
aws-java-sdk-qapps/src/main/java/com/amazonaws/services/qapps/model/GetLibraryItemResult.java