public class DiskInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DiskInfo.Builder
Builder for
DiskInfo objects. |
static class |
DiskInfo.CreationStatus
The status of disk creation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<InstanceId> |
getAttachedInstances()
Returns all the identities of the instances this disk is attached to.
|
<T extends DiskConfiguration> |
getConfiguration()
Returns the disk configuration.
|
DiskInfo.CreationStatus |
getCreationStatus()
Returns the creation status of the disk.
|
Long |
getCreationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
getDescription()
Returns a textual description of the disk.
|
DiskId |
getDiskId()
Returns the disk identity.
|
String |
getGeneratedId()
Returns the service-generated unique identifier for the disk.
|
Long |
getLastAttachTimestamp()
Returns the last attach timestamp in milliseconds since epoch.
|
Long |
getLastDetachTimestamp()
Returns the last detach timestamp in milliseconds since epoch.
|
List<LicenseId> |
getLicenses()
Returns all applicable publicly visible licenses for the disk.
|
int |
hashCode() |
static DiskInfo.Builder |
newBuilder(DiskId diskId,
DiskConfiguration configuration)
Returns a builder for a
DiskInfo object given its identity and configuration. |
static DiskInfo |
of(DiskId diskId,
DiskConfiguration configuration)
Returns a
DiskInfo object given its identity and configuration. |
DiskInfo.Builder |
toBuilder()
Returns a builder for the object.
|
String |
toString() |
public Long getCreationTimestamp()
public String getGeneratedId()
public <T extends DiskConfiguration> T getConfiguration()
public DiskId getDiskId()
public DiskInfo.CreationStatus getCreationStatus()
public String getDescription()
public List<LicenseId> getLicenses()
public List<InstanceId> getAttachedInstances()
public Long getLastAttachTimestamp()
public Long getLastDetachTimestamp()
public DiskInfo.Builder toBuilder()
public static DiskInfo.Builder newBuilder(DiskId diskId, DiskConfiguration configuration)
DiskInfo
object given its identity and configuration. Use
StandardDiskConfiguration
to create a simple disk given its type and size. Use SnapshotDiskConfiguration
to create a disk from a snapshot. Use ImageDiskConfiguration
to create a disk from a disk image.public static DiskInfo of(DiskId diskId, DiskConfiguration configuration)
DiskInfo
object given its identity and configuration. Use StandardDiskConfiguration
to create a simple disk given its type and size. Use SnapshotDiskConfiguration
to create a disk from a snapshot. Use ImageDiskConfiguration
to create a disk from a disk image.Copyright © 2019 Google LLC. All rights reserved.