org.jclouds.vcloud.domain
Class NetworkConnection
java.lang.Object
org.jclouds.vcloud.domain.NetworkConnection
public class NetworkConnection
- extends Object
describes a single network connection.
- Author:
- Adrian Cole
NetworkConnection
public NetworkConnection(String network,
int networkConnectionIndex,
@Nullable
String ipAddress,
@Nullable
String externalIpAddress,
boolean connected,
@Nullable
String MACAddress,
IpAddressAllocationMode ipAddressAllocationMode)
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-2011 jclouds. All Rights Reserved.