Interface BusinessNotification.Builder
- All Known Subinterfaces:
BusinessNotification.ReceiverOrBuilder
- Enclosing interface:
BusinessNotification
public static interface BusinessNotification.Builder
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionmessage()Define the notification message you want to sendUse the given payload object to render the notification.Use the given notification template to render the notification.
-
Method Details
-
template
Use the given notification template to render the notification.
If not specified the
Defaulttemplate will be used.You can define your own templates in your projects CMS under the path
/Notification/business/Templates/{channel}/{Subject|Content}.For more information about templates read the Concepts>Notification>Templating chapter in the documentation.
- Parameters:
template-- Returns:
- builder for further composition of the notification
- API:
- This public API is available in Java.
-
message
BusinessNotification.MessageBuilder message()Define the notification message you want to send
- Returns:
- builder for further composition of the message
- API:
- This public API is available in Java.
-
payload
Use the given payload object to render the notification.
The payload can be used in the notification template by using the variable
payloadFor more information about templates read the Concepts>Notification>Templating chapter in the documentation.
- Parameters:
payload-- Returns:
- builder for further composition of the notification
- API:
- This public API is available in Java.
-