Class ResourceReferenceExtended
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceReference
com.azure.resourcemanager.resources.models.ResourceReferenceExtended
The resourceId extended model. This is used to document failed resources with a resourceId and a corresponding error.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceReferenceExtended class. -
Method Summary
Methods inherited from class com.azure.resourcemanager.resources.models.ResourceReference
id
-
Constructor Details
-
ResourceReferenceExtended
public ResourceReferenceExtended()Creates an instance of ResourceReferenceExtended class.
-
-
Method Details
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: The error detail.- Returns:
- the error value.
-
withError
public ResourceReferenceExtended withError(com.azure.core.management.exception.ManagementError error) Set the error property: The error detail.- Parameters:
error- the error value to set.- Returns:
- the ResourceReferenceExtended object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceReference- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-