org.jclouds.vcloud.domain.internal
Class VAppTemplateImpl

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

public class VAppTemplateImpl
extends ReferenceTypeImpl
implements VAppTemplate

Locations of resources in vCloud

Author:
Adrian Cole

Constructor Summary
VAppTemplateImpl(String name, String type, URI id, Status status, ReferenceType vdc, String description, Iterable<Task> tasks, boolean ovfDescriptorUploaded, String vAppScopedLocalId, Iterable<? extends Vm> children, VCloudNetworkSection networkSection)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<? extends Vm> getChildren()
          container for Vm elements representing virtual machines
 String getDescription()
          optional description
 VCloudNetworkSection getNetworkSection()
          description of the predefined vApp internal networks in this template
 Status getStatus()
          
 List<Task> getTasks()
          read-only container for Task elements.
 String getVAppScopedLocalId()
          read-only identifier created on import
 ReferenceType getVDC()
          Reference to the VDC containing this template.
 int hashCode()
           
 boolean isOvfDescriptorUploaded()
          
 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

VAppTemplateImpl

public VAppTemplateImpl(String name,
                        String type,
                        URI id,
                        Status status,
                        ReferenceType vdc,
                        @Nullable
                        String description,
                        Iterable<Task> tasks,
                        boolean ovfDescriptorUploaded,
                        @Nullable
                        String vAppScopedLocalId,
                        Iterable<? extends Vm> children,
                        @Nullable
                        VCloudNetworkSection networkSection)
Method Detail

getStatus

public Status getStatus()

Specified by:
getStatus in interface VAppTemplate
Returns:
creation status of the VAppTemplate.

getVDC

public ReferenceType getVDC()
Reference to the VDC containing this template.

Specified by:
getVDC in interface VAppTemplate
Returns:
org, or null if this is a version before 1.0 where the vdc isn't present

getDescription

public String getDescription()
optional description

Specified by:
getDescription in interface VAppTemplate

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 VAppTemplate

getVAppScopedLocalId

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

Specified by:
getVAppScopedLocalId in interface VAppTemplate

isOvfDescriptorUploaded

public boolean isOvfDescriptorUploaded()

Specified by:
isOvfDescriptorUploaded in interface VAppTemplate
Returns:
true if the OVF descriptor for the template has been uploaded to the containing vDC.

getChildren

public Set<? extends Vm> getChildren()
container for Vm elements representing virtual machines

Specified by:
getChildren in interface VAppTemplate

getNetworkSection

public VCloudNetworkSection getNetworkSection()
description of the predefined vApp internal networks in this template

Specified by:
getNetworkSection in interface VAppTemplate
Returns:
null if the vAppTemplate is still copying

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.