code: public ConnectionMonitorQueryResultInner query(String resourceGroupName, String networkWatcherName, String connectionMonitorName) {
          return queryWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName).toBlocking().last().body();
      }
docs: Query a snapshot of the most recent connection states.
  
  @param resourceGroupName The name of the resource group containing Network Watcher.
  @param networkWatcherName The name of the Network Watcher resource.
  @param connectionMonitorName The name given to the connection monitor.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ConnectionMonitorQueryResultInner object if successful.