code: public Observable<DomainOwnershipIdentifierInner> createOrUpdateOwnershipIdentifierAsync(String resourceGroupName, String domainName, String name, DomainOwnershipIdentifierInner domainOwnershipIdentifier) {
          return createOrUpdateOwnershipIdentifierWithServiceResponseAsync(resourceGroupName, domainName, name, domainOwnershipIdentifier).map(new Func1<ServiceResponse<DomainOwnershipIdentifierInner>, DomainOwnershipIdentifierInner>() {
              @Override
              public DomainOwnershipIdentifierInner call(ServiceResponse<DomainOwnershipIdentifierInner> response) {
                  return response.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
  @return the observable to the DomainOwnershipIdentifierInner object