EventHubCaptureFileCreatedEventData Class

  • java.lang.Object
    • com.microsoft.azure.eventgrid.models.EventHubCaptureFileCreatedEventData

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.

EventHubCaptureFileCreatedEventData withEventCount(Integer eventCount)

Set the number of events in the file.

EventHubCaptureFileCreatedEventData withFileType(String fileType)

Set the file type of the capture file.

EventHubCaptureFileCreatedEventData withFileurl(String fileurl)

Set the path to the capture file.

EventHubCaptureFileCreatedEventData withFirstEnqueueTime(DateTime firstEnqueueTime)

Set the first time from the queue.

EventHubCaptureFileCreatedEventData withFirstSequenceNumber(Integer firstSequenceNumber)

Set the smallest sequence number from the queue.

EventHubCaptureFileCreatedEventData withLastEnqueueTime(DateTime lastEnqueueTime)

Set the last time from the queue.

EventHubCaptureFileCreatedEventData withLastSequenceNumber(Integer lastSequenceNumber)

Set the last sequence number from the queue.

EventHubCaptureFileCreatedEventData withPartitionId(String partitionId)

Set the shard ID.

EventHubCaptureFileCreatedEventData withSizeInBytes(Integer sizeInBytes)

Set the file size.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

EventHubCaptureFileCreatedEventData

public EventHubCaptureFileCreatedEventData()

Method Details

eventCount

public Integer eventCount()

Get the number of events in the file.

Returns:

the eventCount value

fileType

public String fileType()

Get the file type of the capture file.

Returns:

the fileType value

fileurl

public String fileurl()

Get the path to the capture file.

Returns:

the fileurl value

firstEnqueueTime

public DateTime firstEnqueueTime()

Get the first time from the queue.

Returns:

the firstEnqueueTime value

firstSequenceNumber

public Integer firstSequenceNumber()

Get the smallest sequence number from the queue.

Returns:

the firstSequenceNumber value

lastEnqueueTime

public DateTime lastEnqueueTime()

Get the last time from the queue.

Returns:

the lastEnqueueTime value

lastSequenceNumber

public Integer lastSequenceNumber()

Get the last sequence number from the queue.

Returns:

the lastSequenceNumber value

partitionId

public String partitionId()

Get the shard ID.

Returns:

the partitionId value

sizeInBytes

public Integer sizeInBytes()

Get the file size.

Returns:

the sizeInBytes 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.

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.

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.

withFirstEnqueueTime

public EventHubCaptureFileCreatedEventData withFirstEnqueueTime(DateTime firstEnqueueTime)

Set the first time from the queue.

Parameters:

firstEnqueueTime - the firstEnqueueTime value to set

Returns:

the EventHubCaptureFileCreatedEventData object itself.

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.

withLastEnqueueTime

public EventHubCaptureFileCreatedEventData withLastEnqueueTime(DateTime lastEnqueueTime)

Set the last time from the queue.

Parameters:

lastEnqueueTime - the lastEnqueueTime value to set

Returns:

the EventHubCaptureFileCreatedEventData object itself.

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.

withPartitionId

public EventHubCaptureFileCreatedEventData withPartitionId(String partitionId)

Set the shard ID.

Parameters:

partitionId - the partitionId value to set

Returns:

the EventHubCaptureFileCreatedEventData object itself.

withSizeInBytes

public EventHubCaptureFileCreatedEventData withSizeInBytes(Integer sizeInBytes)

Set the file size.

Parameters:

sizeInBytes - the sizeInBytes value to set

Returns:

the EventHubCaptureFileCreatedEventData object itself.

Applies to