public SearchResourcesRequest withResourceQuery(ResourceQuery resourceQuery) {
        setResourceQuery(resourceQuery);
        return this;
    }
<p>
The search query, using the same formats that are supported for resource group definition. For more information,
see <a>CreateGroup</a>.
</p>

@param resourceQuery
       The search query, using the same formats that are supported for resource group definition. For more
       information, see <a>CreateGroup</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/model/SearchResourcesRequest.java