Class EventHubCaptureFileCreatedEventData


  • public class EventHubCaptureFileCreatedEventData
    extends Object
    Schema of the Data property of an EventGridEvent for an Microsoft.EventHub.CaptureFileCreated event.
    • Constructor Detail

      • EventHubCaptureFileCreatedEventData

        public EventHubCaptureFileCreatedEventData()
    • Method Detail

      • fileurl

        public String fileurl()
        Get the path to the capture file.
        Returns:
        the fileurl value
      • withFileurl

        public EventHubCaptureFileCreatedEventData withFileurl​(String fileurl)
        Set the path to the capture file.
        Parameters:
        fileurl - the fileurl value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • fileType

        public String fileType()
        Get the file type of the capture file.
        Returns:
        the fileType value
      • withFileType

        public EventHubCaptureFileCreatedEventData withFileType​(String fileType)
        Set the file type of the capture file.
        Parameters:
        fileType - the fileType value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • partitionId

        public String partitionId()
        Get the shard ID.
        Returns:
        the partitionId value
      • withPartitionId

        public EventHubCaptureFileCreatedEventData withPartitionId​(String partitionId)
        Set the shard ID.
        Parameters:
        partitionId - the partitionId value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • sizeInBytes

        public Integer sizeInBytes()
        Get the file size.
        Returns:
        the sizeInBytes value
      • withSizeInBytes

        public EventHubCaptureFileCreatedEventData withSizeInBytes​(Integer sizeInBytes)
        Set the file size.
        Parameters:
        sizeInBytes - the sizeInBytes value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • eventCount

        public Integer eventCount()
        Get the number of events in the file.
        Returns:
        the eventCount value
      • withEventCount

        public EventHubCaptureFileCreatedEventData withEventCount​(Integer eventCount)
        Set the number of events in the file.
        Parameters:
        eventCount - the eventCount value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • firstSequenceNumber

        public Integer firstSequenceNumber()
        Get the smallest sequence number from the queue.
        Returns:
        the firstSequenceNumber value
      • withFirstSequenceNumber

        public EventHubCaptureFileCreatedEventData withFirstSequenceNumber​(Integer firstSequenceNumber)
        Set the smallest sequence number from the queue.
        Parameters:
        firstSequenceNumber - the firstSequenceNumber value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • lastSequenceNumber

        public Integer lastSequenceNumber()
        Get the last sequence number from the queue.
        Returns:
        the lastSequenceNumber value
      • withLastSequenceNumber

        public EventHubCaptureFileCreatedEventData withLastSequenceNumber​(Integer lastSequenceNumber)
        Set the last sequence number from the queue.
        Parameters:
        lastSequenceNumber - the lastSequenceNumber value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • firstEnqueueTime

        public org.joda.time.DateTime firstEnqueueTime()
        Get the first time from the queue.
        Returns:
        the firstEnqueueTime value
      • withFirstEnqueueTime

        public EventHubCaptureFileCreatedEventData withFirstEnqueueTime​(org.joda.time.DateTime firstEnqueueTime)
        Set the first time from the queue.
        Parameters:
        firstEnqueueTime - the firstEnqueueTime value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.
      • lastEnqueueTime

        public org.joda.time.DateTime lastEnqueueTime()
        Get the last time from the queue.
        Returns:
        the lastEnqueueTime value
      • withLastEnqueueTime

        public EventHubCaptureFileCreatedEventData withLastEnqueueTime​(org.joda.time.DateTime lastEnqueueTime)
        Set the last time from the queue.
        Parameters:
        lastEnqueueTime - the lastEnqueueTime value to set
        Returns:
        the EventHubCaptureFileCreatedEventData object itself.