public abstract class AttachDisk extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AttachDisk.DiskInterface |
static class |
AttachDisk.InitializeParams |
static class |
AttachDisk.Mode |
static class |
AttachDisk.Type |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
autoDelete()
True if this disk will be deleted when the instance is delete.
|
abstract boolean |
boot()
True if this is a boot disk.
|
static AttachDisk |
create(AttachDisk.Type type,
AttachDisk.Mode mode,
URI source,
String deviceName,
boolean boot,
AttachDisk.InitializeParams initializeParams,
boolean autoDelete,
List<String> licenses,
AttachDisk.DiskInterface diskInterface) |
abstract String |
deviceName()
Must be unique within the instance when specified.
|
abstract AttachDisk.DiskInterface |
diskInterface() |
static AttachDisk |
existingBootDisk(URI existingBootDisk) |
static AttachDisk |
existingDisk(URI existingDisk) |
abstract AttachDisk.InitializeParams |
initializeParams()
Set to automatically create a boot disk
|
abstract List<String> |
licenses() |
abstract AttachDisk.Mode |
mode() |
static AttachDisk |
newBootDisk(URI sourceImage) |
static AttachDisk |
newBootDisk(URI sourceImage,
URI diskType) |
abstract URI |
source()
Use an existingBootDisk
boot disk . |
abstract AttachDisk.Type |
type() |
public abstract AttachDisk.Type type()
@Nullable public abstract AttachDisk.Mode mode()
@Nullable public abstract String deviceName()
public abstract boolean boot()
@Nullable public abstract AttachDisk.InitializeParams initializeParams()
public abstract boolean autoDelete()
@Nullable public abstract AttachDisk.DiskInterface diskInterface()
public static AttachDisk existingBootDisk(URI existingBootDisk)
public static AttachDisk newBootDisk(URI sourceImage)
public static AttachDisk newBootDisk(URI sourceImage, URI diskType)
public static AttachDisk existingDisk(URI existingDisk)
public static AttachDisk create(AttachDisk.Type type, AttachDisk.Mode mode, URI source, String deviceName, boolean boot, AttachDisk.InitializeParams initializeParams, boolean autoDelete, List<String> licenses, AttachDisk.DiskInterface diskInterface)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.