public class SnapshotDiskConfiguration extends DiskConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotDiskConfiguration.Builder
A builder for
SnapshotDiskConfiguration objects. |
DiskConfiguration.Type
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SnapshotId |
getSourceSnapshot()
Returns the identity of the source snapshot used to create the disk.
|
String |
getSourceSnapshotId()
Returns the service-generated unique id of the snapshot used to create this disk.
|
int |
hashCode() |
static SnapshotDiskConfiguration.Builder |
newBuilder(SnapshotId sourceSnapshot)
Returns a builder for a
SnapshotDiskConfiguration object given the snapshot identity. |
static SnapshotDiskConfiguration |
of(SnapshotId sourceSnapshot)
Returns a
SnapshotDiskConfiguration object given the snapshot identity. |
SnapshotDiskConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
getDiskType, getSizeGb, getType, toString
public SnapshotId getSourceSnapshot()
public String getSourceSnapshotId()
public SnapshotDiskConfiguration.Builder toBuilder()
DiskConfiguration
toBuilder
in class DiskConfiguration
public static SnapshotDiskConfiguration.Builder newBuilder(SnapshotId sourceSnapshot)
SnapshotDiskConfiguration
object given the snapshot identity.public static SnapshotDiskConfiguration of(SnapshotId sourceSnapshot)
SnapshotDiskConfiguration
object given the snapshot identity.Copyright © 2019 Google LLC. All rights reserved.