public T fromPortForwardingRule(PortForwardingRule in) { return this.id(in.getId()) .IPAddress(in.getIPAddress()) .IPAddressId(in.getIPAddressId()) .privatePort(in.getPrivatePort()) .protocol(in.getProtocol()) .publicPort(in.getPublicPort()) .state(in.getState()) .virtualMachineDisplayName(in.getVirtualMachineDisplayName()) .virtualMachineId(in.getVirtualMachineId()) .virtualMachineName(in.getVirtualMachineName()) .CIDRs(in.getCIDRs()) .privateEndPort(in.getPrivateEndPort()) .publicEndPort(in.getPublicEndPort()); }
@Override public int compareTo(PortForwardingRule o) { return id.compareTo(o.getId()); }
@Override public int compareTo(PortForwardingRule arg0) { return new Long(id).compareTo(arg0.getId()); }