org.jclouds.vcloud.domain.network.nat.rules
Class OneToOneVmRule

java.lang.Object
  extended by org.jclouds.vcloud.domain.network.nat.rules.OneToOneVmRule
All Implemented Interfaces:
NatRule

public class OneToOneVmRule
extends Object
implements NatRule

The OneToOneVmRule element describes a NAT rule that specifies network address translation details for a single virtual machine. The external IP address can be specified manually or assigned automatically at deployment time. The internal IP address is discovered by looking up the specified VmReference and NIC ID.

Since:
vcloud 0.9
Author:
Adrian Cole

Constructor Summary
OneToOneVmRule(MappingMode mappingMode, String externalIp, String vAppScopedVmId, int vmNicId)
           
 
Method Summary
 String getExternalIP()
          IP address to which this NAT rule maps the IP address specified in the InternalIp element.
 MappingMode getMappingMode()
           
 String getVAppScopedVmId()
           
 int getVmNicId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneToOneVmRule

public OneToOneVmRule(MappingMode mappingMode,
                      @Nullable
                      String externalIp,
                      @Nullable
                      String vAppScopedVmId,
                      int vmNicId)
Method Detail

getMappingMode

public MappingMode getMappingMode()
Returns:
how IP address mapping is implemented by the NAT service
Since:
vcloud 0.9

getExternalIP

@Nullable
public String getExternalIP()
Description copied from interface: NatRule
IP address to which this NAT rule maps the IP address specified in the InternalIp element.

Specified by:
getExternalIP in interface NatRule
Returns:
if MappingMode is manual, specifies the external IP address of this Vm, otherwise null.
Since:
vcloud 0.9

getVAppScopedVmId

@Nullable
public String getVAppScopedVmId()
Returns:
read‐only identifier created on import
Since:
vcloud 0.9

getVmNicId

public int getVmNicId()
Returns:
device number of the NIC on the referenced virtual machine
Since:
vcloud 0.9


Copyright © 2009-2012 jclouds. All Rights Reserved.