Class ResourceWriteFailureEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.ResourceWriteFailureEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceWriteFailureEventData>

public final class ResourceWriteFailureEventData extends Object implements com.azure.json.JsonSerializable<ResourceWriteFailureEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure event. This is raised when a resource create or update operation fails.
  • Method Details

    • getTenantId

      public String getTenantId()
      Get the tenantId property: The tenant ID of the resource.
      Returns:
      the tenantId value.
    • getSubscriptionId

      public String getSubscriptionId()
      Get the subscriptionId property: The subscription ID of the resource.
      Returns:
      the subscriptionId value.
    • getResourceGroup

      public String getResourceGroup()
      Get the resourceGroup property: The resource group of the resource.
      Returns:
      the resourceGroup value.
    • getResourceProvider

      public String getResourceProvider()
      Get the resourceProvider property: The resource provider performing the operation.
      Returns:
      the resourceProvider value.
    • getResourceUri

      public String getResourceUri()
      Get the resourceUri property: The URI of the resource in the operation.
      Returns:
      the resourceUri value.
    • getOperationName

      public String getOperationName()
      Get the operationName property: The operation that was performed.
      Returns:
      the operationName value.
    • getStatus

      public String getStatus()
      Get the status property: The status of the operation.
      Returns:
      the status value.
    • getAuthorization

      public ResourceAuthorization getAuthorization()
      Get the authorization property: The requested authorization for the operation.
      Returns:
      the authorization value.
    • getClaims

      public Map<String,String> getClaims()
      Get the claims property: The properties of the claims.
      Returns:
      the claims value.
    • getCorrelationId

      public String getCorrelationId()
      Get the correlationId property: An operation ID used for troubleshooting.
      Returns:
      the correlationId value.
    • getHttpRequest

      public ResourceHttpRequest getHttpRequest()
      Get the httpRequest property: The details of the operation.
      Returns:
      the httpRequest value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResourceWriteFailureEventData>
      Throws:
      IOException
    • fromJson

      public static ResourceWriteFailureEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceWriteFailureEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceWriteFailureEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ResourceWriteFailureEventData.