Class PolicyName (1.23.0)

public class PolicyName implements ResourceName

Inheritance

Object > PolicyName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project)

public static String format(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
String

formatLocationName(String location)

public static String formatLocationName(String location)
Parameter
NameDescription
locationString
Returns
TypeDescription
String

formatProjectName(String project)

public static String formatProjectName(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static PolicyName.Builder newBuilder()
Returns
TypeDescription
PolicyName.Builder

newLocationBuilder()

public static PolicyName.LocationBuilder newLocationBuilder()
Returns
TypeDescription
PolicyName.LocationBuilder

newProjectBuilder()

public static PolicyName.Builder newProjectBuilder()
Returns
TypeDescription
PolicyName.Builder

of(String project)

public static PolicyName of(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
PolicyName

ofLocationName(String location)

public static PolicyName ofLocationName(String location)
Parameter
NameDescription
locationString
Returns
TypeDescription
PolicyName

ofProjectName(String project)

public static PolicyName ofProjectName(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
PolicyName

parse(String formattedString)

public static PolicyName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
PolicyName

parseList(List<String> formattedStrings)

public static List<PolicyName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<PolicyName>

toStringList(List<PolicyName> values)

public static List<String> toStringList(List<PolicyName> values)
Parameter
NameDescription
valuesList<PolicyName>
Returns
TypeDescription
List<String>

Constructors

PolicyName()

protected PolicyName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public PolicyName.Builder toBuilder()
Returns
TypeDescription
PolicyName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides