userDefinedProperties)); entity.setCustomEmulatedMachine(rs.getString("custom_emulated_machine")); entity.setBiosType(BiosType.forValue(rs.getInt("bios_type"))); entity.setCustomCpuName(rs.getString("custom_cpu_name")); entity.setSmallIconId(getGuid(rs, SMALL_ICON_ID_COLUMN));
val -> vmBase.setMigrationPolicyId(Guid.createGuidFromString(val))); consumeReadProperty(content, CUSTOM_EMULATED_MACHINE, val -> vmBase.setCustomEmulatedMachine(val)); consumeReadProperty(content, BIOS_TYPE, val -> vmBase.setBiosType(BiosType.forValue(Integer.parseInt(val)))); consumeReadProperty(content, CUSTOM_CPU_NAME, val -> vmBase.setCustomCpuName(val)); consumeReadProperty(content, PREDEFINED_PROPERTIES, val -> vmBase.setPredefinedProperties(val));