public final class NotificationBuilder extends Object implements io.vertigo.lang.Builder<Notification>
| Constructor and Description |
|---|
NotificationBuilder()
Constructor.
|
NotificationBuilder(UUID uuid)
Constructor.
|
| 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 |
withType(String type) |
public NotificationBuilder()
public NotificationBuilder(UUID uuid)
uuid - Notification uuidpublic 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 withTargetUrl(String targetUrl)
targetUrl - Notification's target urlpublic Notification build()
build in interface io.vertigo.lang.Builder<Notification>Copyright © 2016. All Rights Reserved.