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(Date creationDate) |
NotificationBuilder |
withSender(String sender) |
NotificationBuilder |
withTargetUrl(String targetUrl) |
NotificationBuilder |
withTitle(String title) |
NotificationBuilder |
withTTLInSeconds(int ttlInSeconds) |
NotificationBuilder |
withType(String type) |
public NotificationBuilder withSender(String sender)
sender - Sender's namepublic NotificationBuilder withType(String type)
type - Notification's typepublic NotificationBuilder withCreationDate(Date creationDate)
creationDate - 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 Notification build()
build in interface io.vertigo.lang.Builder<Notification>Copyright © 2017. All Rights Reserved.