Class TopicDTO.Builder
java.lang.Object
org.apache.gravitino.dto.messaging.TopicDTO.Builder
- Enclosing class:
- TopicDTO
A builder for constructing a Topic DTO.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets the audit information for the topic.withComment
(String comment) Sets the comment associated with the topic.Sets the name of the topic.withProperties
(Map<String, String> properties) Sets the properties associated with the topic.
-
Method Details
-
withName
Sets the name of the topic.- Parameters:
name
- The name of the topic.- Returns:
- The builder instance.
-
withComment
Sets the comment associated with the topic.- Parameters:
comment
- The comment associated with the topic.- Returns:
- The builder instance.
-
withProperties
Sets the properties associated with the topic.- Parameters:
properties
- The properties associated with the topic.- Returns:
- The builder instance.
-
withAudit
Sets the audit information for the topic.- Parameters:
audit
- The audit information for the topic.- Returns:
- The builder instance.
-
build
- Returns:
- The constructed Topic DTO.
-