Class MessageListParams
-
- All Implemented Interfaces:
-
app.knock.api.core.Params
public final class MessageListParams implements Params
Returns a paginated list of messages for the current environment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageListParams.BuilderA builder for MessageListParams.
public final classMessageListParams.EngagementStatuspublic final classMessageListParams.InsertedAtpublic final classMessageListParams.Status
-
Method Summary
Modifier and Type Method Description final Optional<String>after()The cursor to fetch entries after. final Optional<String>before()The cursor to fetch entries before. final Optional<String>channelId()Limits the results to items with the corresponding channel ID. final Optional<List<MessageListParams.EngagementStatus>>engagementStatus()Limits the results to messages with the given engagement status. final Optional<MessageListParams.InsertedAt>insertedAt()final Optional<List<String>>messageIds()Limits the results to only the message IDs given (max 50). final Optional<Long>pageSize()The number of items per page. final Optional<String>source()Limits the results to messages triggered by the given workflow key. final Optional<List<MessageListParams.Status>>status()Limits the results to messages with the given delivery status. final Optional<String>tenant()Limits the results to items with the corresponding tenant. final Optional<String>triggerData()Limits the results to only messages that were generated with the given data. final Optional<List<String>>workflowCategories()Limits the results to messages related to any of the provided categories. final Optional<String>workflowRecipientRunId()Limits the results to messages for a specific recipient's workflow run. final Optional<String>workflowRunId()Limits the results to messages associated with the top-level workflow run ID returned by the workflow trigger request. final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final MessageListParams.BuildertoBuilder()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageListParamsnone()final static MessageListParams.Builderbuilder()Returns a mutable builder for constructing an instance of MessageListParams. -
-
Method Detail
-
channelId
final Optional<String> channelId()
Limits the results to items with the corresponding channel ID.
-
engagementStatus
final Optional<List<MessageListParams.EngagementStatus>> engagementStatus()
Limits the results to messages with the given engagement status.
-
insertedAt
final Optional<MessageListParams.InsertedAt> insertedAt()
-
messageIds
final Optional<List<String>> messageIds()
Limits the results to only the message IDs given (max 50). Note: when using this option, the results will be subject to any other filters applied to the query.
-
source
final Optional<String> source()
Limits the results to messages triggered by the given workflow key.
-
status
final Optional<List<MessageListParams.Status>> status()
Limits the results to messages with the given delivery status.
-
triggerData
final Optional<String> triggerData()
Limits the results to only messages that were generated with the given data. See /api-reference/overview/trigger-data-filtering for more information.
-
workflowCategories
final Optional<List<String>> workflowCategories()
Limits the results to messages related to any of the provided categories.
-
workflowRecipientRunId
final Optional<String> workflowRecipientRunId()
Limits the results to messages for a specific recipient's workflow run.
-
workflowRunId
final Optional<String> workflowRunId()
Limits the results to messages associated with the top-level workflow run ID returned by the workflow trigger request.
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
toBuilder
final MessageListParams.Builder toBuilder()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
none
final static MessageListParams none()
-
builder
final static MessageListParams.Builder builder()
Returns a mutable builder for constructing an instance of MessageListParams.
-
-
-
-