Package 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>
Class PortForwardingRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPortForwardingRule.Builder<T extends PortForwardingRule.Builder<T>>static classPortForwardingRule.Protocolstatic classPortForwardingRule.State
-
Constructor Summary
Constructors Modifier Constructor Description protectedPortForwardingRule(String id, String IPAddress, String IPAddressId, int privatePort, PortForwardingRule.Protocol protocol, int publicPort, PortForwardingRule.State state, String virtualMachineDisplayName, String virtualMachineId, String virtualMachineName, Set<String> CIDRs, int privateEndPort, int publicEndPort, Set<Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PortForwardingRule.Builder<?>builder()intcompareTo(PortForwardingRule o)booleanequals(Object obj)Set<String>getCIDRs()StringgetId()StringgetIPAddress()StringgetIPAddressId()intgetPrivateEndPort()intgetPrivatePort()PortForwardingRule.ProtocolgetProtocol()intgetPublicEndPort()intgetPublicPort()PortForwardingRule.StategetState()Set<Tag>getTags()StringgetVirtualMachineDisplayName()StringgetVirtualMachineId()StringgetVirtualMachineName()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()PortForwardingRule.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
PortForwardingRule
protected PortForwardingRule(String id, @Nullable String IPAddress, @Nullable String IPAddressId, int privatePort, @Nullable PortForwardingRule.Protocol protocol, int publicPort, @Nullable PortForwardingRule.State state, @Nullable String virtualMachineDisplayName, @Nullable String virtualMachineId, @Nullable String virtualMachineName, @Nullable Set<String> CIDRs, int privateEndPort, int publicEndPort, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static PortForwardingRule.Builder<?> builder()
-
toBuilder
public PortForwardingRule.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- the ID of the port forwarding rule
-
getIPAddress
@Nullable public String getIPAddress()
- Returns:
- the public ip address for the port forwarding rule
-
getIPAddressId
@Nullable public String 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
@Nullable 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
@Nullable public PortForwardingRule.State getState()
- Returns:
- the state of the rule
-
getVirtualMachineDisplayName
@Nullable public String getVirtualMachineDisplayName()
- Returns:
- the VM display name for the port forwarding rule
-
getVirtualMachineId
@Nullable public String getVirtualMachineId()
- Returns:
- the VM ID for the port forwarding rule
-
getVirtualMachineName
@Nullable public String getVirtualMachineName()
- Returns:
- the VM name for the port forwarding rule
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(PortForwardingRule o)
- Specified by:
compareToin interfaceComparable<PortForwardingRule>
-
-