@Generated(value="by gapic-generator-java") public class ConstraintName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and 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}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ConstraintName()
Deprecated.
|
@Deprecated protected ConstraintName()
public String getProject()
public String getConstraint()
public String getFolder()
public String getOrganization()
public static ConstraintName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ConstraintName.Builder newProjectConstraintBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ConstraintName.FolderConstraintBuilder newFolderConstraintBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ConstraintName.OrganizationConstraintBuilder newOrganizationConstraintBuilder()
public ConstraintName.Builder toBuilder()
public static ConstraintName of(String project, String constraint)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static ConstraintName ofProjectConstraintName(String project, String constraint)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static ConstraintName ofFolderConstraintName(String folder, String constraint)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static ConstraintName ofOrganizationConstraintName(String organization, String constraint)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectConstraintName(String project, String constraint)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatFolderConstraintName(String folder, String constraint)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationConstraintName(String organization, String constraint)
public static ConstraintName parse(String formattedString)
public static List<ConstraintName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<ConstraintName> 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 © 2021 Google LLC. All rights reserved.