public final class NotificationBuilder extends Object implements io.vertigo.lang.Builder<Notification>
| Modifier and Type | Method and Description |
|---|---|
Notification |
build() |
NotificationBuilder |
withContent(String content) |
NotificationBuilder |
withCreationDate(java.time.Instant creationInstant) |
NotificationBuilder |
withSender(String sender) |
NotificationBuilder |
withTargetUrl(String targetUrl) |
NotificationBuilder |
withTitle(String title) |
NotificationBuilder |
withTTLInSeconds(int ttlInSeconds) |
NotificationBuilder |
withType(String type) |
NotificationBuilder |
withUserContent(String userContent) |
public NotificationBuilder withSender(String sender)
sender - Sender's namepublic NotificationBuilder withType(String type)
type - Notification's typepublic NotificationBuilder withCreationDate(java.time.Instant creationInstant)
creationInstant - Creation datepublic NotificationBuilder withTitle(String title)
title - Notification's titlepublic NotificationBuilder withContent(String content)
content - Notification's contentpublic NotificationBuilder withTTLInSeconds(int ttlInSeconds)
ttlInSeconds - Notification's TimeToLivepublic NotificationBuilder withTargetUrl(String targetUrl)
targetUrl - Notification's target urlpublic NotificationBuilder withUserContent(String userContent)
userContent - Notification's userContent ("" and null are translated to Optional.empty)public Notification build()
build in interface io.vertigo.lang.Builder<Notification>Copyright © 2019. All Rights Reserved.