@Override public V3HostNicVirtualFunctionsConfiguration adapt(HostNicVirtualFunctionsConfiguration from) { V3HostNicVirtualFunctionsConfiguration to = new V3HostNicVirtualFunctionsConfiguration(); if (from.isSetAllNetworksAllowed()) { to.setAllNetworksAllowed(from.isAllNetworksAllowed()); } if (from.isSetMaxNumberOfVirtualFunctions()) { to.setMaxNumberOfVirtualFunctions(from.getMaxNumberOfVirtualFunctions()); } if (from.isSetNumberOfVirtualFunctions()) { to.setNumberOfVirtualFunctions(from.getNumberOfVirtualFunctions()); } return to; } }