EventHubCaptureFileCreatedEventData Class
- java.
lang. Object - com.
microsoft. azure. eventgrid. models. EventHubCaptureFileCreatedEventData
- com.
public class EventHubCaptureFileCreatedEventData
Schema of the Data property of an EventGridEvent for an Microsoft.EventHub.CaptureFileCreated event.
Constructor Summary
Constructor | Description | |
---|---|---|
EventHubCaptureFileCreatedEventData() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
eventCount()
Get the number of events in the file. |
java.lang.String |
fileType()
Get the file type of the capture file. |
java.lang.String |
fileurl()
Get the path to the capture file. |
org.joda.time.DateTime |
firstEnqueueTime()
Get the first time from the queue. |
java.lang.Integer |
firstSequenceNumber()
Get the smallest sequence number from the queue. |
org.joda.time.DateTime |
lastEnqueueTime()
Get the last time from the queue. |
java.lang.Integer |
lastSequenceNumber()
Get the last sequence number from the queue. |
java.lang.String |
partitionId()
Get the shard ID. |
java.lang.Integer |
sizeInBytes()
Get the file size. |
Event |
withEventCount(Integer eventCount)
Set the number of events in the file. |
Event |
withFileType(String fileType)
Set the file type of the capture file. |
Event |
withFileurl(String fileurl)
Set the path to the capture file. |
Event |
withFirstEnqueueTime(DateTime firstEnqueueTime)
Set the first time from the queue. |
Event |
withFirstSequenceNumber(Integer firstSequenceNumber)
Set the smallest sequence number from the queue. |
Event |
withLastEnqueueTime(DateTime lastEnqueueTime)
Set the last time from the queue. |
Event |
withLastSequenceNumber(Integer lastSequenceNumber)
Set the last sequence number from the queue. |
Event |
withPartitionId(String partitionId)
Set the shard ID. |
Event |
withSizeInBytes(Integer sizeInBytes)
Set the file size. |
Methods inherited from java.lang.Object
Constructor Details
EventHubCaptureFileCreatedEventData
public EventHubCaptureFileCreatedEventData()
Method Details
eventCount
public Integer eventCount()
Get the number of events in the file.
Returns:
fileType
public String fileType()
Get the file type of the capture file.
Returns:
fileurl
public String fileurl()
Get the path to the capture file.
Returns:
firstEnqueueTime
public DateTime firstEnqueueTime()
Get the first time from the queue.
Returns:
firstSequenceNumber
public Integer firstSequenceNumber()
Get the smallest sequence number from the queue.
Returns:
lastEnqueueTime
public DateTime lastEnqueueTime()
Get the last time from the queue.
Returns:
lastSequenceNumber
public Integer lastSequenceNumber()
Get the last sequence number from the queue.
Returns:
partitionId
public String partitionId()
Get the shard ID.
Returns:
sizeInBytes
public Integer sizeInBytes()
Get the file size.
Returns:
withEventCount
public EventHubCaptureFileCreatedEventData withEventCount(Integer eventCount)
Set the number of events in the file.
Parameters:
Returns:
withFileType
public EventHubCaptureFileCreatedEventData withFileType(String fileType)
Set the file type of the capture file.
Parameters:
Returns:
withFileurl
public EventHubCaptureFileCreatedEventData withFileurl(String fileurl)
Set the path to the capture file.
Parameters:
Returns:
withFirstEnqueueTime
public EventHubCaptureFileCreatedEventData withFirstEnqueueTime(DateTime firstEnqueueTime)
Set the first time from the queue.
Parameters:
Returns:
withFirstSequenceNumber
public EventHubCaptureFileCreatedEventData withFirstSequenceNumber(Integer firstSequenceNumber)
Set the smallest sequence number from the queue.
Parameters:
Returns:
withLastEnqueueTime
public EventHubCaptureFileCreatedEventData withLastEnqueueTime(DateTime lastEnqueueTime)
Set the last time from the queue.
Parameters:
Returns:
withLastSequenceNumber
public EventHubCaptureFileCreatedEventData withLastSequenceNumber(Integer lastSequenceNumber)
Set the last sequence number from the queue.
Parameters:
Returns:
withPartitionId
public EventHubCaptureFileCreatedEventData withPartitionId(String partitionId)
Set the shard ID.
Parameters:
Returns:
withSizeInBytes
public EventHubCaptureFileCreatedEventData withSizeInBytes(Integer sizeInBytes)
Set the file size.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for