Package io.vertigo.social.notification
Class NotificationBuilder
java.lang.Object
io.vertigo.social.notification.NotificationBuilder
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<Notification>
public final class NotificationBuilder
extends Object
implements io.vertigo.core.lang.Builder<Notification>
- Author:
- pchretien
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withContent(String content) withCreationDate(Instant creationInstant) withSender(String sender) withTargetUrl(String targetUrl) withTTLInSeconds(int ttlInSeconds) withUserContent(String userContent)
-
Method Details
-
withSender
- Parameters:
sender- Sender's name- Returns:
- this builder
-
withType
- Parameters:
type- Notification's type- Returns:
- this builder
-
withCreationDate
- Parameters:
creationInstant- Creation date- Returns:
- this builder
-
withTitle
- Parameters:
title- Notification's title- Returns:
- this builder
-
withContent
- Parameters:
content- Notification's content- Returns:
- this builder
-
withTTLInSeconds
- Parameters:
ttlInSeconds- Notification's TimeToLive- Returns:
- this builder
-
withTargetUrl
- Parameters:
targetUrl- Notification's target url- Returns:
- this builder
-
withUserContent
- Parameters:
userContent- Notification's userContent ("" and null are translated to Optional.empty)- Returns:
- this builder
-
build
- Specified by:
buildin interfaceio.vertigo.core.lang.Builder<Notification>
-