public Observable<ServiceResponse<List<Domain>>> getDomainsWithServiceResponseAsync() {
        if (this.client.apiKey() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
        }
        return service.getDomains(this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<Domain>>>>() {
                @Override
                public Observable<ServiceResponse<List<Domain>>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<List<Domain>> clientResponse = getDomainsDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < List < Domain > > > getDomainsWithServiceResponseAsync ( ) { if ( this . client . apiKey ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiKey() is required and cannot be null." ) ; } return service . getDomains ( this . client . apiKey ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < List < Domain > > > > ( ) { @ Override public Observable < ServiceResponse < List < Domain > > > call ( Response < ResponseBody > response ) { try { ServiceResponse < List < Domain > > clientResponse = getDomainsDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Get a list of the available domains.

@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the List&lt;Domain&gt; object