ResourceReferenceExtended Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. ResourceReference - com.
azure. resourcemanager. resources. models. ResourceReferenceExtended
- com.
- com.
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 Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
Management |
error()
Get the error property: The error detail. |
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
id()
Get the id property: The resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
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:
fromJson
public static ResourceReferenceExtended fromJson(JsonReader jsonReader)
Reads an instance of ResourceReferenceExtended 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:
ResourceReferenceExtended.id()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ResourceReferenceExtended.toJson(JsonWriter jsonWriter)Parameters:
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:
Returns:
Applies to
Azure SDK for Java