Class ManagedResourceReference
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceReference
com.azure.resourcemanager.resources.models.ManagedResourceReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceReference>
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.static ManagedResourceReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedResourceReference from the JsonReader.id()Get the id property: The resourceId of a resource managed by the deployment stack.status()Get the status property: Current management state of the resource in the deployment stack.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
apiVersion, extension, identifiers, resourceTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
id
Get the id property: The resourceId of a resource managed by the deployment stack.- Overrides:
idin classResourceReference- Returns:
- the id value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceReference- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceReference>- Overrides:
toJsonin classResourceReference- Throws:
IOException
-
fromJson
public static ManagedResourceReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedResourceReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedResourceReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedResourceReference.
-