public T fromNIC(NIC in) { return this .id(in.getId()) .broadcastURI(in.getBroadcastURI()) .gateway(in.getGateway()) .IPAddress(in.getIPAddress()) .isDefault(in.isDefault()) .isolationURI(in.getIsolationURI()) .netmask(in.getNetmask()) .macAddress(in.getMacAddress()) .networkId(in.getNetworkId()) .trafficType(in.getTrafficType()) .guestIPType(in.getGuestIPType()); } }
public T fromNIC(NIC in) { return this .id(in.getId()) .broadcastURI(in.getBroadcastURI()) .gateway(in.getGateway()) .IPAddress(in.getIPAddress()) .isDefault(in.isDefault()) .isolationURI(in.getIsolationURI()) .netmask(in.getNetmask()) .macAddress(in.getMacAddress()) .networkId(in.getNetworkId()) .trafficType(in.getTrafficType()) .guestIPType(in.getGuestIPType()); } }
public T fromNIC(NIC in) { return this .id(in.getId()) .broadcastURI(in.getBroadcastURI()) .gateway(in.getGateway()) .IPAddress(in.getIPAddress()) .isDefault(in.isDefault()) .isolationURI(in.getIsolationURI()) .netmask(in.getNetmask()) .macAddress(in.getMacAddress()) .networkId(in.getNetworkId()) .trafficType(in.getTrafficType()) .guestIPType(in.getGuestIPType()); } }
assert vm.getNICs() != null && vm.getNICs().size() > 0 : vm; for (NIC nic : vm.getNICs()) { assert nic.getId() != null : vm; assert nic.getNetworkId() != null : vm; assert nic.getTrafficType() != null : vm;
assert vm.getNICs() != null && !vm.getNICs().isEmpty() : vm; for (NIC nic : vm.getNICs()) { assert nic.getId() != null : vm; assert nic.getNetworkId() != null : vm; assert nic.getTrafficType() != null : vm;