Class EventHubCaptureFileCreatedEventData
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.EventHubCaptureFileCreatedEventData
-
public class EventHubCaptureFileCreatedEventData extends Object
Schema of the Data property of an EventGridEvent for an Microsoft.EventHub.CaptureFileCreated event.
-
-
Constructor Summary
Constructors Constructor Description EventHubCaptureFileCreatedEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegereventCount()Get the number of events in the file.StringfileType()Get the file type of the capture file.Stringfileurl()Get the path to the capture file.org.joda.time.DateTimefirstEnqueueTime()Get the first time from the queue.IntegerfirstSequenceNumber()Get the smallest sequence number from the queue.org.joda.time.DateTimelastEnqueueTime()Get the last time from the queue.IntegerlastSequenceNumber()Get the last sequence number from the queue.StringpartitionId()Get the shard ID.IntegersizeInBytes()Get the file size.EventHubCaptureFileCreatedEventDatawithEventCount(Integer eventCount)Set the number of events in the file.EventHubCaptureFileCreatedEventDatawithFileType(String fileType)Set the file type of the capture file.EventHubCaptureFileCreatedEventDatawithFileurl(String fileurl)Set the path to the capture file.EventHubCaptureFileCreatedEventDatawithFirstEnqueueTime(org.joda.time.DateTime firstEnqueueTime)Set the first time from the queue.EventHubCaptureFileCreatedEventDatawithFirstSequenceNumber(Integer firstSequenceNumber)Set the smallest sequence number from the queue.EventHubCaptureFileCreatedEventDatawithLastEnqueueTime(org.joda.time.DateTime lastEnqueueTime)Set the last time from the queue.EventHubCaptureFileCreatedEventDatawithLastSequenceNumber(Integer lastSequenceNumber)Set the last sequence number from the queue.EventHubCaptureFileCreatedEventDatawithPartitionId(String partitionId)Set the shard ID.EventHubCaptureFileCreatedEventDatawithSizeInBytes(Integer sizeInBytes)Set the file size.
-
-
-
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.
-
-