code: public Observable<OperationStatus> updateHierarchicalEntityRoleAsync(UUID appId, String versionId, UUID hEntityId, UUID roleId, UpdateHierarchicalEntityRoleOptionalParameter updateHierarchicalEntityRoleOptionalParameter) {
          return updateHierarchicalEntityRoleWithServiceResponseAsync(appId, versionId, hEntityId, roleId, updateHierarchicalEntityRoleOptionalParameter).map(new Func1<ServiceResponse<OperationStatus>, OperationStatus>() {
              @Override
              public OperationStatus call(ServiceResponse<OperationStatus> response) {
                  return response.body();
              }
          });
      }
docs: Update an entity role for a given entity.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param hEntityId The hierarchical entity extractor ID.
  @param roleId The entity role ID.
  @param updateHierarchicalEntityRoleOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the OperationStatus object