@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}/policies/{policy}.
|
static class |
PolicyName.FolderPolicyBuilder
Builder for folders/{folder}/policies/{policy}.
|
static class |
PolicyName.OrganizationPolicyBuilder
Builder for organizations/{organization}/policies/{policy}.
|
Modifier | Constructor and Description |
---|---|
protected |
PolicyName()
Deprecated.
|
@Deprecated protected PolicyName()
public String getProject()
public String getPolicy()
public String getFolder()
public String getOrganization()
public static PolicyName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.Builder newProjectPolicyBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.FolderPolicyBuilder newFolderPolicyBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.OrganizationPolicyBuilder newOrganizationPolicyBuilder()
public PolicyName.Builder toBuilder()
public static PolicyName of(String project, String policy)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofProjectPolicyName(String project, String policy)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofFolderPolicyName(String folder, String policy)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofOrganizationPolicyName(String organization, String policy)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectPolicyName(String project, String policy)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatFolderPolicyName(String folder, String policy)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationPolicyName(String organization, String policy)
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.ResourceName
public String getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.resourcenames.ResourceName
Copyright © 2021 Google LLC. All rights reserved.