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 Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventHubCaptureFileCreatedEventData from the JsonReader.Get the eventCount property: The number of events in the file.Get the fileType property: The file type of the capture file.Get the fileUrl property: The path to the capture file.Get the firstEnqueueTime property: The first time from the queue.Get the firstSequenceNumber property: The smallest sequence number from the queue.Get the lastEnqueueTime property: The last time from the queue.Get the lastSequenceNumber property: The last sequence number from the queue.Get the partitionId property: The shard ID.Get the sizeInBytes property: The file size.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getFileUrl
Get the fileUrl property: The path to the capture file.- Returns:
- the fileUrl value.
-
getFileType
Get the fileType property: The file type of the capture file.- Returns:
- the fileType value.
-
getPartitionId
Get the partitionId property: The shard ID.- Returns:
- the partitionId value.
-
getSizeInBytes
Get the sizeInBytes property: The file size.- Returns:
- the sizeInBytes value.
-
getEventCount
Get the eventCount property: The number of events in the file.- Returns:
- the eventCount value.
-
getFirstSequenceNumber
Get the firstSequenceNumber property: The smallest sequence number from the queue.- Returns:
- the firstSequenceNumber value.
-
getLastSequenceNumber
Get the lastSequenceNumber property: The last sequence number from the queue.- Returns:
- the lastSequenceNumber value.
-
getFirstEnqueueTime
Get the firstEnqueueTime property: The first time from the queue.- Returns:
- the firstEnqueueTime value.
-
getLastEnqueueTime
Get the lastEnqueueTime property: The last time from the queue.- Returns:
- the lastEnqueueTime value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-