public SearchResourcesRequest withQueryScopes(String... queryScopes) {
        if (this.queryScopes == null) {
            setQueryScopes(new java.util.ArrayList<String>(queryScopes.length));
        }
        for (String ele : queryScopes) {
            this.queryScopes.add(ele);
        }
        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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setQueryScopes(java.util.Collection)} or {@link #withQueryScopes(java.util.Collection)} if you want to
override the existing values.
</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