Class ActionOnUnmanage
java.lang.Object
com.azure.resourcemanager.resources.models.ActionOnUnmanage
Defines the behavior of resources that are no longer managed after the stack is updated or deleted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the managementGroups property: Specifies an action for a newly unmanaged resource.Get the resourceGroups property: Specifies an action for a newly unmanaged resource.Get the resources property: Specifies an action for a newly unmanaged resource.voidvalidate()Validates the instance.withManagementGroups(DeploymentStacksDeleteDetachEnum managementGroups) Set the managementGroups property: Specifies an action for a newly unmanaged resource.withResourceGroups(DeploymentStacksDeleteDetachEnum resourceGroups) Set the resourceGroups property: Specifies an action for a newly unmanaged resource.withResources(DeploymentStacksDeleteDetachEnum resources) Set the resources property: Specifies an action for a newly unmanaged resource.
-
Constructor Details
-
ActionOnUnmanage
public ActionOnUnmanage()Creates an instance of ActionOnUnmanage class.
-
-
Method Details
-
resources
Get the resources property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.- Returns:
- the resources value.
-
withResources
Set the resources property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.- Parameters:
resources- the resources value to set.- Returns:
- the ActionOnUnmanage object itself.
-
resourceGroups
Get the resourceGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.- Returns:
- the resourceGroups value.
-
withResourceGroups
Set the resourceGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.- Parameters:
resourceGroups- the resourceGroups value to set.- Returns:
- the ActionOnUnmanage object itself.
-
managementGroups
Get the managementGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.- Returns:
- the managementGroups value.
-
withManagementGroups
Set the managementGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.- Parameters:
managementGroups- the managementGroups value to set.- Returns:
- the ActionOnUnmanage object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-