code: public DomainOwnershipIdentifierInner createOrUpdateOwnershipIdentifier(String resourceGroupName, String domainName, String name, DomainOwnershipIdentifierInner domainOwnershipIdentifier) {
          return createOrUpdateOwnershipIdentifierWithServiceResponseAsync(resourceGroupName, domainName, name, domainOwnershipIdentifier).toBlocking().single().body();
      }
docs: Creates an ownership identifier for a domain or updates identifier details for an existing identifer.
  Creates an ownership identifier for a domain or updates identifier details for an existing identifer.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param domainName Name of domain.
  @param name Name of identifier.
  @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
  @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 DomainOwnershipIdentifierInner object if successful.