Class ResourceName (0.1.0)

public class ResourceName implements ResourceName

Inheritance

Object > ResourceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String deployment, String revision, String resource)

public static String format(String project, String location, String deployment, String revision, String resource)
Parameters
NameDescription
projectString
locationString
deploymentString
revisionString
resourceString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String deployment, String revision, String resource)

public static ResourceName of(String project, String location, String deployment, String revision, String resource)
Parameters
NameDescription
projectString
locationString
deploymentString
revisionString
resourceString
Returns
TypeDescription
ResourceName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<ResourceName> values)

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

Constructors

ResourceName()

protected ResourceName()

Methods

equals(Object o)

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

getDeployment()

public String getDeployment()
Returns
TypeDescription
String

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

getResource()

public String getResource()
Returns
TypeDescription
String

getRevision()

public String getRevision()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides