Class for representing and working with resource names.
A resource name is represented by PathTemplate, an assignment to variables in the
template, and an optional endpoint. The ResourceName class implements the map interface
(unmodifiable) to work with the variable assignments, and has methods to reproduce the string
representation of the name, to construct new names, and to dereference names into resources.
As a resource name essentially represents a match of a path template against a string, it can
be also used for other purposes than naming resources. However, not all provided methods may make
sense in all applications.
Attempts to resolve a resource name into a resource, by calling the associated API. The
resource name must have an endpoint. An optional version can be specified to determine in which
version of the API to call.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The webpage details the `TemplatedResourceName` class, which is used for representing and working with resource names in Java, including functionalities for managing variable assignments, constructing new names, and referencing resources."],["This class can be used with a `PathTemplate` to match against a string in addition to naming resources, though not all provided methods may be useful in every application."],["The latest version of this documentation is 2.46.1, while a comprehensive list of available versions, including version 2.17.1, are all accessible through the links on the page."],["`TemplatedResourceName` implements the `Map` interface, allowing it to store variable assignments and methods like `create`, `createFromFullName`, `resolve`, and `parentName` to facilitate resource management."],["Static methods such as `registerResourceNameResolver` and `create` are available to manage and generate `TemplatedResourceName` instances, alongside instance methods like `endpoint`, `template`, and `startsWith` to access properties and relationships between resources."]]],[]]