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