Hi Nir,
My colleague found a solution:
import static org.ovirt.engine.sdk4.builders.Builders.dataCenter;
.
.
.
systemService.dataCentersService().dataCenterService(datCenter.id()).update().dataCenter(dataCenter().local(true/false)).send();
Depending on the true/false the value can be changed between Shared and Local.