public class SnapshotInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotInfo.Builder
A builder for
SnapshotInfo objects. |
static class |
SnapshotInfo.Status
The status of a Google Compute Engine snapshot.
|
static class |
SnapshotInfo.StorageBytesStatus
An indicator of whether
getStorageBytes() is in a stable state or it is
being adjusted as a result of shared storage reallocation. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getCreationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
getDescription()
Returns a textual description of the snapshot.
|
Long |
getDiskSizeGb()
Returns the size of the snapshot (in GB).
|
String |
getGeneratedId()
Returns the service-generated unique identifier for the snapshot.
|
List<LicenseId> |
getLicenses()
Returns all applicable publicly visible licenses.
|
SnapshotId |
getSnapshotId()
Returns the snapshot identity.
|
DiskId |
getSourceDisk()
Returns the identity of the source disk used to create this snapshot.
|
String |
getSourceDiskId()
Returns the service-generated unique id of the disk used to create this snapshot.
|
SnapshotInfo.Status |
getStatus()
Returns the status of the snapshot.
|
Long |
getStorageBytes()
Returns the size of the the storage used by the snapshot.
|
SnapshotInfo.StorageBytesStatus |
getStorageBytesStatus()
Indicates whether
getStorageBytes() is in a stable state or it is being
adjusted as a result of shared storage reallocation. |
int |
hashCode() |
static SnapshotInfo.Builder |
newBuilder(SnapshotId snapshotId,
DiskId source)
Returns a builder for a
SnapshotInfo object given the snapshot identity and a source
disk identity. |
static SnapshotInfo |
of(SnapshotId snapshotId,
DiskId source)
Returns a
SnapshotInfo object given the snapshot identity and a source disk identity. |
SnapshotInfo.Builder |
toBuilder()
Returns a builder for the current snapshot.
|
String |
toString() |
public String getGeneratedId()
public Long getCreationTimestamp()
public SnapshotId getSnapshotId()
public String getDescription()
public SnapshotInfo.Status getStatus()
READY
.public Long getDiskSizeGb()
public DiskId getSourceDisk()
public String getSourceDiskId()
public Long getStorageBytes()
public SnapshotInfo.StorageBytesStatus getStorageBytesStatus()
getStorageBytes()
is in a stable state or it is being
adjusted as a result of shared storage reallocation. SnapshotInfo.StorageBytesStatus.UPDATING
indicates that the size of the snapshot is being updated. SnapshotInfo.StorageBytesStatus.UP_TO_DATE
indicates that the size of the snapshot is up-to-date.public SnapshotInfo.Builder toBuilder()
public static SnapshotInfo.Builder newBuilder(SnapshotId snapshotId, DiskId source)
SnapshotInfo
object given the snapshot identity and a source
disk identity.public static SnapshotInfo of(SnapshotId snapshotId, DiskId source)
SnapshotInfo
object given the snapshot identity and a source disk identity.Copyright © 2019 Google LLC. All rights reserved.