org.jclouds.googlecomputeengine.domain
Class InstanceTemplate.PersistentDisk

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.InstanceTemplate.PersistentDisk
Enclosing class:
InstanceTemplate

public static class InstanceTemplate.PersistentDisk
extends Object


Nested Class Summary
static class InstanceTemplate.PersistentDisk.Mode
           
 
Constructor Summary
InstanceTemplate.PersistentDisk(InstanceTemplate.PersistentDisk.Mode mode, URI source, String deviceName, Boolean deleteOnTerminate, Boolean boot)
           
 
Method Summary
 String getDeviceName()
           
 InstanceTemplate.PersistentDisk.Mode getMode()
           
 URI getSource()
           
 boolean isBoot()
           
 boolean isDeleteOnTerminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceTemplate.PersistentDisk

public InstanceTemplate.PersistentDisk(InstanceTemplate.PersistentDisk.Mode mode,
                                       URI source,
                                       String deviceName,
                                       Boolean deleteOnTerminate,
                                       Boolean boot)
Method Detail

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-2014 The Apache Software Foundation. All Rights Reserved.