org.jclouds.vcloud.director.v1_5.domain.network
Class NatVmRule

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.network.NatVmRule

public class NatVmRule
extends Object

Represents the NAT rule for port forwarding between VM NIC/port and external IP/port.

Java class for NatVmRule complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="NatVmRule">
   <complexContent>
     <extension base="{http://www.vmware.com/vcloud/v1.5}VCloudExtensibleType">
       <sequence>
         <element name="ExternalIpAddress" type="{http://www.vmware.com/vcloud/v1.5}IpAddressType" minOccurs="0"/>
         <element name="ExternalPort" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="VAppScopedVmId" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="VmNicId" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="InternalPort" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="Protocol" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </sequence>
       <anyAttribute processContents='lax' namespace='##other'/>
     </extension>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class NatVmRule.Builder
           
 
Field Summary
protected  String externalIpAddress
           
protected  int externalPort
           
protected  int internalPort
           
protected  String protocol
           
protected  String vAppScopedVmId
           
protected  int vmNicId
           
 
Method Summary
static NatVmRule.Builder builder()
           
 boolean equals(Object o)
           
 String getExternalIpAddress()
          Gets the value of the externalIpAddress property.
 int getExternalPort()
          Gets the value of the externalPort property.
 int getInternalPort()
          Gets the value of the internalPort property.
 String getProtocol()
          Gets the value of the protocol property.
 String getVAppScopedVmId()
          Gets the value of the vAppScopedVmId property.
 int getVmNicId()
          Gets the value of the vmNicId property.
 int hashCode()
           
 NatVmRule.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

externalIpAddress

protected String externalIpAddress

externalPort

protected int externalPort

vAppScopedVmId

protected String vAppScopedVmId

vmNicId

protected int vmNicId

internalPort

protected int internalPort

protocol

protected String protocol
Method Detail

builder

public static NatVmRule.Builder builder()

toBuilder

public NatVmRule.Builder toBuilder()

getExternalIpAddress

public String getExternalIpAddress()
Gets the value of the externalIpAddress property.

Returns:
possible object is String

getExternalPort

public int getExternalPort()
Gets the value of the externalPort property.


getVAppScopedVmId

public String getVAppScopedVmId()
Gets the value of the vAppScopedVmId property.

Returns:
possible object is String

getVmNicId

public int getVmNicId()
Gets the value of the vmNicId property.


getInternalPort

public int getInternalPort()
Gets the value of the internalPort property.


getProtocol

public String getProtocol()
Gets the value of the protocol property.

Returns:
possible object is String

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.