public final class RegionForwardingRuleId extends ForwardingRuleId
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getRegion()
Returns the name of the region this forwarding rule belongs to.
|
RegionId |
getRegionId()
Returns the identity of the region this forwarding rule belongs to.
|
String |
getSelfLink()
Returns a fully qualified URL to the entity.
|
com.google.cloud.compute.deprecated.ForwardingRuleId.Type |
getType()
Returns the type of this forwarding rule identity.
|
int |
hashCode() |
static RegionForwardingRuleId |
of(RegionId regionId,
String rule)
Returns a region forwarding rule identity given the region identity and the rule name.
|
static RegionForwardingRuleId |
of(String region,
String rule)
Returns a region forwarding rule identity given the region and rule names.
|
static RegionForwardingRuleId |
of(String project,
String region,
String rule)
Returns a region forwarding rule identity given project, region and rule names.
|
getRule
getProject, toString
public com.google.cloud.compute.deprecated.ForwardingRuleId.Type getType()
ForwardingRuleId
getType
in class ForwardingRuleId
public String getRegion()
public RegionId getRegionId()
public String getSelfLink()
ResourceId
getSelfLink
in class ResourceId
public static RegionForwardingRuleId of(RegionId regionId, String rule)
[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 RegionForwardingRuleId of(String region, String rule)
[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 RegionForwardingRuleId of(String project, String region, String rule)
[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.