public class AttachDiskOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttachDiskOptions.DiskMode |
static class |
AttachDiskOptions.DiskType |
| Constructor and Description |
|---|
AttachDiskOptions() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public AttachDiskOptions.DiskType getType()
public AttachDiskOptions.DiskMode getMode()
public URI getSource()
public String getDeviceName()
public boolean getBoot()
public AttachDiskOptions type(AttachDiskOptions.DiskType type)
getType()public AttachDiskOptions mode(AttachDiskOptions.DiskMode mode)
getMode()public AttachDiskOptions source(URI source)
getSource()public AttachDiskOptions deviceName(String deviceName)
getDeviceName()public AttachDiskOptions boot(boolean boot)
getBoot()Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.