Class StorageDirectoryRenamedEventData

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

public final class StorageDirectoryRenamedEventData extends Object implements com.azure.json.JsonSerializable<StorageDirectoryRenamedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryRenamed event.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of StorageDirectoryRenamedEventData from the JsonReader.
    Get the api property: The name of the API/operation that triggered this event.
    Get the clientRequestId property: A request id provided by the client of the storage API operation that triggered this event.
    Get the destinationUrl property: The new path to the directory after the rename operation.
    Get the identity property: The identity of the requester that triggered this event.
    Get the requestId property: The request id generated by the storage service for the storage API operation that triggered this event.
    Get the sequencer property: An opaque string value representing the logical sequence of events for any particular directory name.
    Get the sourceUrl property: The path to the directory that was renamed.
    Map<String,com.azure.core.util.BinaryData>
    Get the storageDiagnostics property: For service use only.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getApi

      public String getApi()
      Get the api property: The name of the API/operation that triggered this event.
      Returns:
      the api value.
    • getClientRequestId

      public String getClientRequestId()
      Get the clientRequestId property: A request id provided by the client of the storage API operation that triggered this event.
      Returns:
      the clientRequestId value.
    • getRequestId

      public String getRequestId()
      Get the requestId property: The request id generated by the storage service for the storage API operation that triggered this event.
      Returns:
      the requestId value.
    • getSourceUrl

      public String getSourceUrl()
      Get the sourceUrl property: The path to the directory that was renamed.
      Returns:
      the sourceUrl value.
    • getDestinationUrl

      public String getDestinationUrl()
      Get the destinationUrl property: The new path to the directory after the rename operation.
      Returns:
      the destinationUrl value.
    • getSequencer

      public String getSequencer()
      Get the sequencer property: An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.
      Returns:
      the sequencer value.
    • getIdentity

      public String getIdentity()
      Get the identity property: The identity of the requester that triggered this event.
      Returns:
      the identity value.
    • getStorageDiagnostics

      public Map<String,com.azure.core.util.BinaryData> getStorageDiagnostics()
      Get the storageDiagnostics property: For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
      Returns:
      the storageDiagnostics value.
    • toJson

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

      public static StorageDirectoryRenamedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of StorageDirectoryRenamedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of StorageDirectoryRenamedEventData 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 StorageDirectoryRenamedEventData.