code: public ServiceFuture<OperationStatus> updateClosedListEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateClosedListEntityRoleOptionalParameter updateClosedListEntityRoleOptionalParameter, final ServiceCallback<OperationStatus> serviceCallback) {
          return ServiceFuture.fromResponse(updateClosedListEntityRoleWithServiceResponseAsync(appId, versionId, entityId, roleId, updateClosedListEntityRoleOptionalParameter), serviceCallback);
      }
docs: Update an entity role for a given entity.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param entityId The entity ID.
  @param roleId The entity role ID.
  @param updateClosedListEntityRoleOptionalParameter the object representing the optional parameters to be set before calling this API
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object