ManagedResourceReference Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. ResourceReference - com.
azure. resourcemanager. resources. models. ManagedResourceReference
- com.
- com.
public final class ManagedResourceReference
extends ResourceReference
The managed resource model.
Constructor Summary
Constructor | Description |
---|---|
ManagedResourceReference() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
Deny |
denyStatus()
Get the deny |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
id()
Get the id property: The resource |
Resource |
status()
Get the status property: Current management state of the resource in the deployment stack. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withDenyStatus(DenyStatusMode denyStatus)
Set the deny |
Managed |
withStatus(ResourceStatusMode status)
Set the status property: Current management state of the resource in the deployment stack. |
Methods inherited from ResourceReference
Methods inherited from java.lang.Object
Constructor Details
ManagedResourceReference
public ManagedResourceReference()
Creates an instance of ManagedResourceReference class.
Method Details
denyStatus
public DenyStatusMode denyStatus()
Get the denyStatus property: denyAssignment settings applied to the resource.
Returns:
fromJson
public static ManagedResourceReference fromJson(JsonReader jsonReader)
Reads an instance of ManagedResourceReference from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The resourceId of a resource managed by the deployment stack.
Overrides:
ManagedResourceReference.id()Returns:
status
public ResourceStatusMode status()
Get the status property: Current management state of the resource in the deployment stack.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedResourceReference.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
ManagedResourceReference.validate()withDenyStatus
public ManagedResourceReference withDenyStatus(DenyStatusMode denyStatus)
Set the denyStatus property: denyAssignment settings applied to the resource.
Parameters:
Returns:
withStatus
public ManagedResourceReference withStatus(ResourceStatusMode status)
Set the status property: Current management state of the resource in the deployment stack.
Parameters:
Returns:
Applies to
Azure SDK for Java