org.jclouds.cloudstack.domain
Class PortForwardingRule
java.lang.Object
org.jclouds.cloudstack.domain.PortForwardingRule
- All Implemented Interfaces:
- Comparable<PortForwardingRule>
public class PortForwardingRule
- extends Object
- implements Comparable<PortForwardingRule>
- Author:
- Adrian Cole, Andrei Savu
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)
|
publicPort
public int publicPort
virtualMachineId
public long virtualMachineId
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)
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.