this.network = network;
return this;
}
public VirtualDatacenter build() {
VirtualDatacenterDto dto = new VirtualDatacenterDto();
dto.setName(name);
dto.setRamLimitsInMb(ramSoftLimitInMb, ramHardLimitInMb);
dto.setCpuCountLimits(cpuCountSoftLimit, cpuCountHardLimit);
dto.setHdLimitsInMb(hdSoftLimitInMb, hdHardLimitInMb);
dto.setStorageLimits(storageSoft, storageHard);
dto.setVlansLimits(vlansSoft, vlansHard);
dto.setPublicIPLimits(publicIpsSoft, publicIpsHard);
dto.setName(name);
dto.setHypervisorType(hypervisorType);
dto.setVlan(network.unwrap());
VirtualDatacenter virtualDatacenter = new VirtualDatacenter(context, dto);
virtualDatacenter.datacenter = datacenter;
virtualDatacenter.enterprise = enterprise;