code: public Observable<ServiceResponse<AgreementTermsInner>> cancelWithServiceResponseAsync(String publisherId, String offerId, String planId) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (publisherId == null) {
              throw new IllegalArgumentException("Parameter publisherId is required and cannot be null.");
          }
          if (offerId == null) {
              throw new IllegalArgumentException("Parameter offerId is required and cannot be null.");
          }
          if (planId == null) {
              throw new IllegalArgumentException("Parameter planId is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          return service.cancel(this.client.subscriptionId(), publisherId, offerId, planId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AgreementTermsInner>>>() {
                  @Override
                  public Observable<ServiceResponse<AgreementTermsInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<AgreementTermsInner> clientResponse = cancelDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Cancel marketplace terms.
  
  @param publisherId Publisher identifier string of image being deployed.
  @param offerId Offer identifier string of image being deployed.
  @param planId Plan identifier string of image being deployed.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the AgreementTermsInner object