ManagementLock.DefinitionStages.WithLockedResource Interface
public static interface ManagementLock.DefinitionStages.WithLockedResource
The stage of a management lock definition allowing to specify the resource to lock.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withLockedResource(Resource resource)
Specifies the resource to lock. |
abstract
With |
withLockedResource(String resourceId)
Specifies the resource to lock. |
abstract
With |
withLockedResourceGroup(ResourceGroup resourceGroup)
Specifies the resource group to lock. |
abstract
With |
withLockedResourceGroup(String resourceGroupName)
Specifies the resource group to lock. |
Method Details
withLockedResource
public abstract ManagementLock.DefinitionStages.WithLevel withLockedResource(Resource resource)
Specifies the resource to lock.
Parameters:
Returns:
withLockedResource
public abstract ManagementLock.DefinitionStages.WithLevel withLockedResource(String resourceId)
Specifies the resource to lock.
Parameters:
Returns:
withLockedResourceGroup
public abstract ManagementLock.DefinitionStages.WithLevel withLockedResourceGroup(ResourceGroup resourceGroup)
Specifies the resource group to lock.
Parameters:
Returns:
withLockedResourceGroup
public abstract ManagementLock.DefinitionStages.WithLevel withLockedResourceGroup(String resourceGroupName)
Specifies the resource group to lock.
Parameters:
Returns:
Applies to
Azure SDK for Java