Class Template

    • Method Detail

      • getId

        public String getId()
        Returns:
        Template id
      • getDisplayText

        @Nullable
        public String getDisplayText()
        Returns:
        the display text of the template
      • getDomain

        @Nullable
        public String getDomain()
        Returns:
        the name of the domain to which the template beLongs
      • getDomainId

        @Nullable
        public String getDomainId()
        Returns:
        the ID of the domain to which the template beLongs
      • getAccount

        @Nullable
        public String getAccount()
        Returns:
        the name of the account to which the template beLongs
      • getAccountId

        @Nullable
        public String getAccountId()
        Returns:
        the ID of the account to which the template beLongs
      • getZone

        @Nullable
        public String getZone()
        Returns:
        the name of the zone to which the template beLongs
      • getZoneId

        @Nullable
        public String getZoneId()
        Returns:
        the ID of the zone to which the template beLongs
      • getOSType

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

        @Nullable
        public String getOSTypeId()
        Returns:
        the ID of the OS type to which the template beLongs
      • getStatus

        @Nullable
        public Template.Status getStatus()
        Retrieve the status of the template.

        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.

        Returns:
        status of the template
      • getHypervisor

        @Nullable
        public String getHypervisor()
        Returns:
        the hypervisor on which the template runs
      • getSize

        @Nullable
        public Long getSize()
        Returns:
        the size of the template in kilobytes
      • getCreated

        @Nullable
        public Date getCreated()
        Returns:
        the date this template was created
      • getRemoved

        @Nullable
        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()
      • 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 String getJobId()
        Returns:
        shows the current pending asynchronous job ID, or null if current pending jobs are acting on the template
      • getJobStatus

        @Nullable
        public String getJobStatus()
        Returns:
        shows the current pending asynchronous job status
      • getChecksum

        @Nullable
        public String getChecksum()
        Returns:
        checksum of the template
      • getHostId

        @Nullable
        public String getHostId()
        Returns:
        the ID of the secondary storage host for the template
      • getHostName

        @Nullable
        public String getHostName()
        Returns:
        the name of the secondary storage host for the template
      • getSourceTemplateId

        @Nullable
        public String getSourceTemplateId()
        Returns:
        the template ID of the parent template if present
      • getTemplateTag

        @Nullable
        public String getTemplateTag()
        Returns:
        the tag of this template
      • getTags

        @Nullable
        public Set<Tag> getTags()
        Returns:
        the tags on this template
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()