code: public ServiceFuture<DomainInner> beginCreateOrUpdateAsync(String resourceGroupName, String domainName, DomainInner domainInfo, final ServiceCallback<DomainInner> serviceCallback) {
          return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, domainName, domainInfo), serviceCallback);
      }
docs: Create a domain.
  Asynchronously creates a new 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 domainInfo Domain information
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object