Пример #1
0
 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());
 }
Пример #2
0
 @Override
 public int compareTo(PortForwardingRule o) {
   return id.compareTo(o.getId());
 }
Пример #3
0
 @Override
 public int compareTo(PortForwardingRule arg0) {
   return new Long(id).compareTo(arg0.getId());
 }