org.jclouds.googlecomputeengine.domain
Class InstanceTemplate.PersistentDisk
java.lang.Object
org.jclouds.googlecomputeengine.domain.InstanceTemplate.PersistentDisk
- Enclosing class:
- InstanceTemplate
public static class InstanceTemplate.PersistentDisk
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceTemplate.PersistentDisk
public InstanceTemplate.PersistentDisk(InstanceTemplate.PersistentDisk.Mode mode,
URI source,
String deviceName,
Boolean deleteOnTerminate,
Boolean boot)
getMode
public InstanceTemplate.PersistentDisk.Mode getMode()
- Returns:
- the mode in which to attach this disk, either READ_WRITE or READ_ONLY.
getSource
public URI getSource()
- Returns:
- the URL of the persistent disk resource.
getDeviceName
public String getDeviceName()
- Returns:
- Must be unique within the instance when specified. This represents a unique
device name that is reflected into the /dev/ tree of a Linux operating system running within the
instance. If not specified, a default will be chosen by the system.
isDeleteOnTerminate
public boolean isDeleteOnTerminate()
- Returns:
- If true, delete the disk and all its data when the associated instance is deleted.
isBoot
public boolean isBoot()
- Returns:
- If true, boot from this disk.
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.