org.jclouds.googlecomputeengine.domain
Class Instance.PersistentAttachedDisk

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Instance.AttachedDisk
      extended by org.jclouds.googlecomputeengine.domain.Instance.PersistentAttachedDisk
Enclosing class:
Instance

public static class Instance.PersistentAttachedDisk
extends Instance.AttachedDisk


Nested Class Summary
static class Instance.PersistentAttachedDisk.Builder
           
static class Instance.PersistentAttachedDisk.Mode
           
 
Constructor Summary
Instance.PersistentAttachedDisk(Instance.PersistentAttachedDisk.Mode mode, URI source, String deviceName, Integer index, boolean deleteOnTerminate, boolean boot)
           
 
Method Summary
static Instance.PersistentAttachedDisk.Builder builder()
           
 com.google.common.base.Optional<String> getDeviceName()
           
 Instance.PersistentAttachedDisk.Mode getMode()
           
 URI getSource()
           
 String getSourceDiskName()
           
 boolean isBoot()
           
 boolean isDeleteOnTerminate()
           
 boolean isPersistent()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 
Methods inherited from class org.jclouds.googlecomputeengine.domain.Instance.AttachedDisk
ephemeralDiskAtIndex, equals, getIndex, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance.PersistentAttachedDisk

@ConstructorProperties(value={"mode","source","deviceName","index","deleteOnTerminate","boot"})
public Instance.PersistentAttachedDisk(Instance.PersistentAttachedDisk.Mode mode,
                                                                  URI source,
                                                                  String deviceName,
                                                                  Integer index,
                                                                  boolean deleteOnTerminate,
                                                                  boolean boot)
Method Detail

isPersistent

public boolean isPersistent()
Overrides:
isPersistent in class Instance.AttachedDisk

getMode

public Instance.PersistentAttachedDisk.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.

getSourceDiskName

public String getSourceDiskName()
Returns:
the Name of the persistent disk resource

getDeviceName

public com.google.common.base.Optional<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, this is the boot disk for this instance.

builder

public static Instance.PersistentAttachedDisk.Builder builder()

string

protected com.google.common.base.Objects.ToStringHelper string()

Overrides:
string in class Instance.AttachedDisk


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.