### YamlMime:JavaType uid: "com.azure.core.annotation.Get" fullName: "com.azure.core.annotation.Get" name: "Get" nameWithType: "Get" summary: "HTTP GET method annotation describing the parameterized relative path to a REST endpoint for resource retrieval." syntax: "public interface **Get**
implements Annotation" methods: - uid: "com.azure.core.annotation.Get.value()" fullName: "com.azure.core.annotation.Get.value()" name: "value()" nameWithType: "Get.value()" summary: "Get the relative path of the annotated method's GET URL." modifiers: - "abstract" syntax: "public abstract String value()" desc: "Get the relative path of the annotated method's GET URL." returns: description: "The relative path of the annotated method's GET URL." type: "String" type: "interface" desc: "HTTP GET method annotation describing the parameterized relative path to a REST endpoint for resource retrieval.\n\nThe required value can be either a relative path or an absolute path. When it's an absolute path, it must start with a protocol or a parameterized segment (otherwise the parse cannot tell if it's absolute or relative).\n\n**Example 1: Relative path segments**\n\n```java\n@Get(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/\"\n + \"virtualMachines/{vmName}\")\n VirtualMachine getByResourceGroup(@PathParam(\"resourceGroupName\") String rgName,\n @PathParam(\"vmName\") String vmName,\n @PathParam(\"subscriptionId\") String subscriptionId);\n```\n\n**Example 2: Absolute path segment**\n\n```java\n@Get(\"{nextLink}\")\n List listNext(@PathParam(\"nextLink\") String nextLink);\n```" implements: - "Annotation" metadata: {} package: "com.azure.core.annotation" artifact: com.azure:azure-core:1.54.0