org.jclouds.cloudstack.domain
Class TemplateMetadata

java.lang.Object
  extended by org.jclouds.cloudstack.domain.TemplateMetadata

public class TemplateMetadata
extends Object

Author:
Richard Downer

Nested Class Summary
static class TemplateMetadata.Builder
           
 
Constructor Summary
TemplateMetadata(String name, long osTypeId, String displayText)
           
 
Method Summary
static TemplateMetadata.Builder builder()
           
 boolean equals(Object o)
           
 String getDisplayText()
           
 String getName()
           
 long getOsTypeId()
           
 Boolean getPasswordEnabled()
           
 Long getSnapshotId()
           
 Long getVirtualMachineId()
           
 Long getVolumeId()
           
 int hashCode()
           
 void setPasswordEnabled(Boolean passwordEnabled)
           
 void setSnapshotId(Long snapshotId)
           
 void setVirtualMachineId(Long virtualMachineId)
           
 void setVolumeId(Long volumeId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateMetadata

public TemplateMetadata(String name,
                        long osTypeId,
                        String displayText)
Method Detail

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.