public final class SubnetworkId extends ResourceId
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getRegion()
Returns the name of the region this subnetwork belongs to.
|
RegionId |
getRegionId()
Returns the identity of the region this subnetwork belongs to.
|
String |
getSelfLink()
Returns a fully qualified URL to the entity.
|
String |
getSubnetwork()
Returns the name of the subnetwork.
|
int |
hashCode() |
static SubnetworkId |
of(RegionId regionId,
String subnetwork)
Returns a subnetwork identity given the region identity and the subnetwork name.
|
static SubnetworkId |
of(String region,
String subnetwork)
Returns a subnetwork identity given the region and subnetwork names.
|
static SubnetworkId |
of(String project,
String region,
String subnetwork)
Returns a subnetwork identity given project, region and subnetwork names.
|
getProject, toString
public String getRegion()
public RegionId getRegionId()
public String getSubnetwork()
[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 SubnetworkId of(RegionId regionId, String subnetwork)
[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 SubnetworkId of(String region, String subnetwork)
[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 SubnetworkId of(String project, String region, String subnetwork)
[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.