code: public Observable<ServiceResponse<DetectorResponseInner>> getHostingEnvironmentDetectorResponseWithServiceResponseAsync(String resourceGroupName, String name, String detectorName) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (name == null) {
              throw new IllegalArgumentException("Parameter name is required and cannot be null.");
          }
          if (detectorName == null) {
              throw new IllegalArgumentException("Parameter detectorName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          final DateTime startTime = null;
          final DateTime endTime = null;
          final String timeGrain = null;
          return service.getHostingEnvironmentDetectorResponse(resourceGroupName, name, detectorName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<DetectorResponseInner>>>() {
                  @Override
                  public Observable<ServiceResponse<DetectorResponseInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<DetectorResponseInner> clientResponse = getHostingEnvironmentDetectorResponseDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Get Hosting Environment Detector Response.
  Get Hosting Environment Detector Response.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name App Service Environment Name
  @param detectorName Detector Resource Name
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the DetectorResponseInner object