Package com.google.cloud.orgpolicy.v2
Class PolicyName
- java.lang.Object
-
- com.google.cloud.orgpolicy.v2.PolicyName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class PolicyName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PolicyName()
Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
PolicyName
@Deprecated protected PolicyName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getPolicy
public String getPolicy()
-
getFolder
public String getFolder()
-
getOrganization
public String getOrganization()
-
newBuilder
public static PolicyName.Builder newBuilder()
-
newProjectPolicyBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.Builder newProjectPolicyBuilder()
-
newFolderPolicyBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.FolderPolicyBuilder newFolderPolicyBuilder()
-
newOrganizationPolicyBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.OrganizationPolicyBuilder newOrganizationPolicyBuilder()
-
toBuilder
public PolicyName.Builder toBuilder()
-
of
public static PolicyName of(String project, String policy)
-
ofProjectPolicyName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofProjectPolicyName(String project, String policy)
-
ofFolderPolicyName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofFolderPolicyName(String folder, String policy)
-
ofOrganizationPolicyName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofOrganizationPolicyName(String organization, String policy)
-
formatProjectPolicyName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectPolicyName(String project, String policy)
-
formatFolderPolicyName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatFolderPolicyName(String folder, String policy)
-
formatOrganizationPolicyName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationPolicyName(String organization, String policy)
-
parse
public static PolicyName parse(String formattedString)
-
parseList
public static List<PolicyName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<PolicyName> values)
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-