public static final class AttachedDisk.Builder extends Object
AttachedDisk objects.| Modifier and Type | Method and Description |
|---|---|
AttachedDisk |
build()
Creates an
AttachedDisk object. |
AttachedDisk.Builder |
setConfiguration(AttachedDisk.AttachedDiskConfiguration configuration)
Sets the attached disk configuration.
|
AttachedDisk.Builder |
setDeviceName(String deviceName)
Sets the unique device name of your choice that is reflected into the
/dev/disk/by-id/google-* tree of a Linux operating system running within the
instance. |
AttachedDisk.Builder |
setIndex(Integer index)
Sets a zero-based index to this disk, where 0 is reserved for the boot disk.
|
public AttachedDisk.Builder setDeviceName(String deviceName)
/dev/disk/by-id/google-* tree of a Linux operating system running within the
instance. This name can be used to reference the device for mounting, resizing, and so on,
from within the instance. If not specified, the service chooses a default device name to
apply to this disk, in the form persistent-disks-x, where x is a number assigned by
Google Compute Engine.public AttachedDisk.Builder setIndex(Integer index)
public AttachedDisk.Builder setConfiguration(AttachedDisk.AttachedDiskConfiguration configuration)
AttachedDisk.ScratchDiskConfiguration to attach a
scratch disk to the instance. Use AttachedDisk.PersistentDiskConfiguration to attach a
persistent disk to the instance. Use AttachedDisk.CreateDiskConfiguration to create and attach
a new persistent disk.public AttachedDisk build()
AttachedDisk object.Copyright © 2018 Google LLC. All rights reserved.