Resource Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.models.Resource

public class Resource

Resource Common fields that are returned in the response for all Azure Resource Manager resources.

Constructor Summary

Constructor Description
Resource()

Creates an instance of Resource class.

Method Summary

Modifier and Type Method and Description
String getId()

Get the id property: Fully qualified resource ID for the resource.

String getName()

Get the name property: The name of the resource.

String getType()

Get the type property: The type of the resource.

Methods inherited from java.lang.Object

Constructor Details

Resource

public Resource()

Creates an instance of Resource class.

Method Details

getId

public String getId()

Get the id property: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

Returns:

the id value.

getName

public String getName()

Get the name property: The name of the resource.

Returns:

the name value.

getType

public String getType()

Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Returns:

the type value.

Applies to