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