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()); } }
switch (vm.getState()) { case RUNNING: assert nic.getNetmask() != null : vm; assert nic.getGateway() != null : vm; assert nic.getIPAddress() != null : vm; break; case STARTING: assert nic.getNetmask() == null : vm; assert nic.getGateway() == null : vm; assert nic.getIPAddress() == null : vm; break; default: assert nic.getNetmask() != null : vm; assert nic.getGateway() != null : vm; assert nic.getIPAddress() != null : vm;
switch (vm.getState()) { case RUNNING: assert nic.getNetmask() != null : vm; assert nic.getGateway() != null : vm; assert nic.getIPAddress() != null : vm; break; case STARTING: assert nic.getNetmask() == null : vm; assert nic.getGateway() == null : vm; assert nic.getIPAddress() == null : vm; break; default: assert nic.getNetmask() != null : vm; assert nic.getGateway() != null : vm; assert nic.getIPAddress() != null : vm;