public static final class AttachedDisk.CreateDiskConfiguration.Builder extends Object
CreateDiskConfiguration
objects.Modifier and Type | Method and Description |
---|---|
AttachedDisk.CreateDiskConfiguration |
build()
Creates a
CreateDiskConfiguration object. |
AttachedDisk.CreateDiskConfiguration.Builder |
setAutoDelete(Boolean autoDelete)
Sets whether the disk should auto-delete when the instance to which it's attached is
deleted.
|
AttachedDisk.CreateDiskConfiguration.Builder |
setDiskName(String diskName)
Sets the name to be assigned to the disk.
|
AttachedDisk.CreateDiskConfiguration.Builder |
setDiskSizeGb(Long diskSizeGb)
Sets the size of the persistent disk, in GB.
|
AttachedDisk.CreateDiskConfiguration.Builder |
setDiskType(DiskTypeId diskType)
Sets the identity of the disk type.
|
AttachedDisk.CreateDiskConfiguration.Builder |
setSourceImage(ImageId sourceImage)
Sets the identity of the source image used to create the disk.
|
public AttachedDisk.CreateDiskConfiguration.Builder setDiskName(String diskName)
public AttachedDisk.CreateDiskConfiguration.Builder setDiskType(DiskTypeId diskType)
pd-standard
is used.public AttachedDisk.CreateDiskConfiguration.Builder setDiskSizeGb(Long diskSizeGb)
public AttachedDisk.CreateDiskConfiguration.Builder setSourceImage(ImageId sourceImage)
public AttachedDisk.CreateDiskConfiguration.Builder setAutoDelete(Boolean autoDelete)
public AttachedDisk.CreateDiskConfiguration build()
CreateDiskConfiguration
object.Copyright © 2019 Google LLC. All rights reserved.