Compartilhar via


ResourceReferenceExtended Class

public final class ResourceReferenceExtended
extends ResourceReference

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

Constructor Summary

Constructor Description
ResourceReferenceExtended()

Creates an instance of ResourceReferenceExtended class.

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 resourceId of a resource managed by the deployment stack.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceReferenceExtended withError(ManagementError error)

Set the error property: The error detail.

Methods inherited from ResourceReference

Methods inherited from java.lang.Object

Constructor Details

ResourceReferenceExtended

public ResourceReferenceExtended()

Creates an instance of ResourceReferenceExtended class.

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 resourceId of a resource managed by the deployment stack.

Overrides:

ResourceReferenceExtended.id()

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ResourceReferenceExtended.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ResourceReferenceExtended.validate()

withError

public ResourceReferenceExtended withError(ManagementError error)

Set the error property: The error detail.

Parameters:

error - the error value to set.

Returns:

the ResourceReferenceExtended object itself.

Applies to