public Observable<ServiceResponse<CheckAvailabilityResourceInner>> checkAvailabilityWithServiceResponseAsync(CheckAvailabilityParameters parameters) {
        if (this.client.subscriptionId() == null) {
            throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
        }
        if (parameters == null) {
            throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
        }
        if (this.client.apiVersion() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
        }
        Validator.validate(parameters);
        return service.checkAvailability(this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<CheckAvailabilityResourceInner>>>() {
                @Override
                public Observable<ServiceResponse<CheckAvailabilityResourceInner>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<CheckAvailabilityResourceInner> clientResponse = checkAvailabilityDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < CheckAvailabilityResourceInner > > checkAvailabilityWithServiceResponseAsync ( CheckAvailabilityParameters parameters ) { if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( parameters == null ) { throw new IllegalArgumentException ( "Parameter parameters is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } Validator . validate ( parameters ) ; return service . checkAvailability ( this . client . subscriptionId ( ) , parameters , this . client . apiVersion ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < CheckAvailabilityResourceInner > > > ( ) { @ Override public Observable < ServiceResponse < CheckAvailabilityResourceInner > > call ( Response < ResponseBody > response ) { try { ServiceResponse < CheckAvailabilityResourceInner > clientResponse = checkAvailabilityDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name.

@param parameters The namespace name.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the CheckAvailabilityResourceInner object