code: public Observable<ServiceResponse<PacketCaptureQueryStatusResultInner>> getStatusWithServiceResponseAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (networkWatcherName == null) {
              throw new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.");
          }
          if (packetCaptureName == null) {
              throw new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          final String apiVersion = "2018-07-01";
          Observable<Response<ResponseBody>> observable = service.getStatus(resourceGroupName, networkWatcherName, packetCaptureName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<PacketCaptureQueryStatusResultInner>() { }.getType());
      }
docs: Query the status of a running packet capture session.
  
  @param resourceGroupName The name of the resource group.
  @param networkWatcherName The name of the Network Watcher resource.
  @param packetCaptureName The name given to the packet capture session.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request