Class NotificationDTO.Builder

java.lang.Object
callofproject.dev.service.notification.dto.NotificationDTO.Builder
Enclosing class:
NotificationDTO

public static class NotificationDTO.Builder extends Object
Builder class for notification DTO.
  • Constructor Details

    • Builder

      public Builder()
      Constructor.
  • Method Details

    • setNotificationId

      public NotificationDTO.Builder setNotificationId(String notificationId)
      Set Notification id.
      Parameters:
      notificationId - represent the notification id.
      Returns:
      Builder.
    • setNotificationApproveLink

      public NotificationDTO.Builder setNotificationApproveLink(String approveLink)
      Set approval link.
      Parameters:
      approveLink - represent the approval link.
      Returns:
      Builder.
    • setNotificationRejectLink

      public NotificationDTO.Builder setNotificationRejectLink(String rejectLink)
      Set reject link.
      Parameters:
      rejectLink - represent the reject link.
      Returns:
      Builder.
    • setRequestId

      public NotificationDTO.Builder setRequestId(UUID requestId)
      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

      public NotificationDTO.Builder setCreatedAt(LocalDateTime createdAt)
      Set Created at.
      Parameters:
      createdAt - represent the created at.
      Returns:
      Builder.
    • setNotificationTitle

      public NotificationDTO.Builder setNotificationTitle(String notificationTitle)
      Set notification title.
      Parameters:
      notificationTitle - represent the notification title.
      Returns:
      Builder.
    • setNotificationImage

      public NotificationDTO.Builder setNotificationImage(String notificationImage)
      Set notification image.
      Parameters:
      notificationImage - represent the notification image.
      Returns:
      Builder.
    • setToUserId

      public NotificationDTO.Builder setToUserId(UUID toUserId)
      Set user id.
      Parameters:
      toUserId - represent the user id.
      Returns:
      Builder.
    • setFromUserId

      public NotificationDTO.Builder setFromUserId(UUID fromUserId)
      Set from user id.
      Parameters:
      fromUserId - represent the from user id.
      Returns:
      Builder.
    • setMessage

      public NotificationDTO.Builder setMessage(String message)
      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

      public NotificationDTO.Builder setNotificationData(Object notificationData)
      Set notification data.
      Parameters:
      notificationData - represent the notification data.
      Returns:
      Builder.
    • setNotificationLink

      public NotificationDTO.Builder setNotificationLink(String notificationLink)
      Set notification link.
      Parameters:
      notificationLink - represent the notification link.
      Returns:
      Builder.
    • build

      public NotificationDTO build()
      Build notification DTO.
      Returns:
      NotificationDTO.