public SearchResourcesRequest withQueryScopes(SearchQueryScopeType... queryScopes) {
        java.util.ArrayList<String> queryScopesCopy = new java.util.ArrayList<String>(queryScopes.length);
        for (SearchQueryScopeType value : queryScopes) {
            queryScopesCopy.add(value.toString());
        }
        if (getQueryScopes() == null) {
            setQueryScopes(queryScopesCopy);
        } else {
            getQueryScopes().addAll(queryScopesCopy);
        }
        return this;
    }
<p>
Filter based on the text field type. A Folder has only a name and no content. A Comment has only content and no
name. A Document or Document Version has a name and content
</p>

@param queryScopes
       Filter based on the text field type. A Folder has only a name and no content. A Comment has only content
       and no name. A Document or Document Version has a name and content
@return Returns a reference to this object so that method calls can be chained together.
@see SearchQueryScopeType
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/SearchResourcesRequest.java