@Generated(value="by gapic-generator-java") public class PolicyName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and Description |
|---|---|
static class |
PolicyName.Builder
Builder for projects/{project}/policy.
|
static class |
PolicyName.LocationBuilder
Builder for locations/{location}/policy.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PolicyName()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static String |
format(String project) |
static String |
formatLocationName(String location) |
static String |
formatProjectName(String project) |
String |
getFieldValue(String fieldName) |
Map<String,String> |
getFieldValuesMap() |
String |
getLocation() |
String |
getProject() |
int |
hashCode() |
static boolean |
isParsableFrom(String formattedString) |
static PolicyName.Builder |
newBuilder() |
static PolicyName.LocationBuilder |
newLocationBuilder() |
static PolicyName.Builder |
newProjectBuilder() |
static PolicyName |
of(String project) |
static PolicyName |
ofLocationName(String location) |
static PolicyName |
ofProjectName(String project) |
static PolicyName |
parse(String formattedString) |
static List<PolicyName> |
parseList(List<String> formattedStrings) |
PolicyName.Builder |
toBuilder() |
String |
toString() |
static List<String> |
toStringList(List<PolicyName> values) |
@Deprecated protected PolicyName()
public String getProject()
public String getLocation()
public static PolicyName.Builder newBuilder()
public static PolicyName.Builder newProjectBuilder()
public static PolicyName.LocationBuilder newLocationBuilder()
public PolicyName.Builder toBuilder()
public static PolicyName of(String project)
public static PolicyName ofProjectName(String project)
public static PolicyName ofLocationName(String location)
public static PolicyName parse(String formattedString)
public static List<PolicyName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<PolicyName> values)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap in interface com.google.api.resourcenames.ResourceNamepublic String getFieldValue(String fieldName)
getFieldValue in interface com.google.api.resourcenames.ResourceNameCopyright © 2024 Google LLC. All rights reserved.