Compartilhar via


ManagedResourceReference Class

public final class ManagedResourceReference
extends ResourceReference

The managed resource model.

Constructor Summary

Constructor Description
ManagedResourceReference()

Creates an instance of ManagedResourceReference class.

Method Summary

Modifier and Type Method and Description
DenyStatusMode denyStatus()

Get the denyStatus property: denyAssignment settings applied to the resource.

static ManagedResourceReference fromJson(JsonReader jsonReader)

Reads an instance of ManagedResourceReference from the JsonReader.

String id()

Get the id property: The resourceId of a resource managed by the deployment stack.

ResourceStatusMode status()

Get the status property: Current management state of the resource in the deployment stack.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedResourceReference withDenyStatus(DenyStatusMode denyStatus)

Set the denyStatus property: denyAssignment settings applied to the resource.

ManagedResourceReference 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:

the denyStatus value.

fromJson

public static ManagedResourceReference fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: The resourceId of a resource managed by the deployment stack.

Overrides:

ManagedResourceReference.id()

Returns:

the id value.

status

public ResourceStatusMode status()

Get the status property: Current management state of the resource in the deployment stack.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedResourceReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

denyStatus - the denyStatus value to set.

Returns:

the ManagedResourceReference object itself.

withStatus

public ManagedResourceReference withStatus(ResourceStatusMode status)

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.

Applies to