code: public Observable<ServiceResponse<AdvisorInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, String advisorName, AutoExecuteStatus autoExecuteValue) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (serverName == null) {
              throw new IllegalArgumentException("Parameter serverName is required and cannot be null.");
          }
          if (advisorName == null) {
              throw new IllegalArgumentException("Parameter advisorName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          if (autoExecuteValue == null) {
              throw new IllegalArgumentException("Parameter autoExecuteValue is required and cannot be null.");
          }
          AdvisorInner parameters = new AdvisorInner();
          parameters.withAutoExecuteValue(autoExecuteValue);
          return service.createOrUpdate(resourceGroupName, serverName, advisorName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AdvisorInner>>>() {
                  @Override
                  public Observable<ServiceResponse<AdvisorInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<AdvisorInner> clientResponse = createOrUpdateDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Creates or updates a server advisor.
  
  @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  @param serverName The name of the server.
  @param advisorName The name of the Server Advisor.
  @param autoExecuteValue Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'. Possible values include: 'Enabled', 'Disabled', 'Default'
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the AdvisorInner object