public final class SnapshotId extends ResourceId
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
String |
selfLink()
Returns a fully qualified URL to the entity.
|
String |
snapshot()
Returns the name of the snapshot.
|
project, toStringpublic 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 String selfLink()
ResourceIdselfLink in class ResourceIdpublic 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 © 2016 Google. All rights reserved.