public static class ImageDiskConfiguration.Builder extends DiskConfiguration.Builder<ImageDiskConfiguration,ImageDiskConfiguration.Builder>
ImageDiskConfiguration
objects.Modifier and Type | Method and Description |
---|---|
ImageDiskConfiguration |
build()
Creates an
ImageDiskConfiguration object. |
ImageDiskConfiguration.Builder |
setSizeGb(Long sizeGb)
Sets the size of the persistent disk, in GB.
|
ImageDiskConfiguration.Builder |
setSourceImage(ImageId sourceImage)
Sets the identity of the source image used to create the disk.
|
self, setDiskType
public ImageDiskConfiguration.Builder setSizeGb(Long sizeGb)
setSizeGb
in class DiskConfiguration.Builder<ImageDiskConfiguration,ImageDiskConfiguration.Builder>
public ImageDiskConfiguration.Builder setSourceImage(ImageId sourceImage)
public ImageDiskConfiguration build()
ImageDiskConfiguration
object.build
in class DiskConfiguration.Builder<ImageDiskConfiguration,ImageDiskConfiguration.Builder>
Copyright © 2019 Google LLC. All rights reserved.