code: public Observable<ResourceNameAvailabilityInner> checkNameAvailabilityAsync(String name, CheckNameResourceTypes type, Boolean isFqdn) {
          return checkNameAvailabilityWithServiceResponseAsync(name, type, isFqdn).map(new Func1<ServiceResponse<ResourceNameAvailabilityInner>, ResourceNameAvailabilityInner>() {
              @Override
              public ResourceNameAvailabilityInner call(ServiceResponse<ResourceNameAvailabilityInner> response) {
                  return response.body();
              }
          });
      }
docs: Check if a resource name is available.
  Check if a resource name is available.
  
  @param name Resource name to verify.
  @param type Resource type used for verification. Possible values include: 'Site', 'Slot', 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
  @param isFqdn Is fully qualified domain name.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ResourceNameAvailabilityInner object