org.jclouds.cloudstack.domain
Class PortForwardingRule

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

public class PortForwardingRule
extends Object
implements Comparable<PortForwardingRule>

Author:
Adrian Cole, Andrei Savu

Nested Class Summary
static class PortForwardingRule.Builder
           
static class PortForwardingRule.Protocol
           
static class PortForwardingRule.State
           
 
Field Summary
 int publicPort
           
 long virtualMachineId
           
 
Constructor Summary
PortForwardingRule(long id, String iPAddress, long iPAddressId, int privatePort, PortForwardingRule.Protocol protocol, int publicPort, PortForwardingRule.State state, String virtualMachineDisplayName, long virtualMachineId, String virtualMachineName, Set<String> CIDRs, int privateEndPort, int publicEndPort)
           
 
Method Summary
static PortForwardingRule.Builder builder()
           
 int compareTo(PortForwardingRule arg0)
           
 boolean equals(Object obj)
           
 Set<String> getCIDRs()
           
 long getId()
           
 String getIPAddress()
           
 long getIPAddressId()
           
 int getPrivateEndPort()
           
 int getPrivatePort()
           
 PortForwardingRule.Protocol getProtocol()
           
 int getPublicEndPort()
           
 int getPublicPort()
           
 PortForwardingRule.State 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

publicPort

public int publicPort

virtualMachineId

public long virtualMachineId
Constructor Detail

PortForwardingRule

public PortForwardingRule(long id,
                          String iPAddress,
                          long iPAddressId,
                          int privatePort,
                          PortForwardingRule.Protocol protocol,
                          int publicPort,
                          PortForwardingRule.State state,
                          String virtualMachineDisplayName,
                          long virtualMachineId,
                          String virtualMachineName,
                          Set<String> CIDRs,
                          int privateEndPort,
                          int publicEndPort)
Method Detail

builder

public static PortForwardingRule.Builder builder()

compareTo

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

getId

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

getIPAddress

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

getIPAddressId

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

getPrivatePort

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

getProtocol

public PortForwardingRule.Protocol getProtocol()
Returns:
the protocol of the port forwarding rule

getPublicPort

public int getPublicPort()
Returns:
the public port for the port forwarding rule

getState

public PortForwardingRule.State getState()
Returns:
the state of the rule

getVirtualMachineDisplayName

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

getVirtualMachineId

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

getVirtualMachineName

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

getCIDRs

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

getPrivateEndPort

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

getPublicEndPort

public int getPublicEndPort()
Returns:
the starting port of port forwarding rule's public 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.