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