public final class NetworkId extends ResourceId
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNetwork()
Returns the name of the network.
|
String |
getSelfLink()
Returns a fully qualified URL to the entity.
|
int |
hashCode() |
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.
|
getProject, toString
public String getNetwork()
[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 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 © 2019 Google LLC. All rights reserved.