public static class Snapshot.Builder extends SnapshotInfo.Builder
Snapshot
objects.Modifier and Type | Method and Description |
---|---|
Snapshot |
build()
Creates a
SnapshotInfo object. |
Snapshot.Builder |
setDescription(String description)
Sets an optional textual description of the snapshot.
|
Snapshot.Builder |
setSnapshotId(SnapshotId snapshotId)
Sets the snapshot identity.
|
Snapshot.Builder |
setSourceDisk(DiskId sourceDisk)
Sets the identity of the source disk used to create the snapshot.
|
public Snapshot.Builder setSnapshotId(SnapshotId snapshotId)
SnapshotInfo.Builder
setSnapshotId
in class SnapshotInfo.Builder
public Snapshot.Builder setDescription(String description)
SnapshotInfo.Builder
setDescription
in class SnapshotInfo.Builder
public Snapshot.Builder setSourceDisk(DiskId sourceDisk)
SnapshotInfo.Builder
setSourceDisk
in class SnapshotInfo.Builder
public Snapshot build()
SnapshotInfo.Builder
SnapshotInfo
object.build
in class SnapshotInfo.Builder
Copyright © 2019 Google LLC. All rights reserved.