public final class InstanceId extends ResourceId
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
instance()
Returns the name of the instance.
|
static InstanceId |
of(String zone,
String instance)
Returns an instance identity given the zone and instance names.
|
static InstanceId |
of(String project,
String zone,
String instance)
Returns an instance identity given project, zone and instance names.
|
static InstanceId |
of(ZoneId zoneId,
String instance)
Returns an instance identity given the zone identity and the instance name.
|
String |
selfLink()
Returns a fully qualified URL to the entity.
|
String |
zone()
Returns the name of the zone this instance belongs to.
|
ZoneId |
zoneId()
Returns the identity of the zone this instance belongs to.
|
project, toStringpublic String instance()
[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 zone()
public ZoneId zoneId()
public String selfLink()
ResourceIdselfLink in class ResourceIdpublic static InstanceId of(ZoneId zoneId, String instance)
[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 InstanceId of(String zone, String instance)
[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 InstanceId of(String project, String zone, String instance)
[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.