Package org.apache.gravitino.dto.tag
Class TagDTO.Builder
java.lang.Object
org.apache.gravitino.dto.tag.TagDTO.Builder
- Enclosing class:
- TagDTO
Builder class for constructing TagDTO instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the audit information for the tag.withComment(String comment) Sets the comment associated with the tag.withInherited(Optional<Boolean> inherited) Sets whether the tag is inherited.Sets the name of the tag.withProperties(Map<String, String> properties) Sets the properties associated with the tag.
-
Method Details
-
withName
Sets the name of the tag.- Parameters:
name- The name of the tag.- Returns:
- The builder instance.
-
withComment
Sets the comment associated with the tag.- Parameters:
comment- The comment associated with the tag.- Returns:
- The builder instance.
-
withProperties
Sets the properties associated with the tag.- Parameters:
properties- The properties associated with the tag.- Returns:
- The builder instance.
-
withAudit
Sets the audit information for the tag.- Parameters:
audit- The audit information for the tag.- Returns:
- The builder instance.
-
withInherited
Sets whether the tag is inherited.- Parameters:
inherited- Whether the tag is inherited.- Returns:
- The builder instance.
-
build
- Returns:
- The constructed Tag DTO.
-