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 class
PortForwardingRule.Builder<T extends PortForwardingRule.Builder<T>>
static class
PortForwardingRule.Protocol
static class
PortForwardingRule.State
-
Constructor Summary
Constructors Modifier Constructor Description protected
PortForwardingRule(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()
int
compareTo(PortForwardingRule o)
boolean
equals(Object obj)
Set<String>
getCIDRs()
String
getId()
String
getIPAddress()
String
getIPAddressId()
int
getPrivateEndPort()
int
getPrivatePort()
PortForwardingRule.Protocol
getProtocol()
int
getPublicEndPort()
int
getPublicPort()
PortForwardingRule.State
getState()
Set<Tag>
getTags()
String
getVirtualMachineDisplayName()
String
getVirtualMachineId()
String
getVirtualMachineName()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
PortForwardingRule.Builder<?>
toBuilder()
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<PortForwardingRule>
-
-