|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.vcloud.domain.network.nat.rules.VmRule
public class VmRule
The VmRule element describes a NAT rule that maps an IP address and port in a vApp network to an external IP address and port. The external IP address, external port, and internal port are specified in the element. The internal IP address is discovered by looking up the specified VmReference and VmNicId.
| Constructor Summary | |
|---|---|
VmRule(String externalIP,
int externalPort,
String vAppScopedLocalId,
int vmNicId,
int internalPort,
NatProtocol protocol)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getExternalIP()
IP address to which this NAT rule maps the IP address specified in the InternalIp element. |
Integer |
getExternalPort()
network port to which this NAT rule maps the port number specified in the InternalPort element |
Integer |
getInternalPort()
network port to which this NAT rule maps the port number specified in the ExternalPort element. |
NatProtocol |
getProtocol()
specifies the network protocol to which this rule applies |
String |
getVAppScopedLocalId()
|
int |
getVmNicId()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VmRule(@Nullable
String externalIP,
int externalPort,
@Nullable
String vAppScopedLocalId,
int vmNicId,
int internalPort,
NatProtocol protocol)
| Method Detail |
|---|
@Nullable public String getExternalIP()
getExternalIP in interface NatRulepublic Integer getExternalPort()
@Nullable public String getVAppScopedLocalId()
public int getVmNicId()
public Integer getInternalPort()
public NatProtocol getProtocol()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||