Class AssetName (2.20.0)

public class AssetName implements ResourceName

Inheritance

Object > AssetName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String organization, String asset)

public static String format(String organization, String asset)
Parameters
NameDescription
organizationString
assetString
Returns
TypeDescription
String

formatFolderAssetName(String folder, String asset)

public static String formatFolderAssetName(String folder, String asset)
Parameters
NameDescription
folderString
assetString
Returns
TypeDescription
String

formatOrganizationAssetName(String organization, String asset)

public static String formatOrganizationAssetName(String organization, String asset)
Parameters
NameDescription
organizationString
assetString
Returns
TypeDescription
String

formatProjectAssetName(String project, String asset)

public static String formatProjectAssetName(String project, String asset)
Parameters
NameDescription
projectString
assetString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

newFolderAssetBuilder()

public static AssetName.FolderAssetBuilder newFolderAssetBuilder()
Returns
TypeDescription
AssetName.FolderAssetBuilder

newOrganizationAssetBuilder()

public static AssetName.Builder newOrganizationAssetBuilder()
Returns
TypeDescription
AssetName.Builder

newProjectAssetBuilder()

public static AssetName.ProjectAssetBuilder newProjectAssetBuilder()
Returns
TypeDescription
AssetName.ProjectAssetBuilder

of(String organization, String asset)

public static AssetName of(String organization, String asset)
Parameters
NameDescription
organizationString
assetString
Returns
TypeDescription
AssetName

ofFolderAssetName(String folder, String asset)

public static AssetName ofFolderAssetName(String folder, String asset)
Parameters
NameDescription
folderString
assetString
Returns
TypeDescription
AssetName

ofOrganizationAssetName(String organization, String asset)

public static AssetName ofOrganizationAssetName(String organization, String asset)
Parameters
NameDescription
organizationString
assetString
Returns
TypeDescription
AssetName

ofProjectAssetName(String project, String asset)

public static AssetName ofProjectAssetName(String project, String asset)
Parameters
NameDescription
projectString
assetString
Returns
TypeDescription
AssetName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<AssetName> values)

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

Constructors

AssetName()

protected AssetName()

Methods

equals(Object o)

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

getAsset()

public String getAsset()
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>

getFolder()

public String getFolder()
Returns
TypeDescription
String

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides