org.jclouds.googlecomputeengine.options
Class AttachDiskOptions

java.lang.Object
  extended by org.jclouds.googlecomputeengine.options.AttachDiskOptions

public class AttachDiskOptions
extends Object

Options for attaching disks to instances.

Author:
Andrew Bayer
See Also:

Nested Class Summary
static class AttachDiskOptions.DiskMode
           
static class AttachDiskOptions.DiskType
           
 
Constructor Summary
AttachDiskOptions()
           
 
Method Summary
 AttachDiskOptions boot(boolean boot)
           
 AttachDiskOptions deviceName(String deviceName)
           
 boolean getBoot()
          Indicates that this is a boot disk.
 String getDeviceName()
          The device name on the instance - optional.
 AttachDiskOptions.DiskMode getMode()
          The disk mode
 URI getSource()
          The URI of the source disk - optional, if DiskType.SCRATCH is used.
 AttachDiskOptions.DiskType getType()
          The disk type
 AttachDiskOptions mode(AttachDiskOptions.DiskMode mode)
           
 AttachDiskOptions source(URI source)
           
 AttachDiskOptions type(AttachDiskOptions.DiskType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachDiskOptions

public AttachDiskOptions()
Method Detail

getType

public AttachDiskOptions.DiskType getType()
The disk type

Returns:
the disk type.

getMode

public AttachDiskOptions.DiskMode getMode()
The disk mode

Returns:
the disk mode

getSource

public URI getSource()
The URI of the source disk - optional, if DiskType.SCRATCH is used.

Returns:
the URI

getDeviceName

public String getDeviceName()
The device name on the instance - optional.

Returns:
the device name

getBoot

public boolean getBoot()
Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.

Returns:
true if this is a boot disk, false otherwise

type

public AttachDiskOptions type(AttachDiskOptions.DiskType type)
See Also:
getType()

mode

public AttachDiskOptions mode(AttachDiskOptions.DiskMode mode)
See Also:
getMode()

source

public AttachDiskOptions source(URI source)
See Also:
getSource()

deviceName

public AttachDiskOptions deviceName(String deviceName)
See Also:
getDeviceName()

boot

public AttachDiskOptions boot(boolean boot)
See Also:
getBoot()


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