@Override public V3GuestNicConfiguration adapt(NicConfiguration from) { V3GuestNicConfiguration to = new V3GuestNicConfiguration(); if (from.isSetBootProtocol()) { to.setBootProtocol(from.getBootProtocol().value()); } if (from.isSetIp()) { to.setIp(adaptOut(from.getIp())); } if (from.isSetName()) { to.setName(from.getName()); } if (from.isSetOnBoot()) { to.setOnBoot(from.isOnBoot()); } return to; } }
entity.setName(model.getName());