org.jclouds.cloudstack.domain
Class TemplateMetadata.Builder
java.lang.Object
org.jclouds.cloudstack.domain.TemplateMetadata.Builder
- Enclosing class:
- TemplateMetadata
public static class TemplateMetadata.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateMetadata.Builder
public TemplateMetadata.Builder()
name
public TemplateMetadata.Builder name(String name)
- Parameters:
name
- the name of the template
osTypeId
public TemplateMetadata.Builder osTypeId(long osTypeId)
- Parameters:
osTypeId
- the ID of the OS Type that best represents the OS of this template.
displayText
public TemplateMetadata.Builder displayText(String displayText)
- Parameters:
displayText
- the display text of the template. This is usually used for display purposes.
snapshotId
public TemplateMetadata.Builder snapshotId(Long snapshotId)
- Parameters:
snapshotId
- the ID of the snapshot the template is being created from.
Either this parameter, or volumeId has to be passed in
volumeId
public TemplateMetadata.Builder volumeId(Long volumeId)
- Parameters:
volumeId
- the ID of the disk volume the template is being created from.
Either this parameter, or snapshotId has to be passed in
virtualMachineId
public TemplateMetadata.Builder virtualMachineId(Long virtualMachineId)
- Parameters:
virtualMachineId
- the ID of the disk volume the template is being created from
passwordEnabled
public TemplateMetadata.Builder passwordEnabled()
- the template supports the password reset feature.
build
public TemplateMetadata build()
Copyright © 2009-2012 jclouds. All Rights Reserved.