public final class DiskId extends ResourceId
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisk()
Returns the name of the disk.
|
String |
getSelfLink()
Returns a fully qualified URL to the entity.
|
String |
getZone()
Returns the name of the zone this disk belongs to.
|
ZoneId |
getZoneId()
Returns the identity of the zone this disk belongs to.
|
int |
hashCode() |
static DiskId |
of(String zone,
String disk)
Returns a disk identity given the zone and disk names.
|
static DiskId |
of(String project,
String zone,
String disk)
Returns a disk identity given project, zone and disks names.
|
static DiskId |
of(ZoneId zoneId,
String disk)
Returns a disk identity given the zone identity and the disk name.
|
getProject, toString
public String getZone()
public ZoneId getZoneId()
public String getDisk()
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.public String getSelfLink()
ResourceId
getSelfLink
in class ResourceId
public static DiskId of(ZoneId zoneId, String disk)
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a
lowercase letter, and all following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.public static DiskId of(String zone, String disk)
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.public static DiskId of(String project, String zone, String disk)
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a
lowercase letter, and all following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.Copyright © 2019 Google LLC. All rights reserved.