org.jclouds.cloudstack.domain
Class IPForwardingRule

java.lang.Object
  extended by org.jclouds.cloudstack.domain.IPForwardingRule
All Implemented Interfaces:
Comparable<IPForwardingRule>

public class IPForwardingRule
extends Object
implements Comparable<IPForwardingRule>

Author:
Adrian Cole

Nested Class Summary
static class IPForwardingRule.Builder
           
 
Field Summary
 int endPort
           
 int publicPort
           
 long virtualMachineId
           
 
Constructor Summary
IPForwardingRule(long id, String iPAddress, long iPAddressId, int startPort, String protocol, int endPort, String state, String virtualMachineDisplayName, long virtualMachineId, String virtualMachineName, int publicEndPort, int publicPort, Set<String> CIDRs, int privateEndPort)
           
 
Method Summary
static IPForwardingRule.Builder builder()
           
 int compareTo(IPForwardingRule arg0)
           
 boolean equals(Object obj)
           
 Set<String> getCIDRs()
           
 int getEndPort()
           
 long getId()
           
 String getIPAddress()
           
 long getIPAddressId()
           
 int getPrivateEndPort()
           
 String getProtocol()
           
 int getPublicEndPort()
           
 int getPublicPort()
           
 int getStartPort()
           
 String getState()
           
 String getVirtualMachineDisplayName()
           
 long getVirtualMachineId()
           
 String getVirtualMachineName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

endPort

public int endPort

virtualMachineId

public long virtualMachineId

publicPort

public int publicPort
Constructor Detail

IPForwardingRule

public IPForwardingRule(long id,
                        String iPAddress,
                        long iPAddressId,
                        int startPort,
                        String protocol,
                        int endPort,
                        String state,
                        String virtualMachineDisplayName,
                        long virtualMachineId,
                        String virtualMachineName,
                        int publicEndPort,
                        int publicPort,
                        Set<String> CIDRs,
                        int privateEndPort)
Method Detail

builder

public static IPForwardingRule.Builder builder()

compareTo

public int compareTo(IPForwardingRule arg0)
Specified by:
compareTo in interface Comparable<IPForwardingRule>

getId

public long getId()
Returns:
the ID of the ip forwarding rule

getIPAddress

public String getIPAddress()
Returns:
the public ip address for the ip forwarding rule

getIPAddressId

public long getIPAddressId()
Returns:
the public ip address id for the ip forwarding rule

getStartPort

public int getStartPort()
Returns:
the private port for the ip forwarding rule

getProtocol

public String getProtocol()
Returns:
the protocol of the ip forwarding rule

getEndPort

public int getEndPort()
Returns:
the public port for the ip forwarding rule

getState

public String getState()
Returns:
the state of the rule

getVirtualMachineDisplayName

public String getVirtualMachineDisplayName()
Returns:
the VM display name for the ip forwarding rule

getVirtualMachineId

public long getVirtualMachineId()
Returns:
the VM ID for the ip forwarding rule

getVirtualMachineName

public String getVirtualMachineName()
Returns:
the VM name for the ip forwarding rule

getPublicPort

public int getPublicPort()
Returns:
the starting port of port forwarding rule's public port range

getCIDRs

public Set<String> getCIDRs()
Returns:
the cidr list to forward traffic from

getPrivateEndPort

public int getPrivateEndPort()
Returns:
the ending port of port forwarding rule's private port range

getPublicEndPort

public int getPublicEndPort()
Returns:
the ending port of port forwarding rule's private port range

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.