Class TagDTO.Builder

java.lang.Object
org.apache.gravitino.dto.tag.TagDTO.Builder
Enclosing class:
TagDTO

public static class TagDTO.Builder extends Object
Builder class for constructing TagDTO instances.
  • Method Details

    • withName

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

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

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

      public TagDTO.Builder withAudit(AuditDTO audit)
      Sets the audit information for the tag.
      Parameters:
      audit - The audit information for the tag.
      Returns:
      The builder instance.
    • withInherited

      public TagDTO.Builder withInherited(Optional<Boolean> inherited)
      Sets whether the tag is inherited.
      Parameters:
      inherited - Whether the tag is inherited.
      Returns:
      The builder instance.
    • build

      public TagDTO build()
      Returns:
      The constructed Tag DTO.