public class Template extends Object implements Comparable<Template>
Modifier and Type | Class and Description |
---|---|
static class |
Template.Builder<T extends Template.Builder<T>> |
static class |
Template.Format |
static class |
Template.Status |
static class |
Template.Type |
Modifier | Constructor and Description |
---|---|
protected |
Template(String id,
String displayText,
String domain,
String domainId,
String account,
String accountId,
String zone,
String zoneId,
String OSType,
String OSTypeId,
String name,
Template.Type type,
Template.Status 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,
String jobId,
String jobStatus,
String checksum,
String hostId,
String hostName,
String sourceTemplateId,
String templateTag) |
Modifier and Type | Method and Description |
---|---|
static Template.Builder<?> |
builder() |
int |
compareTo(Template o) |
boolean |
equals(Object obj) |
String |
getAccount() |
String |
getAccountId() |
String |
getChecksum() |
Date |
getCreated() |
String |
getDisplayText() |
String |
getDomain() |
String |
getDomainId() |
Template.Format |
getFormat() |
String |
getHostId() |
String |
getHostName() |
String |
getHypervisor() |
String |
getId() |
String |
getJobId() |
String |
getJobStatus() |
String |
getName() |
String |
getOSType() |
String |
getOSTypeId() |
Date |
getRemoved() |
Long |
getSize() |
String |
getSourceTemplateId() |
Template.Status |
getStatus()
Retrieve the status of the template.
|
String |
getTemplateTag() |
Template.Type |
getType() |
String |
getZone() |
String |
getZoneId() |
int |
hashCode() |
boolean |
isBootable() |
boolean |
isCrossZones() |
boolean |
isExtractable() |
boolean |
isFeatured() |
boolean |
isPasswordEnabled() |
boolean |
ispublic() |
boolean |
isReady() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
Template.Builder<?> |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"id","displaytext","domain","domainid","account","accountid","zonename","zoneid","ostypename","ostypeid","name","templatetype","status","format","hypervisor","size","created","removed","crossZones","bootable","isextractable","isfeatured","ispublic","isready","passwordenabled","jobid","jobstatus","checksum","hostId","hostname","sourcetemplateid","templatetag"}) protected Template(String id, @Nullable String displayText, @Nullable String domain, @Nullable String domainId, @Nullable String account, @Nullable String accountId, @Nullable String zone, @Nullable String zoneId, @Nullable String OSType, @Nullable String OSTypeId, @Nullable String name, @Nullable Template.Type type, @Nullable Template.Status status, @Nullable Template.Format format, @Nullable String hypervisor, @Nullable Long size, @Nullable Date created, @Nullable Date removed, boolean crossZones, boolean bootable, boolean extractable, boolean featured, boolean ispublic, boolean ready, boolean passwordEnabled, @Nullable String jobId, @Nullable String jobStatus, @Nullable String checksum, @Nullable String hostId, @Nullable String hostName, @Nullable String sourceTemplateId, @Nullable String templateTag)
public static Template.Builder<?> builder()
public Template.Builder<?> toBuilder()
public String getId()
@Nullable public String getDomain()
@Nullable public String getDomainId()
@Nullable public String getAccount()
@Nullable public String getAccountId()
@Nullable public String getZone()
@Nullable public String getZoneId()
@Nullable public String getOSType()
@Nullable public String getOSTypeId()
@Nullable public Template.Type getType()
@Nullable public Template.Status getStatus()
Note that in CloudStack 2.2.x through to at least 3.0.4, the possible status values are not well defined by CloudStack. CloudStack returns a plain-text English string for UI display, which jclouds attempts to parse into an enumeration, but the mapping is incomplete. This method should be reliable for the common cases, but it is possible (particularly for error statuses) that this method will return UNRECOGNIZED.
@Nullable public Template.Format getFormat()
@Nullable public String getHypervisor()
public boolean isCrossZones()
public boolean isBootable()
public boolean isExtractable()
public boolean isFeatured()
public boolean ispublic()
public boolean isReady()
public boolean isPasswordEnabled()
@Nullable public String getJobId()
@Nullable public String getJobStatus()
@Nullable public String getHostId()
@Nullable public String getHostName()
@Nullable public String getSourceTemplateId()
protected com.google.common.base.Objects.ToStringHelper string()
public int compareTo(Template o)
compareTo
in interface Comparable<Template>
Copyright © 2009-2013 jclouds. All Rights Reserved.