Class NotificationDTO.Builder
java.lang.Object
callofproject.dev.service.notification.dto.NotificationDTO.Builder
- Enclosing class:
NotificationDTO
Builder class for notification DTO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build notification DTO.setCreatedAt(LocalDateTime createdAt) Set Created at.setFromUserId(UUID fromUserId) Set from user id.setMessage(String message) Set message.setNotificationApproveLink(String approveLink) Set approval link.setNotificationData(Object notificationData) Set notification data.setNotificationDataType(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Set notification data type.setNotificationId(String notificationId) Set Notification id.setNotificationImage(String notificationImage) Set notification image.setNotificationLink(String notificationLink) Set notification link.setNotificationRejectLink(String rejectLink) Set reject link.setNotificationTitle(String notificationTitle) Set notification title.setNotificationType(callofproject.dev.nosql.enums.NotificationType notificationType) Set notification type.setRequestId(UUID requestId) Set request id.setToUserId(UUID toUserId) Set user id.
-
Constructor Details
-
Builder
public Builder()Constructor.
-
-
Method Details
-
setNotificationId
Set Notification id.- Parameters:
notificationId- represent the notification id.- Returns:
- Builder.
-
setNotificationApproveLink
Set approval link.- Parameters:
approveLink- represent the approval link.- Returns:
- Builder.
-
setNotificationRejectLink
Set reject link.- Parameters:
rejectLink- represent the reject link.- Returns:
- Builder.
-
setRequestId
Set request id.- Parameters:
requestId- represent the request id.- Returns:
- Builder.
-
setNotificationDataType
public NotificationDTO.Builder setNotificationDataType(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Set notification data type.- Parameters:
notificationDataType- represent the notification data type.- Returns:
- Builder.
-
setCreatedAt
Set Created at.- Parameters:
createdAt- represent the created at.- Returns:
- Builder.
-
setNotificationTitle
Set notification title.- Parameters:
notificationTitle- represent the notification title.- Returns:
- Builder.
-
setNotificationImage
Set notification image.- Parameters:
notificationImage- represent the notification image.- Returns:
- Builder.
-
setToUserId
Set user id.- Parameters:
toUserId- represent the user id.- Returns:
- Builder.
-
setFromUserId
Set from user id.- Parameters:
fromUserId- represent the from user id.- Returns:
- Builder.
-
setMessage
Set message.- Parameters:
message- represent the message.- Returns:
- Builder.
-
setNotificationType
public NotificationDTO.Builder setNotificationType(callofproject.dev.nosql.enums.NotificationType notificationType) Set notification type.- Parameters:
notificationType- represent the notification type.- Returns:
- Builder.
-
setNotificationData
Set notification data.- Parameters:
notificationData- represent the notification data.- Returns:
- Builder.
-
setNotificationLink
Set notification link.- Parameters:
notificationLink- represent the notification link.- Returns:
- Builder.
-
build
Build notification DTO.- Returns:
- NotificationDTO.
-