code: public Observable<ServiceResponse<DomainInner>> updateWithServiceResponseAsync(String resourceGroupName, String domainName, Map<String, String> tags) {
          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 (domainName == null) {
              throw new IllegalArgumentException("Parameter domainName 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(tags);
          DomainUpdateParameters domainUpdateParameters = new DomainUpdateParameters();
          domainUpdateParameters.withTags(tags);
          Observable<Response<ResponseBody>> observable = service.update(this.client.subscriptionId(), resourceGroupName, domainName, this.client.apiVersion(), this.client.acceptLanguage(), domainUpdateParameters, this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<DomainInner>() { }.getType());
      }
docs: Update a domain.
  Asynchronously updates a domain with the specified parameters.
  
  @param resourceGroupName The name of the resource group within the user's subscription.
  @param domainName Name of the domain
  @param tags Tags of the domains resource
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request