docs: public Observable<ServiceResponseWithHeaders<String, RunbookDraftReplaceContentHeaders>> beginReplaceContentWithServiceResponseAsync(String resourceGroupName, String automationAccountName, String runbookName, String runbookContent) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (automationAccountName == null) {
              throw new IllegalArgumentException("Parameter automationAccountName is required and cannot be null.");
          }
          if (runbookName == null) {
              throw new IllegalArgumentException("Parameter runbookName is required and cannot be null.");
          }
          if (runbookContent == null) {
              throw new IllegalArgumentException("Parameter runbookContent is required and cannot be null.");
          }
          final String apiVersion = "2015-10-31";
          return service.beginReplaceContent(this.client.subscriptionId(), resourceGroupName, automationAccountName, runbookName, runbookContent, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponseWithHeaders<String, RunbookDraftReplaceContentHeaders>>>() {
                  @Override
                  public Observable<ServiceResponseWithHeaders<String, RunbookDraftReplaceContentHeaders>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponseWithHeaders<String, RunbookDraftReplaceContentHeaders> clientResponse = beginReplaceContentDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }