Class ResourceReferenceExtended

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

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 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:
      validate in class ResourceReference
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.