Class ListEventsFilter.Builder
java.lang.Object
com.vonage.client.proactiveconnect.ListEventsFilter.Builder
- Enclosing class:
ListEventsFilter
Builder for specifying options to filter events by. All fields are optional.
-
Method Summary
Modifier and TypeMethodDescriptionAction ID to filter by.build()Builds the ListEventsFilter.ISO-8601 formatted date for when to end events filter.invocationId(String invocationId) Invocation ID to filter by.Sort in either ascending or descending order.recipientId(String recipientId) Recipient ID to filter by.Run ID to filter by.Run item ID to filter by.sourceContext(String sourceContext) The name of the segment / matcher the item / event to filter by (exact string).sourceType(SourceType sourceType) Source type to filter by.ISO-8601 formatted date for when to begin events filter.Trace ID to filter by.
-
Method Details
-
order
Sort in either ascending or descending order.- Parameters:
order- The sort order as an enum.- Returns:
- This builder.
-
runId
Run ID to filter by.- Parameters:
runId- The run ID.- Returns:
- This builder.
-
runItemId
Run item ID to filter by.- Parameters:
runItemId- The run item ID.- Returns:
- This builder.
-
invocationId
Invocation ID to filter by.- Parameters:
invocationId- The invocation ID.- Returns:
- This builder.
-
actionId
Action ID to filter by.- Parameters:
actionId- The action ID.- Returns:
- This builder.
-
traceId
Trace ID to filter by.- Parameters:
traceId- The trace ID.- Returns:
- This builder.
-
recipientId
Recipient ID to filter by.- Parameters:
recipientId- The recipient ID.- Returns:
- This builder.
-
sourceContext
The name of the segment / matcher the item / event to filter by (exact string).- Parameters:
sourceContext- The source context string.- Returns:
- This builder.
-
sourceType
Source type to filter by.- Parameters:
sourceType- The source type as an enum.- Returns:
- This builder.
-
startDate
ISO-8601 formatted date for when to begin events filter.- Parameters:
startDate- The start date for events as an Instant.- Returns:
- This builder.
-
endDate
ISO-8601 formatted date for when to end events filter.- Parameters:
endDate- The end date for events as an Instant.- Returns:
- This builder.
-
build
Builds the ListEventsFilter.- Returns:
- An instance of ListEventsFilter, populated with all fields from this builder.
-