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
storageBytes() is in a stable state or it is being
adjusted as a result of shared storage reallocation. |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotInfo.Builder |
builder(SnapshotId snapshotId,
DiskId source)
Returns a builder for a
SnapshotInfo object given the snapshot identity and a source
disk identity. |
Long |
creationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
description()
Returns a textual description of the snapshot.
|
Long |
diskSizeGb()
Returns the size of the snapshot (in GB).
|
boolean |
equals(Object obj) |
String |
generatedId()
Returns the service-generated unique identifier for the snapshot.
|
int |
hashCode() |
List<LicenseId> |
licenses()
Returns all applicable publicly visible licenses.
|
static SnapshotInfo |
of(SnapshotId snapshotId,
DiskId source)
Returns a
SnapshotInfo object given the snapshot identity and a source disk identity. |
SnapshotId |
snapshotId()
Returns the snapshot identity.
|
DiskId |
sourceDisk()
Returns the identity of the source disk used to create this snapshot.
|
String |
sourceDiskId()
Returns the service-generated unique id of the disk used to create this snapshot.
|
SnapshotInfo.Status |
status()
Returns the status of the snapshot.
|
Long |
storageBytes()
Returns the size of the the storage used by the snapshot.
|
SnapshotInfo.StorageBytesStatus |
storageBytesStatus()
Indicates whether
storageBytes() is in a stable state or it is being
adjusted as a result of shared storage reallocation. |
SnapshotInfo.Builder |
toBuilder()
Returns a builder for the current snapshot.
|
String |
toString() |
public String generatedId()
public Long creationTimestamp()
public SnapshotId snapshotId()
public String description()
public SnapshotInfo.Status status()
READY.public Long diskSizeGb()
public DiskId sourceDisk()
public String sourceDiskId()
public Long storageBytes()
public SnapshotInfo.StorageBytesStatus storageBytesStatus()
storageBytes() 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 builder(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 © 2016 Google. All rights reserved.