code: public String replaceContent(String resourceGroupName, String automationAccountName, String runbookName, String runbookContent) {
          return replaceContentWithServiceResponseAsync(resourceGroupName, automationAccountName, runbookName, runbookContent).toBlocking().last().body();
      }
docs: Replaces the runbook draft content.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param runbookName The runbook name.
  @param runbookContent The runbook draft content.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the String object if successful.