Class TopicDTO.Builder

java.lang.Object
org.apache.gravitino.dto.messaging.TopicDTO.Builder
Enclosing class:
TopicDTO

public static class TopicDTO.Builder extends Object
A builder for constructing a Topic DTO.
  • Method Details

    • withName

      public TopicDTO.Builder withName(String name)
      Sets the name of the topic.
      Parameters:
      name - The name of the topic.
      Returns:
      The builder instance.
    • withComment

      public TopicDTO.Builder withComment(String comment)
      Sets the comment associated with the topic.
      Parameters:
      comment - The comment associated with the topic.
      Returns:
      The builder instance.
    • withProperties

      public TopicDTO.Builder withProperties(Map<String,String> properties)
      Sets the properties associated with the topic.
      Parameters:
      properties - The properties associated with the topic.
      Returns:
      The builder instance.
    • withAudit

      public TopicDTO.Builder withAudit(AuditDTO audit)
      Sets the audit information for the topic.
      Parameters:
      audit - The audit information for the topic.
      Returns:
      The builder instance.
    • build

      public TopicDTO build()
      Returns:
      The constructed Topic DTO.