public static final class AttachedDisk.PersistentDiskConfiguration.Builder extends Object
PersistentDiskConfiguration objects.| Modifier and Type | Method and Description |
|---|---|
AttachedDisk.PersistentDiskConfiguration.Builder |
autoDelete(boolean autoDelete)
Sets whether the disk should auto-delete when the instance to which it's attached is
deleted.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
boot(boolean boot)
Sets whether to use the attached disk as a boot disk.
|
AttachedDisk.PersistentDiskConfiguration |
build()
Creates a
PersistentDiskConfiguration object. |
AttachedDisk.PersistentDiskConfiguration.Builder |
mode(AttachedDisk.PersistentDiskConfiguration.Mode mode)
Sets the mode in which to attach this disk.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
sourceDisk(DiskId sourceDisk)
Sets the identity of the persistent disk to be attached.
|
public AttachedDisk.PersistentDiskConfiguration.Builder sourceDisk(DiskId sourceDisk)
public AttachedDisk.PersistentDiskConfiguration.Builder mode(AttachedDisk.PersistentDiskConfiguration.Mode mode)
AttachedDisk.PersistentDiskConfiguration.Mode.READ_WRITE mode.public AttachedDisk.PersistentDiskConfiguration.Builder boot(boolean boot)
true the virtual machine
instance will use the first partition of the disk for its root filesystem. If not
specified, the isk is not used as a boot disk.public AttachedDisk.PersistentDiskConfiguration.Builder autoDelete(boolean autoDelete)
public AttachedDisk.PersistentDiskConfiguration build()
PersistentDiskConfiguration object.Copyright © 2016 Google. All rights reserved.