Class MetadataObjectDTO.Builder

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

public static class MetadataObjectDTO.Builder extends Object
Builder for constructing a Metadata Object DTO.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withParent

      public MetadataObjectDTO.Builder withParent(String parent)
      Sets the parent of the metadata object.
      Parameters:
      parent - The parent of the metadata object.
      Returns:
      The builder.
    • withName

      public MetadataObjectDTO.Builder withName(String name)
      Sets the name of the metadata object.
      Parameters:
      name - The name of the metadata object.
      Returns:
      The builder.
    • withType

      Sets the type of the metadata object.
      Parameters:
      type - The type of the metadata object.
      Returns:
      The builder.
    • build

      public MetadataObjectDTO build()
      Returns:
      The constructed Metadata Object DTO.