Package com.google.cloud.orgpolicy.v2
Class ConstraintName
- java.lang.Object
-
- com.google.cloud.orgpolicy.v2.ConstraintName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class ConstraintName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConstraintName.Builder
Builder for projects/{project}/constraints/{constraint}.static class
ConstraintName.FolderConstraintBuilder
Builder for folders/{folder}/constraints/{constraint}.static class
ConstraintName.OrganizationConstraintBuilder
Builder for organizations/{organization}/constraints/{constraint}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstraintName()
Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
ConstraintName
@Deprecated protected ConstraintName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getConstraint
public String getConstraint()
-
getFolder
public String getFolder()
-
getOrganization
public String getOrganization()
-
newBuilder
public static ConstraintName.Builder newBuilder()
-
newProjectConstraintBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ConstraintName.Builder newProjectConstraintBuilder()
-
newFolderConstraintBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ConstraintName.FolderConstraintBuilder newFolderConstraintBuilder()
-
newOrganizationConstraintBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ConstraintName.OrganizationConstraintBuilder newOrganizationConstraintBuilder()
-
toBuilder
public ConstraintName.Builder toBuilder()
-
of
public static ConstraintName of(String project, String constraint)
-
ofProjectConstraintName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ConstraintName ofProjectConstraintName(String project, String constraint)
-
ofFolderConstraintName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ConstraintName ofFolderConstraintName(String folder, String constraint)
-
ofOrganizationConstraintName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ConstraintName ofOrganizationConstraintName(String organization, String constraint)
-
formatProjectConstraintName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectConstraintName(String project, String constraint)
-
formatFolderConstraintName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatFolderConstraintName(String folder, String constraint)
-
formatOrganizationConstraintName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationConstraintName(String organization, String constraint)
-
parse
public static ConstraintName parse(String formattedString)
-
parseList
public static List<ConstraintName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<ConstraintName> 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
-
-