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