code: public Observable<ServiceResponse<Page<EndpointHealthDataInner>>> getEndpointHealthSinglePageAsync(final String resourceGroupName, final String iotHubName) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (iotHubName == null) {
              throw new IllegalArgumentException("Parameter iotHubName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          return service.getEndpointHealth(this.client.subscriptionId(), resourceGroupName, iotHubName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<EndpointHealthDataInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<EndpointHealthDataInner>>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<PageImpl<EndpointHealthDataInner>> result = getEndpointHealthDelegate(response);
                          return Observable.just(new ServiceResponse<Page<EndpointHealthDataInner>>(result.body(), result.response()));
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Get the health for routing endpoints.
  Get the health for routing endpoints.
  
  ServiceResponse<PageImpl<EndpointHealthDataInner>> * @param resourceGroupName the String value
  ServiceResponse<PageImpl<EndpointHealthDataInner>> * @param iotHubName the String value
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the PagedList&lt;EndpointHealthDataInner&gt; object wrapped in {@link ServiceResponse} if successful.