Package callofproject.dev.project.dto
Class ProjectParticipantNotificationDTO.Builder
java.lang.Object
callofproject.dev.project.dto.ProjectParticipantNotificationDTO.Builder
- Enclosing class:
ProjectParticipantNotificationDTO
Builder class for creating instances of
ProjectParticipantNotificationDTO.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the finalProjectParticipantNotificationDTOinstance.setApproveLink(String approveLink) Sets the approval link for the notification.setFromUserId(UUID fromUserId) Sets the sender user's ID.setMessage(String message) Sets the notification message.setNotificationData(Object notificationData) Sets the notification data.setNotificationDataType(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Sets the notification data type.setNotificationImage(String notificationImage) Sets the notification image.setNotificationLink(String notificationLink) Sets the notification link.setNotificationTitle(String notificationTitle) Sets the notification title.setNotificationType(callofproject.dev.nosql.enums.NotificationType notificationType) Sets the notification type.setRejectLink(String rejectLink) Sets the rejection link for the notification.setRequestId(UUID requestId) Sets the request ID associated with the notification.setToUserId(UUID toUserId) Sets the recipient user's ID.
-
Constructor Details
-
Builder
public Builder()Constructs a new builder instance.
-
-
Method Details
-
setNotificationTitle
Sets the notification title.- Parameters:
notificationTitle- The title of the notification.- Returns:
- The builder instance for method chaining.
-
setNotificationDataType
public ProjectParticipantNotificationDTO.Builder setNotificationDataType(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Sets the notification data type.- Parameters:
notificationDataType- The data type of the notification.- Returns:
- The builder instance for method chaining.
-
setRequestId
Sets the request ID associated with the notification.- Parameters:
requestId- The ID of the associated request.- Returns:
- The builder instance for method chaining.
-
setNotificationImage
Sets the notification image.- Parameters:
notificationImage- The image associated with the notification.- Returns:
- The builder instance for method chaining.
-
setApproveLink
Sets the approval link for the notification.- Parameters:
approveLink- The approval link associated with the notification.- Returns:
- The builder instance for method chaining.
-
setRejectLink
Sets the rejection link for the notification.- Parameters:
rejectLink- The rejection link associated with the notification.- Returns:
- The builder instance for method chaining.
-
setToUserId
Sets the recipient user's ID.- Parameters:
toUserId- The recipient user's ID.- Returns:
- The builder instance for method chaining.
-
setFromUserId
Sets the sender user's ID.- Parameters:
fromUserId- The sender user's ID.- Returns:
- The builder instance for method chaining.
-
setMessage
Sets the notification message.- Parameters:
message- The notification message.- Returns:
- The builder instance for method chaining.
-
setNotificationType
public ProjectParticipantNotificationDTO.Builder setNotificationType(callofproject.dev.nosql.enums.NotificationType notificationType) Sets the notification type.- Parameters:
notificationType- The type of the notification.- Returns:
- The builder instance for method chaining.
-
setNotificationData
Sets the notification data.- Parameters:
notificationData- The data associated with the notification.- Returns:
- The builder instance for method chaining.
-
setNotificationLink
Sets the notification link.- Parameters:
notificationLink- The link associated with the notification.- Returns:
- The builder instance for method chaining.
-
build
Builds and returns the finalProjectParticipantNotificationDTOinstance.- Returns:
- The built DTO instance.
-