code: public Observable<PolicyStatesQueryResultsInner> listQueryResultsForResourceGroupAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, QueryOptions queryOptions) {
          return listQueryResultsForResourceGroupWithServiceResponseAsync(policyStatesResource, subscriptionId, resourceGroupName, queryOptions).map(new Func1<ServiceResponse<PolicyStatesQueryResultsInner>, PolicyStatesQueryResultsInner>() {
              @Override
              public PolicyStatesQueryResultsInner call(ServiceResponse<PolicyStatesQueryResultsInner> response) {
                  return response.body();
              }
          });
      }
docs: Queries policy states for the resources under the resource group.
  
  @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). Possible values include: 'default', 'latest'
  @param subscriptionId Microsoft Azure subscription ID.
  @param resourceGroupName Resource group name.
  @param queryOptions Additional parameters for the operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PolicyStatesQueryResultsInner object