org.jclouds.vcloud.domain
Class NetworkConnectionSection

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

public class NetworkConnectionSection
extends Object

The NetworkConnectionSection element specifies how a Vm is connected to a vApp network. It extends the ovf:NetworkConnection element.

NOTE The OVF NetworkSection element and the vCloud API NetworkConnectionSection element specify many of the same parameters for a network connection. If both are present in a Vm body, the values specified in the NetworkConnectionSection override those specified in the NetworkSection.


Nested Class Summary
static class NetworkConnectionSection.Builder
           
 
Field Summary
protected  Set<NetworkConnection> connections
           
protected  ReferenceType edit
           
protected  URI href
           
protected  String info
           
protected  Integer primaryNetworkConnectionIndex
           
protected  String type
           
 
Constructor Summary
NetworkConnectionSection(String type, URI href, String info, Integer primaryNetworkConnectionIndex, Iterable<NetworkConnection> connections, ReferenceType edit)
           
 
Method Summary
static NetworkConnectionSection.Builder builder()
           
 boolean equals(Object obj)
           
 Set<? extends NetworkConnection> getConnections()
           
 ReferenceType getEdit()
           
 URI getHref()
           
 String getInfo()
           
 Integer getPrimaryNetworkConnectionIndex()
           
 String getType()
           
 int hashCode()
           
 NetworkConnectionSection.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected final String type

href

protected final URI href

info

protected final String info

primaryNetworkConnectionIndex

protected final Integer primaryNetworkConnectionIndex

connections

protected final Set<NetworkConnection> connections

edit

protected final ReferenceType edit
Constructor Detail

NetworkConnectionSection

public NetworkConnectionSection(String type,
                                URI href,
                                String info,
                                Integer primaryNetworkConnectionIndex,
                                Iterable<NetworkConnection> connections,
                                ReferenceType edit)
Method Detail

builder

public static NetworkConnectionSection.Builder builder()

getType

public String getType()
Returns:
media type of this section

getHref

public URI getHref()
Returns:
URL to access this section

getInfo

public String getInfo()
Returns:

getPrimaryNetworkConnectionIndex

public Integer getPrimaryNetworkConnectionIndex()
Returns:
The value of the rasd:AddressOnParent element of the device (NIC) supporting the primary network connection to the containing virtual machine.

getConnections

public Set<? extends NetworkConnection> getConnections()

getEdit

public ReferenceType getEdit()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toBuilder

public NetworkConnectionSection.Builder toBuilder()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.