code: public PolicyEventsQueryResultsInner listQueryResultsForResource(String resourceId, QueryOptions queryOptions) {
          return listQueryResultsForResourceWithServiceResponseAsync(resourceId, queryOptions).toBlocking().single().body();
      }
docs: Queries policy events for the resource.
  
  @param resourceId Resource ID.
  @param queryOptions Additional parameters for the operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws QueryFailureException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PolicyEventsQueryResultsInner object if successful.