public ServiceFuture<IotHubNameAvailabilityInfoInner> checkNameAvailabilityAsync(String name, final ServiceCallback<IotHubNameAvailabilityInfoInner> serviceCallback) {
        return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(name), serviceCallback);
    }
public ServiceFuture < IotHubNameAvailabilityInfoInner > checkNameAvailabilityAsync ( String name , final ServiceCallback < IotHubNameAvailabilityInfoInner > serviceCallback ) { return ServiceFuture . fromResponse ( checkNameAvailabilityWithServiceResponseAsync ( name ) , serviceCallback ) ; }
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.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object