Interface ManagementLock.DefinitionStages.WithLockedResource
- All Known Subinterfaces:
ManagementLock.Definition
,ManagementLock.DefinitionStages.Blank
- Enclosing interface:
- ManagementLock.DefinitionStages
public static interface ManagementLock.DefinitionStages.WithLockedResource
The stage of a management lock definition allowing to specify the resource to lock.
-
Method Summary
Modifier and TypeMethodDescriptionwithLockedResource
(Resource resource) Specifies the resource to lock.withLockedResource
(String resourceId) Specifies the resource to lock.withLockedResourceGroup
(ResourceGroup resourceGroup) Specifies the resource group to lock.withLockedResourceGroup
(String resourceGroupName) Specifies the resource group to lock.
-
Method Details
-
withLockedResource
Specifies the resource to lock.- Parameters:
resourceId
- the resource ID of the resource to lock- Returns:
- the next stage of the definition
-
withLockedResource
Specifies the resource to lock.- Parameters:
resource
- the resource to lock- Returns:
- the next stage of the definition
-
withLockedResourceGroup
Specifies the resource group to lock.- Parameters:
resourceGroupName
- the name of a resource group- Returns:
- the next stage of the definition
-
withLockedResourceGroup
Specifies the resource group to lock.- Parameters:
resourceGroup
- a resource group- Returns:
- then next stage of the definition
-