org.jclouds.vcloud.domain.internal
Class VmImpl

java.lang.Object
  extended by org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
      extended by org.jclouds.vcloud.domain.internal.VmImpl
All Implemented Interfaces:
Comparable<ReferenceType>, ReferenceType, Vm

public class VmImpl
extends ReferenceTypeImpl
implements Vm

Locations of resources in vCloud

Author:
Adrian Cole

Constructor Summary
VmImpl(String name, String type, URI id, Status status, ReferenceType vApp, String description, Iterable<Task> tasks, VCloudVirtualHardwareSection hardware, VCloudOperatingSystemSection os, NetworkConnectionSection networkConnectionSection, GuestCustomizationSection guestCustomization, String vAppScopedLocalId)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          optional description
 GuestCustomizationSection getGuestCustomizationSection()
          
 NetworkConnectionSection getNetworkConnectionSection()
          
 VCloudOperatingSystemSection getOperatingSystemSection()
          
 ReferenceType getParent()
          Reference to the VApp or VAppTemplate containing this vm.
 Status getStatus()
          
 List<Task> getTasks()
          read‐only container for Task elements.
 String getVAppScopedLocalId()
          read-only identifier created on import
 VCloudVirtualHardwareSection getVirtualHardwareSection()
          
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
compareTo, getHref, getName, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.vcloud.domain.ReferenceType
getHref, getName, getType
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

VmImpl

public VmImpl(String name,
              String type,
              URI id,
              @Nullable
              Status status,
              ReferenceType vApp,
              @Nullable
              String description,
              Iterable<Task> tasks,
              @Nullable
              VCloudVirtualHardwareSection hardware,
              @Nullable
              VCloudOperatingSystemSection os,
              @Nullable
              NetworkConnectionSection networkConnectionSection,
              @Nullable
              GuestCustomizationSection guestCustomization,
              @Nullable
              String vAppScopedLocalId)
Method Detail

getStatus

@Nullable
public Status getStatus()

Specified by:
getStatus in interface Vm
Returns:
creation status of the Vm or null, if a part of a VAppTemplate

getParent

public ReferenceType getParent()
Reference to the VApp or VAppTemplate containing this vm.

Specified by:
getParent in interface Vm

getDescription

public String getDescription()
optional description

Specified by:
getDescription in interface Vm

getTasks

public List<Task> getTasks()
read‐only container for Task elements. Each element in the container represents a queued, running, or failed task owned by this object.

Specified by:
getTasks in interface Vm

getVirtualHardwareSection

public VCloudVirtualHardwareSection getVirtualHardwareSection()

Specified by:
getVirtualHardwareSection in interface Vm
Returns:
virtual hardware that comprises this VM, or null, if part of a vApp template

getOperatingSystemSection

public VCloudOperatingSystemSection getOperatingSystemSection()

Specified by:
getOperatingSystemSection in interface Vm
Returns:
operating system on this VM, or null, if part of a vApp template

getNetworkConnectionSection

public NetworkConnectionSection getNetworkConnectionSection()

Specified by:
getNetworkConnectionSection in interface Vm
Returns:
network connections for this VM, or null if it doesn't exist

getGuestCustomizationSection

public GuestCustomizationSection getGuestCustomizationSection()

Specified by:
getGuestCustomizationSection in interface Vm
Returns:
guest customization section for this VM, or null if it doesn't exist

getVAppScopedLocalId

public String getVAppScopedLocalId()
read-only identifier created on import

Specified by:
getVAppScopedLocalId in interface Vm

hashCode

public int hashCode()
Overrides:
hashCode in class ReferenceTypeImpl

equals

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

toString

public String toString()
Overrides:
toString in class ReferenceTypeImpl


Copyright © 2009-2011 jclouds. All Rights Reserved.