public UpdateGroupQueryRequest withResourceQuery(ResourceQuery resourceQuery) {
        setResourceQuery(resourceQuery);
        return this;
    }
<p>
The resource query to determine which Amazon Web Services resources are members of this resource group.
</p>
<note>
<p>
A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not both.
</p>
</note>

@param resourceQuery
       The resource query to determine which Amazon Web Services resources are members of this resource
       group.</p> <note>
       <p>
       A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not
       both.
       </p>
@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/UpdateGroupQueryRequest.java