ResourceId Class
- java.
lang. Object - com.
microsoft. azure. management. resources. fluentcore. arm. ResourceId
- com.
public class ResourceId
Instantiate itself from a resource id, and give easy access to resource information like subscription, resourceGroup, resource name.
Method Summary
Modifier and Type | Method and Description |
---|---|
Resource |
fromString(String id)
Returns parsed ResourceId object for a given resource id. |
String | fullResourceType() |
String | id() |
String | name() |
Resource |
parent() |
String | providerNamespace() |
String | resourceGroupName() |
String | resourceType() |
String | subscriptionId() |
Method Details
fromString
public static ResourceId fromString(String id)
Returns parsed ResourceId object for a given resource id.
Parameters:
Returns:
fullResourceType
public String fullResourceType()
Returns:
id
public String id()
Returns:
name
public String name()
Returns:
parent
public ResourceId parent()
Returns:
providerNamespace
public String providerNamespace()
Returns:
resourceGroupName
public String resourceGroupName()
Returns:
resourceType
public String resourceType()
Returns:
subscriptionId
public String subscriptionId()
Returns:
Applies to
Azure SDK for Java