Class ManagedResourceReference
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceReference
com.azure.resourcemanager.resources.models.ManagedResourceReference
The managed resource model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedResourceReference class. -
Method Summary
Modifier and TypeMethodDescriptionGet the denyStatus property: denyAssignment settings applied to the resource.status()Get the status property: Current management state of the resource in the deployment stack.voidvalidate()Validates the instance.withDenyStatus(DenyStatusMode denyStatus) Set the denyStatus property: denyAssignment settings applied to the resource.withStatus(ResourceStatusMode status) Set the status property: Current management state of the resource in the deployment stack.Methods inherited from class com.azure.resourcemanager.resources.models.ResourceReference
id
-
Constructor Details
-
ManagedResourceReference
public ManagedResourceReference()Creates an instance of ManagedResourceReference class.
-
-
Method Details
-
status
Get the status property: Current management state of the resource in the deployment stack.- Returns:
- the status value.
-
withStatus
Set the status property: Current management state of the resource in the deployment stack.- Parameters:
status- the status value to set.- Returns:
- the ManagedResourceReference object itself.
-
denyStatus
Get the denyStatus property: denyAssignment settings applied to the resource.- Returns:
- the denyStatus value.
-
withDenyStatus
Set the denyStatus property: denyAssignment settings applied to the resource.- Parameters:
denyStatus- the denyStatus value to set.- Returns:
- the ManagedResourceReference object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceReference- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-