private static boolean isSetToId(RegistrationVnicProfileMapping regMapping) { return regMapping.isSetTo() && regMapping.getTo().isSetId(); }
@Deprecated public static void validateVnicMappings(BackendResource br, Action action) { if (action.isSetVnicProfileMappings()) { br.validateParameters(action.getVnicProfileMappings(), "vnicProfileMappings"); for (VnicProfileMapping mapping: action.getVnicProfileMappings().getVnicProfileMappings()) { br.validateParameters(mapping, "sourceNetworkName"); br.validateParameters(mapping, "sourceNetworkProfileName"); // target is optional if (mapping.isSetTargetVnicProfile() && mapping.getTargetVnicProfile().isSetId()) { br.asGuid(mapping.getTargetVnicProfile().getId()); } } } }
to.setDescription(from.getDescription()); if (from.isSetId()) { to.setId(from.getId());
if (model.getVnicProfile().isSetId()) { entity.setVnicProfileId(GuidUtils.asGuid(model.getVnicProfile().getId())); } else {
org.ovirt.engine.core.common.businessentities.network.VnicProfile entity = template != null ? template : new org.ovirt.engine.core.common.businessentities.network.VnicProfile(); if (model.isSetId()) { entity.setId(GuidUtils.asGuid(model.getId()));