Class ConstraintName (2.42.0)

public class ConstraintName implements ResourceName

Inheritance

Object > ConstraintName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String constraint)

public static String format(String project, String constraint)
Parameters
Name Description
project String
constraint String
Returns
Type Description
String

formatFolderConstraintName(String folder, String constraint)

public static String formatFolderConstraintName(String folder, String constraint)
Parameters
Name Description
folder String
constraint String
Returns
Type Description
String

formatOrganizationConstraintName(String organization, String constraint)

public static String formatOrganizationConstraintName(String organization, String constraint)
Parameters
Name Description
organization String
constraint String
Returns
Type Description
String

formatProjectConstraintName(String project, String constraint)

public static String formatProjectConstraintName(String project, String constraint)
Parameters
Name Description
project String
constraint String
Returns
Type Description
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
boolean

newBuilder()

public static ConstraintName.Builder newBuilder()
Returns
Type Description
ConstraintName.Builder

newFolderConstraintBuilder()

public static ConstraintName.FolderConstraintBuilder newFolderConstraintBuilder()
Returns
Type Description
ConstraintName.FolderConstraintBuilder

newOrganizationConstraintBuilder()

public static ConstraintName.OrganizationConstraintBuilder newOrganizationConstraintBuilder()
Returns
Type Description
ConstraintName.OrganizationConstraintBuilder

newProjectConstraintBuilder()

public static ConstraintName.Builder newProjectConstraintBuilder()
Returns
Type Description
ConstraintName.Builder

of(String project, String constraint)

public static ConstraintName of(String project, String constraint)
Parameters
Name Description
project String
constraint String
Returns
Type Description
ConstraintName

ofFolderConstraintName(String folder, String constraint)

public static ConstraintName ofFolderConstraintName(String folder, String constraint)
Parameters
Name Description
folder String
constraint String
Returns
Type Description
ConstraintName

ofOrganizationConstraintName(String organization, String constraint)

public static ConstraintName ofOrganizationConstraintName(String organization, String constraint)
Parameters
Name Description
organization String
constraint String
Returns
Type Description
ConstraintName

ofProjectConstraintName(String project, String constraint)

public static ConstraintName ofProjectConstraintName(String project, String constraint)
Parameters
Name Description
project String
constraint String
Returns
Type Description
ConstraintName

parse(String formattedString)

public static ConstraintName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
ConstraintName

parseList(List<String> formattedStrings)

public static List<ConstraintName> parseList(List<String> formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description
List<ConstraintName>

toStringList(List<ConstraintName> values)

public static List<String> toStringList(List<ConstraintName> values)
Parameter
Name Description
values List<ConstraintName>
Returns
Type Description
List<String>

Constructors

ConstraintName() (deprecated)

protected ConstraintName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getConstraint()

public String getConstraint()
Returns
Type Description
String

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
Type Description
Map<String,String>

getFolder()

public String getFolder()
Returns
Type Description
String

getOrganization()

public String getOrganization()
Returns
Type Description
String

getProject()

public String getProject()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public ConstraintName.Builder toBuilder()
Returns
Type Description
ConstraintName.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides