org.jclouds.cloudstack.domain
Class Template

java.lang.Object
  extended by org.jclouds.cloudstack.domain.Template
All Implemented Interfaces:
Comparable<Template>

public class Template
extends Object
implements Comparable<Template>

Author:
Adrian Cole

Nested Class Summary
static class Template.Builder
           
static class Template.Format
           
static class Template.Type
           
 
Constructor Summary
Template(long id, String displayText, String domain, long domainId, String account, long accountId, String zone, long zoneId, String oSType, long oSTypeId, String name, Template.Type type, String status, Template.Format format, String hypervisor, Long size, Date created, Date removed, boolean crossZones, boolean bootable, boolean extractable, boolean featured, boolean ispublic, boolean ready, boolean passwordEnabled, Long jobId, String jobStatus, String checksum, Long hostId, String hostName, Long sourceTemplateId, String templateTag)
           
 
Method Summary
static Template.Builder builder()
           
 int compareTo(Template arg0)
           
 boolean equals(Object obj)
           
 String getAccount()
           
 long getAccountId()
           
 String getChecksum()
           
 Date getCreated()
           
 String getDisplayText()
           
 String getDomain()
           
 long getDomainId()
           
 Template.Format getFormat()
           
 Long getHostId()
           
 String getHostName()
           
 String getHypervisor()
           
 long getId()
           
 Long getJobId()
           
 String getJobStatus()
           
 String getName()
           
 String getOSType()
           
 long getOSTypeId()
           
 Date getRemoved()
           
 Long getSize()
           
 Long getSourceTemplateId()
           
 String getStatus()
           
 String getTemplateTag()
           
 Template.Type getType()
           
 String getZone()
           
 long getZoneId()
           
 int hashCode()
           
 boolean isBootable()
           
 boolean isCrossZones()
           
 boolean isExtractable()
           
 boolean isFeatured()
           
 boolean isPasswordEnabled()
           
 boolean isPublic()
           
 boolean isReady()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Template

public Template(long id,
                String displayText,
                String domain,
                long domainId,
                String account,
                long accountId,
                String zone,
                long zoneId,
                String oSType,
                long oSTypeId,
                String name,
                Template.Type type,
                String status,
                Template.Format format,
                String hypervisor,
                Long size,
                Date created,
                Date removed,
                boolean crossZones,
                boolean bootable,
                boolean extractable,
                boolean featured,
                boolean ispublic,
                boolean ready,
                boolean passwordEnabled,
                Long jobId,
                String jobStatus,
                String checksum,
                Long hostId,
                String hostName,
                Long sourceTemplateId,
                String templateTag)
Method Detail

builder

public static Template.Builder builder()

getId

public long getId()
Returns:
Template id

getDisplayText

public String getDisplayText()
Returns:
the display text of the template

getDomain

public String getDomain()
Returns:
the name of the domain to which the template beLongs

getDomainId

public long getDomainId()
Returns:
the ID of the domain to which the template beLongs

getAccount

public String getAccount()
Returns:
the name of the account to which the template beLongs

getAccountId

public long getAccountId()
Returns:
the ID of the account to which the template beLongs

getZone

public String getZone()
Returns:
the name of the zone to which the template beLongs

getZoneId

public long getZoneId()
Returns:
the ID of the zone to which the template beLongs

getOSType

public String getOSType()
Returns:
the name of the OS type to which the template beLongs

getOSTypeId

public long getOSTypeId()
Returns:
the ID of the OS type to which the template beLongs

getName

public String getName()
Returns:
Template name

getStatus

public String getStatus()
Returns:

getFormat

public Template.Format getFormat()
Returns:
the format of the template.

getHypervisor

public String getHypervisor()
Returns:
the hypervisor on which the template runs

getSize

public Long getSize()
Returns:
the size of the template in kilobytes

getType

public Template.Type getType()
Returns:
the type of the template

getCreated

public Date getCreated()
Returns:
the date this template was created

getRemoved

public Date getRemoved()
Returns:
the date this template was removed

isCrossZones

public boolean isCrossZones()
Returns:
true if the template is managed across all Zones, false otherwise

isBootable

public boolean isBootable()
Returns:
true if the ISO is bootable, false otherwise

isExtractable

public boolean isExtractable()
Returns:
true if the template is extractable, false otherwise

isFeatured

public boolean isFeatured()
Returns:
true if this template is a featured template, false otherwise

isPublic

public boolean isPublic()
Returns:
true if this template is a public template, false otherwise

isReady

public boolean isReady()
Returns:
true if the template is ready to be deployed from, false otherwise

isPasswordEnabled

public boolean isPasswordEnabled()
Returns:
true if the reset password feature is enabled, false otherwise

getJobId

@Nullable
public Long getJobId()
Returns:
shows the current pending asynchronous job ID, or null if current pending jobs are acting on the template

getJobStatus

public String getJobStatus()
Returns:
shows the current pending asynchronous job status

getChecksum

public String getChecksum()
Returns:
checksum of the template

getHostId

public Long getHostId()
Returns:
the ID of the secondary storage host for the template

getHostName

public String getHostName()
Returns:
the name of the secondary storage host for the template

getSourceTemplateId

public Long getSourceTemplateId()
Returns:
the template ID of the parent template if present

getTemplateTag

public String getTemplateTag()
Returns:
the tag of this template

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Template arg0)
Specified by:
compareTo in interface Comparable<Template>


Copyright © 2009-2012 jclouds. All Rights Reserved.