Class ResourceId
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluentcore.arm.ResourceId
-
public final class ResourceId extends Object
Instantiate itself from a resource id, and give easy access to resource information like subscription, resourceGroup, resource name.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceIdfromString(String id)Returns parsed ResourceId object for a given resource id.StringfullResourceType()Stringid()Stringname()ResourceIdparent()StringproviderNamespace()StringresourceGroupName()StringresourceType()StringsubscriptionId()
-
-
-
Method Detail
-
fromString
public static ResourceId fromString(String id)
Returns parsed ResourceId object for a given resource id.- Parameters:
id- of the resource- Returns:
- ResourceId object
-
subscriptionId
public String subscriptionId()
- Returns:
- subscriptionId of the resource.
-
resourceGroupName
public String resourceGroupName()
- Returns:
- resourceGroupName of the resource.
-
name
public String name()
- Returns:
- name of the resource.
-
parent
public ResourceId parent()
- Returns:
- parent resource id of the resource if any, otherwise null.
-
providerNamespace
public String providerNamespace()
- Returns:
- name of the provider.
-
resourceType
public String resourceType()
- Returns:
- type of the resource.
-
fullResourceType
public String fullResourceType()
- Returns:
- full type of the resource.
-
id
public String id()
- Returns:
- the id of the resource.
-
-