code: public Observable<IotHubNameAvailabilityInfoInner> checkNameAvailabilityAsync(String name) {
          return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<IotHubNameAvailabilityInfoInner>, IotHubNameAvailabilityInfoInner>() {
              @Override
              public IotHubNameAvailabilityInfoInner call(ServiceResponse<IotHubNameAvailabilityInfoInner> response) {
                  return response.body();
              }
          });
      }
docs: Check if an IoT hub name is available.
  Check if an IoT hub name is available.
  
  @param name The name of the IoT hub to check.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the IotHubNameAvailabilityInfoInner object