code: public DomainInner beginCreateOrUpdate(String resourceGroupName, String domainName, DomainInner domain) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, domainName, domain).toBlocking().single().body();
      }
docs: Creates or updates a domain.
  Creates or updates a domain.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param domainName Name of the domain.
  @param domain Domain registration information.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws DefaultErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DomainInner object if successful.