public static final class AttachedDisk.PersistentDiskConfiguration.Builder extends Object
PersistentDiskConfiguration objects.| Modifier and Type | Method and Description |
|---|---|
AttachedDisk.PersistentDiskConfiguration |
build()
Creates a
PersistentDiskConfiguration object. |
AttachedDisk.PersistentDiskConfiguration.Builder |
setAutoDelete(boolean autoDelete)
Sets whether the disk should auto-delete when the instance to which it's attached is
deleted.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
setBoot(boolean boot)
Sets whether to use the attached disk as a boot disk.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
setMode(AttachedDisk.PersistentDiskConfiguration.Mode mode)
Sets the mode in which to attach this disk.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
setSourceDisk(DiskId sourceDisk)
Sets the identity of the persistent disk to be attached.
|
public AttachedDisk.PersistentDiskConfiguration.Builder setSourceDisk(DiskId sourceDisk)
public AttachedDisk.PersistentDiskConfiguration.Builder setMode(AttachedDisk.PersistentDiskConfiguration.Mode mode)
AttachedDisk.PersistentDiskConfiguration.Mode.READ_WRITE mode.public AttachedDisk.PersistentDiskConfiguration.Builder setBoot(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 setAutoDelete(boolean autoDelete)
public AttachedDisk.PersistentDiskConfiguration build()
PersistentDiskConfiguration object.Copyright © 2019 Google LLC. All rights reserved.