ManagementLock.UpdateStages.WithLockedResource Interface

public static interface ManagementLock.UpdateStages.WithLockedResource

The stage of a management lock update allowing to specify the resource to lock.

Method Summary

Modifier and Type Method and Description
abstract Update withLockedResource(Resource resource)

Specifies the resource to lock.

abstract Update withLockedResource(String resourceId)

Specifies the resource to lock.

abstract Update withLockedResourceGroup(ResourceGroup resourceGroup)

Specifies the resource group to lock.

abstract Update withLockedResourceGroup(String resourceGroupName)

Specifies the resource group to lock.

Method Details

withLockedResource

public abstract ManagementLock.Update withLockedResource(Resource resource)

Specifies the resource to lock.

Parameters:

resource - the resource to lock

Returns:

the next stage of the update

withLockedResource

public abstract ManagementLock.Update withLockedResource(String resourceId)

Specifies the resource to lock.

Parameters:

resourceId - the resource ID of the resource to lock

Returns:

the next stage of the update

withLockedResourceGroup

public abstract ManagementLock.Update withLockedResourceGroup(ResourceGroup resourceGroup)

Specifies the resource group to lock.

Parameters:

resourceGroup - a resource group

Returns:

then next stage of the update

withLockedResourceGroup

public abstract ManagementLock.Update withLockedResourceGroup(String resourceGroupName)

Specifies the resource group to lock.

Parameters:

resourceGroupName - the name of a resource group

Returns:

the next stage of the update

Applies to