Class NotificationKafkaDTO.Builder

java.lang.Object
callofproject.dev.community.dto.NotificationKafkaDTO.Builder
Enclosing class:
NotificationKafkaDTO

public static class NotificationKafkaDTO.Builder extends Object
Builder class for creating instances of NotificationKafkaDTO.
  • Constructor Details

    • Builder

      public Builder()
      Constructs a new builder instance.
  • Method Details

    • setNotificationTitle

      public NotificationKafkaDTO.Builder setNotificationTitle(String notificationTitle)
      Sets the notification title.
      Parameters:
      notificationTitle - The title of the notification.
      Returns:
      The builder instance for method chaining.
    • setNotificationDataType

      public NotificationKafkaDTO.Builder setNotificationDataType(callofproject.dev.data.common.enums.NotificationDataType notificationDataType)
      Sets the notification data type.
      Parameters:
      notificationDataType - The data type of the notification.
      Returns:
      The builder instance for method chaining.
    • setRequestId

      public NotificationKafkaDTO.Builder setRequestId(UUID requestId)
      Sets the request ID associated with the notification.
      Parameters:
      requestId - The ID of the associated request.
      Returns:
      The builder instance for method chaining.
    • setNotificationImage

      public NotificationKafkaDTO.Builder setNotificationImage(String notificationImage)
      Sets the notification image.
      Parameters:
      notificationImage - The image associated with the notification.
      Returns:
      The builder instance for method chaining.
    • setApproveLink

      public NotificationKafkaDTO.Builder setApproveLink(String approveLink)
      Sets the approval link for the notification.
      Parameters:
      approveLink - The approval link associated with the notification.
      Returns:
      The builder instance for method chaining.
    • setRejectLink

      public NotificationKafkaDTO.Builder setRejectLink(String rejectLink)
      Sets the rejection link for the notification.
      Parameters:
      rejectLink - The rejection link associated with the notification.
      Returns:
      The builder instance for method chaining.
    • setToUserId

      public NotificationKafkaDTO.Builder setToUserId(UUID toUserId)
      Sets the recipient user's ID.
      Parameters:
      toUserId - The recipient user's ID.
      Returns:
      The builder instance for method chaining.
    • setFromUserId

      public NotificationKafkaDTO.Builder setFromUserId(UUID fromUserId)
      Sets the sender user's ID.
      Parameters:
      fromUserId - The sender user's ID.
      Returns:
      The builder instance for method chaining.
    • setMessage

      public NotificationKafkaDTO.Builder setMessage(String message)
      Sets the notification message.
      Parameters:
      message - The notification message.
      Returns:
      The builder instance for method chaining.
    • setNotificationType

      public NotificationKafkaDTO.Builder setNotificationType(callofproject.dev.data.common.enums.NotificationType notificationType)
      Sets the notification type.
      Parameters:
      notificationType - The type of the notification.
      Returns:
      The builder instance for method chaining.
    • setNotificationData

      public NotificationKafkaDTO.Builder setNotificationData(Object notificationData)
      Sets the notification data.
      Parameters:
      notificationData - The data associated with the notification.
      Returns:
      The builder instance for method chaining.
    • setNotificationLink

      public NotificationKafkaDTO.Builder setNotificationLink(String notificationLink)
      Sets the notification link.
      Parameters:
      notificationLink - The link associated with the notification.
      Returns:
      The builder instance for method chaining.
    • build

      public NotificationKafkaDTO build()
      Builds and returns the final NotificationKafkaDTO instance.
      Returns:
      The built DTO instance.