public final class SnapshotId extends ResourceId
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSelfLink()
Returns a fully qualified URL to the entity.
|
String |
getSnapshot()
Returns the name of the snapshot.
|
int |
hashCode() |
static SnapshotId |
of(String snapshot)
Returns a snapshot identity given the snapshot name.
|
static SnapshotId |
of(String project,
String snapshot)
Returns a snapshot identity given project and snapshot names.
|
getProject, toString
public String getSnapshot()
[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 SnapshotId of(String snapshot)
[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 SnapshotId of(String project, String snapshot)
[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.