ResourceReferenceExtended Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.ResourceReferenceExtended

Implements

public final class ResourceReferenceExtended
implements JsonSerializable<ResourceReferenceExtended>

The resourceId extended model. This is used to document failed resources with a resourceId and a corresponding error.

Method Summary

Modifier and Type Method and Description
ManagementError error()

Get the error property: The error detail.

static ResourceReferenceExtended fromJson(JsonReader jsonReader)

Reads an instance of ResourceReferenceExtended from the JsonReader.

String id()

Get the id property: The ARM Resource ID of a resource managed by the deployment stack.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

error

public ManagementError error()

Get the error property: The error detail.

Returns:

the error value.

fromJson

public static ResourceReferenceExtended fromJson(JsonReader jsonReader)

Reads an instance of ResourceReferenceExtended from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceReferenceExtended 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 ResourceReferenceExtended.

id

public String id()

Get the id property: The ARM Resource ID of a resource managed by the deployment stack.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to