public GetGroupQueryResult withGroupQuery(GroupQuery groupQuery) {
        setGroupQuery(groupQuery);
        return this;
    }
<p>
The resource query associated with the specified group. For more information about resource queries, see <a
href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag"
>Create a tag-based group in Resource Groups</a>.
</p>

@param groupQuery
       The resource query associated with the specified group. For more information about resource queries, see
       <a href=
       "https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag"
       >Create a tag-based group in Resource Groups</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/GetGroupQueryResult.java