SetTaskPushNotificationResponseBuilder
DSL builder for SetTaskPushNotificationResponse.
Example usage:
val response = setTaskPushNotificationResponse {
id = myRequestId
result {
id = "task-123"
pushNotificationConfig {
url = "https://example.org/notifications"
token = "auth-token"
}
}
}Content copied to clipboard
Functions
Link copied to clipboard
Builds a SetTaskPushNotificationResponse instance with the configured parameters.
Link copied to clipboard
Sets the error.
Link copied to clipboard
Sets the ID of the response.
Link copied to clipboard
Sets the result task push notification config.
fun result(init: Consumer<TaskPushNotificationConfigBuilder>): SetTaskPushNotificationResponseBuilder
Configures the result task push notification config using a Java-friendly Consumer.
fun result(init: TaskPushNotificationConfigBuilder.() -> Unit): SetTaskPushNotificationResponseBuilder
Configures the result task push notification config using a lambda with receiver.