共用方式為


LinkedResource Class

  • java.lang.Object
    • com.azure.resourcemanager.maps.models.LinkedResource

public final class LinkedResource

Linked resource is reference to a resource deployed in an Azure subscription, add the linked resource `uniqueName` value as an optional parameter for operations on Azure Maps Geospatial REST APIs.

Constructor Summary

Constructor Description
LinkedResource()

Creates an instance of LinkedResource class.

Method Summary

Modifier and Type Method and Description
String id()

Get the id property: ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'.

String uniqueName()

Get the uniqueName property: A provided name which uniquely identifies the linked resource.

void validate()

Validates the instance.

LinkedResource withId(String id)

Set the id property: ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'.

LinkedResource withUniqueName(String uniqueName)

Set the uniqueName property: A provided name which uniquely identifies the linked resource.

Methods inherited from java.lang.Object

Constructor Details

LinkedResource

public LinkedResource()

Creates an instance of LinkedResource class.

Method Details

id

public String id()

Get the id property: ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'.

Returns:

the id value.

uniqueName

public String uniqueName()

Get the uniqueName property: A provided name which uniquely identifies the linked resource.

Returns:

the uniqueName value.

validate

public void validate()

Validates the instance.

withId

public LinkedResource withId(String id)

Set the id property: ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'.

Parameters:

id - the id value to set.

Returns:

the LinkedResource object itself.

withUniqueName

public LinkedResource withUniqueName(String uniqueName)

Set the uniqueName property: A provided name which uniquely identifies the linked resource.

Parameters:

uniqueName - the uniqueName value to set.

Returns:

the LinkedResource object itself.

Applies to