org.jclouds.cloudstack.domain
Class TemplateMetadata
java.lang.Object
org.jclouds.cloudstack.domain.TemplateMetadata
public class TemplateMetadata
- extends Object
- Author:
- Richard Downer
TemplateMetadata
public TemplateMetadata(String name,
long osTypeId,
String displayText)
builder
public static TemplateMetadata.Builder builder()
getSnapshotId
public Long getSnapshotId()
- Returns:
- the ID of the snapshot the template is being created from
setSnapshotId
public void setSnapshotId(Long snapshotId)
getVolumeId
public Long getVolumeId()
- Returns:
- the ID of the disk volume the template is being created from
setVolumeId
public void setVolumeId(Long volumeId)
getVirtualMachineId
public Long getVirtualMachineId()
- Returns:
- Optional, VM ID
setVirtualMachineId
public void setVirtualMachineId(Long virtualMachineId)
getPasswordEnabled
public Boolean getPasswordEnabled()
- Returns:
- true if the template supports the password reset feature; default is false
setPasswordEnabled
public void setPasswordEnabled(Boolean passwordEnabled)
getName
public String getName()
- Returns:
- the name of the template
getOsTypeId
public long getOsTypeId()
- Returns:
- the ID of the OS Type that best represents the OS of this template.
getDisplayText
public String getDisplayText()
- Returns:
- the display text of the template. This is usually used for display purposes.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.