code: public Observable<ServiceResponse<EnvironmentSettingInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, EnvironmentSettingInner environmentSetting) {
          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 (labAccountName == null) {
              throw new IllegalArgumentException("Parameter labAccountName is required and cannot be null.");
          }
          if (labName == null) {
              throw new IllegalArgumentException("Parameter labName is required and cannot be null.");
          }
          if (environmentSettingName == null) {
              throw new IllegalArgumentException("Parameter environmentSettingName is required and cannot be null.");
          }
          if (environmentSetting == null) {
              throw new IllegalArgumentException("Parameter environmentSetting is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(environmentSetting);
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, labAccountName, labName, environmentSettingName, environmentSetting, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<EnvironmentSettingInner>() { }.getType());
      }
docs: Create or replace an existing Environment Setting. This operation can take a while to complete.
  
  @param resourceGroupName The name of the resource group.
  @param labAccountName The name of the lab Account.
  @param labName The name of the lab.
  @param environmentSettingName The name of the environment Setting.
  @param environmentSetting Represents settings of an environment, from which environment instances would be created
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request