public Observable<ServiceResponse<UUID>> addClosedListWithServiceResponseAsync(UUID appId, String versionId, ClosedListModelCreateObject closedListModelCreateObject) {
        if (this.client.endpoint() == null) {
            throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
        }
        if (appId == null) {
            throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
        }
        if (versionId == null) {
            throw new IllegalArgumentException("Parameter versionId is required and cannot be null.");
        }
        if (closedListModelCreateObject == null) {
            throw new IllegalArgumentException("Parameter closedListModelCreateObject is required and cannot be null.");
        }
        Validator.validate(closedListModelCreateObject);
        String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint());
        return service.addClosedList(appId, versionId, closedListModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<UUID>>>() {
                @Override
                public Observable<ServiceResponse<UUID>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<UUID> clientResponse = addClosedListDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < UUID > > addClosedListWithServiceResponseAsync ( UUID appId , String versionId , ClosedListModelCreateObject closedListModelCreateObject ) { if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgumentException ( "Parameter versionId is required and cannot be null." ) ; } if ( closedListModelCreateObject == null ) { throw new IllegalArgumentException ( "Parameter closedListModelCreateObject is required and cannot be null." ) ; } Validator . validate ( closedListModelCreateObject ) ; String parameterizedHost = Joiner . on ( ", " ) . join ( "{Endpoint}" , this . client . endpoint ( ) ) ; return service . addClosedList ( appId , versionId , closedListModelCreateObject , this . client . acceptLanguage ( ) , parameterizedHost , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < UUID > > > ( ) { @ Override public Observable < ServiceResponse < UUID > > call ( Response < ResponseBody > response ) { try { ServiceResponse < UUID > clientResponse = addClosedListDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Adds a closed list model to the application.

@param appId The application ID.
@param versionId The version ID.
@param closedListModelCreateObject A model containing the name and words for the new closed list entity extractor.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the UUID object