org.jclouds.vcloud.domain
Class NetworkConnection

java.lang.Object
  extended by org.jclouds.vcloud.domain.NetworkConnection

public class NetworkConnection
extends Object

describes a single network connection.

Author:
Adrian Cole

Nested Class Summary
static class NetworkConnection.Builder
           
 
Constructor Summary
NetworkConnection(String network, int networkConnectionIndex, String ipAddress, String externalIpAddress, boolean connected, String MACAddress, IpAddressAllocationMode ipAddressAllocationMode)
           
 
Method Summary
static NetworkConnection.Builder builder()
           
 boolean equals(Object obj)
           
 String getExternalIpAddress()
           
 String getIpAddress()
           
 IpAddressAllocationMode getIpAddressAllocationMode()
           
 String getMACAddress()
           
 String getNetwork()
           
 int getNetworkConnectionIndex()
           
 int hashCode()
           
 boolean isConnected()
           
 NetworkConnection.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkConnection

public NetworkConnection(String network,
                         int networkConnectionIndex,
                         @Nullable
                         String ipAddress,
                         @Nullable
                         String externalIpAddress,
                         boolean connected,
                         @Nullable
                         String MACAddress,
                         IpAddressAllocationMode ipAddressAllocationMode)
Method Detail

builder

public static NetworkConnection.Builder builder()

getNetwork

public String getNetwork()
Returns:
The name of the network to which this connection connects.

getNetworkConnectionIndex

public int getNetworkConnectionIndex()
Returns:
The value in the rasd:AddressOnParent element of the device supporting this connection.

getIpAddress

@Nullable
public String getIpAddress()
Returns:
IP address of this connection

getExternalIpAddress

@Nullable
public String getExternalIpAddress()
Returns:
If the network that the NIC is connected to has NAT or port mapping, the external address is populated in this element.

isConnected

public boolean isConnected()
Returns:
If the vApp is deployed, specifies the current state of its connection. If the vApp is undeployed, specifies whether this connection should be connected at deployment time.

getMACAddress

@Nullable
public String getMACAddress()
Returns:
MAC address of this connection

getIpAddressAllocationMode

public IpAddressAllocationMode getIpAddressAllocationMode()
Returns:
specifies how an IP address is allocated to this connection

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toBuilder

public NetworkConnection.Builder toBuilder()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.