Package org.apache.gravitino.dto.tag
Class MetadataObjectDTO.Builder
java.lang.Object
org.apache.gravitino.dto.tag.MetadataObjectDTO.Builder
- Enclosing class:
- MetadataObjectDTO
Builder for constructing a Metadata Object DTO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the name of the metadata object.withParent(String parent) Sets the parent of the metadata object.withType(MetadataObject.Type type) Sets the type of the metadata object.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withParent
Sets the parent of the metadata object.- Parameters:
parent- The parent of the metadata object.- Returns:
- The builder.
-
withName
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
- Returns:
- The constructed Metadata Object DTO.
-