Class NotificationTemplates.Builder
- java.lang.Object
-
- com.courier.api.resources.templates.types.NotificationTemplates.Builder
-
- All Implemented Interfaces:
NotificationTemplates._FinalStage,NotificationTemplates.CreatedAtStage,NotificationTemplates.IdStage,NotificationTemplates.RoutingStage,NotificationTemplates.TitleStage,NotificationTemplates.UpdatedAtStage
- Enclosing class:
- NotificationTemplates
public static final class NotificationTemplates.Builder extends java.lang.Object implements NotificationTemplates.CreatedAtStage, NotificationTemplates.IdStage, NotificationTemplates.RoutingStage, NotificationTemplates.TitleStage, NotificationTemplates.UpdatedAtStage, NotificationTemplates._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationTemplates._FinalStageaddAllTags(java.util.List<Tag> tags)A list of tags attached to the notification.NotificationTemplates._FinalStageaddTags(Tag tags)A list of tags attached to the notification.NotificationTemplatesbuild()NotificationTemplates.IdStagecreatedAt(long createdAt)A UTC timestamp at which notification was created.NotificationTemplates.Builderfrom(NotificationTemplates other)NotificationTemplates.RoutingStageid(java.lang.String id)A unique identifier associated with the notification.NotificationTemplates.TitleStagerouting(RoutingStrategy routing)Routing strategy used by this notification.NotificationTemplates._FinalStagetags(java.util.List<Tag> tags)NotificationTemplates.UpdatedAtStagetitle(java.lang.String title)The title of the notification.NotificationTemplates._FinalStageupdatedAt(long updatedAt)A UTC timestamp at which notification was updated.
-
-
-
Method Detail
-
from
public NotificationTemplates.Builder from(NotificationTemplates other)
- Specified by:
fromin interfaceNotificationTemplates.CreatedAtStage
-
createdAt
public NotificationTemplates.IdStage createdAt(long createdAt)
A UTC timestamp at which notification was created. This is stored as a millisecond representation of the Unix epoch (the time passed since January 1, 1970).
- Specified by:
createdAtin interfaceNotificationTemplates.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public NotificationTemplates.RoutingStage id(java.lang.String id)
A unique identifier associated with the notification.
- Specified by:
idin interfaceNotificationTemplates.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
routing
public NotificationTemplates.TitleStage routing(RoutingStrategy routing)
Routing strategy used by this notification.
- Specified by:
routingin interfaceNotificationTemplates.RoutingStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public NotificationTemplates.UpdatedAtStage title(java.lang.String title)
The title of the notification.
- Specified by:
titlein interfaceNotificationTemplates.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public NotificationTemplates._FinalStage updatedAt(long updatedAt)
A UTC timestamp at which notification was updated. This is stored as a millisecond representation of the Unix epoch (the time passed since January 1, 1970).
- Specified by:
updatedAtin interfaceNotificationTemplates.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllTags
public NotificationTemplates._FinalStage addAllTags(java.util.List<Tag> tags)
A list of tags attached to the notification.
- Specified by:
addAllTagsin interfaceNotificationTemplates._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTags
public NotificationTemplates._FinalStage addTags(Tag tags)
A list of tags attached to the notification.
- Specified by:
addTagsin interfaceNotificationTemplates._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
public NotificationTemplates._FinalStage tags(java.util.List<Tag> tags)
- Specified by:
tagsin interfaceNotificationTemplates._FinalStage
-
build
public NotificationTemplates build()
- Specified by:
buildin interfaceNotificationTemplates._FinalStage
-
-