Class EventHubCaptureFileCreatedEventData

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

public final class EventHubCaptureFileCreatedEventData extends Object implements com.azure.json.JsonSerializable<EventHubCaptureFileCreatedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.EventHub.CaptureFileCreated event.
  • Method Details

    • getFileUrl

      public String getFileUrl()
      Get the fileUrl property: The path to the capture file.
      Returns:
      the fileUrl value.
    • getFileType

      public String getFileType()
      Get the fileType property: The file type of the capture file.
      Returns:
      the fileType value.
    • getPartitionId

      public String getPartitionId()
      Get the partitionId property: The shard ID.
      Returns:
      the partitionId value.
    • getSizeInBytes

      public Integer getSizeInBytes()
      Get the sizeInBytes property: The file size.
      Returns:
      the sizeInBytes value.
    • getEventCount

      public Integer getEventCount()
      Get the eventCount property: The number of events in the file.
      Returns:
      the eventCount value.
    • getFirstSequenceNumber

      public Integer getFirstSequenceNumber()
      Get the firstSequenceNumber property: The smallest sequence number from the queue.
      Returns:
      the firstSequenceNumber value.
    • getLastSequenceNumber

      public Integer getLastSequenceNumber()
      Get the lastSequenceNumber property: The last sequence number from the queue.
      Returns:
      the lastSequenceNumber value.
    • getFirstEnqueueTime

      public OffsetDateTime getFirstEnqueueTime()
      Get the firstEnqueueTime property: The first time from the queue.
      Returns:
      the firstEnqueueTime value.
    • getLastEnqueueTime

      public OffsetDateTime getLastEnqueueTime()
      Get the lastEnqueueTime property: The last time from the queue.
      Returns:
      the lastEnqueueTime value.
    • toJson

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

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