Package 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>
Class IPForwardingRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IPForwardingRule.Builder<T extends IPForwardingRule.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
IPForwardingRule(String id, String IPAddress, String IPAddressId, int startPort, String protocol, int endPort, String state, String virtualMachineDisplayName, String virtualMachineId, String virtualMachineName, int publicPort, 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 IPForwardingRule.Builder<?>
builder()
int
compareTo(IPForwardingRule o)
boolean
equals(Object obj)
Set<String>
getCIDRs()
int
getEndPort()
String
getId()
String
getIPAddress()
String
getIPAddressId()
int
getPrivateEndPort()
String
getProtocol()
int
getPublicEndPort()
int
getPublicPort()
int
getStartPort()
String
getState()
Set<Tag>
getTags()
String
getVirtualMachineDisplayName()
String
getVirtualMachineId()
String
getVirtualMachineName()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
IPForwardingRule.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
IPForwardingRule
@ConstructorProperties({"id","ipaddress","ipaddressid","startport","protocol","endport","state","virtualmachinedisplayname","virtualmachineid","virtualmachinename","publicport","cidrlist","privateendport","publicendport","tags"}) protected IPForwardingRule(String id, String IPAddress, String IPAddressId, int startPort, @Nullable String protocol, int endPort, @Nullable String state, @Nullable String virtualMachineDisplayName, @Nullable String virtualMachineId, @Nullable String virtualMachineName, int publicPort, @Nullable Set<String> CIDRs, int privateEndPort, int publicEndPort, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static IPForwardingRule.Builder<?> builder()
-
toBuilder
public IPForwardingRule.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- the ID of the ip forwarding rule
-
getIPAddress
@Nullable public String getIPAddress()
- Returns:
- the public ip address for the ip forwarding rule
-
getIPAddressId
@Nullable public String 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
-
getEndPort
public int getEndPort()
- Returns:
- the public port for the ip forwarding rule
-
getVirtualMachineDisplayName
@Nullable public String getVirtualMachineDisplayName()
- Returns:
- the VM display name for the ip forwarding rule
-
getVirtualMachineId
@Nullable public String getVirtualMachineId()
- Returns:
- the VM ID for the ip forwarding rule
-
getVirtualMachineName
@Nullable 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
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(IPForwardingRule o)
- Specified by:
compareTo
in interfaceComparable<IPForwardingRule>
-
-