Class Notification.Builder
- java.lang.Object
-
- com.courier.api.resources.notifications.types.Notification.Builder
-
- All Implemented Interfaces:
Notification._FinalStage,Notification.CreatedAtStage,Notification.IdStage,Notification.NoteStage,Notification.RoutingStage,Notification.TopicIdStage,Notification.UpdatedAtStage
- Enclosing class:
- Notification
public static final class Notification.Builder extends java.lang.Object implements Notification.CreatedAtStage, Notification.UpdatedAtStage, Notification.IdStage, Notification.RoutingStage, Notification.TopicIdStage, Notification.NoteStage, Notification._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Notificationbuild()Notification.UpdatedAtStagecreatedAt(long createdAt)Notification.Builderfrom(Notification other)Notification.RoutingStageid(java.lang.String id)Notification._FinalStagenote(java.lang.String note)Notification.TopicIdStagerouting(MessageRouting routing)Notification._FinalStagetags(NotificationTag tags)Notification._FinalStagetags(java.util.Optional<NotificationTag> tags)Notification._FinalStagetitle(java.lang.String title)Notification._FinalStagetitle(java.util.Optional<java.lang.String> title)Notification.NoteStagetopicId(java.lang.String topicId)Notification.IdStageupdatedAt(long updatedAt)
-
-
-
Method Detail
-
from
public Notification.Builder from(Notification other)
- Specified by:
fromin interfaceNotification.CreatedAtStage
-
createdAt
public Notification.UpdatedAtStage createdAt(long createdAt)
- Specified by:
createdAtin interfaceNotification.CreatedAtStage
-
updatedAt
public Notification.IdStage updatedAt(long updatedAt)
- Specified by:
updatedAtin interfaceNotification.UpdatedAtStage
-
id
public Notification.RoutingStage id(java.lang.String id)
- Specified by:
idin interfaceNotification.IdStage
-
routing
public Notification.TopicIdStage routing(MessageRouting routing)
- Specified by:
routingin interfaceNotification.RoutingStage
-
topicId
public Notification.NoteStage topicId(java.lang.String topicId)
- Specified by:
topicIdin interfaceNotification.TopicIdStage
-
note
public Notification._FinalStage note(java.lang.String note)
- Specified by:
notein interfaceNotification.NoteStage
-
title
public Notification._FinalStage title(java.lang.String title)
- Specified by:
titlein interfaceNotification._FinalStage
-
title
public Notification._FinalStage title(java.util.Optional<java.lang.String> title)
- Specified by:
titlein interfaceNotification._FinalStage
-
tags
public Notification._FinalStage tags(NotificationTag tags)
- Specified by:
tagsin interfaceNotification._FinalStage
-
tags
public Notification._FinalStage tags(java.util.Optional<NotificationTag> tags)
- Specified by:
tagsin interfaceNotification._FinalStage
-
build
public Notification build()
- Specified by:
buildin interfaceNotification._FinalStage
-
-