Package org.apache.gravitino.dto
Class MetalakeDTO.Builder<S extends MetalakeDTO.Builder>
java.lang.Object
org.apache.gravitino.dto.MetalakeDTO.Builder<S>
- Type Parameters:
S
- The type of the builder subclass.
- Enclosing class:
- MetalakeDTO
A builder class for constructing instances of MetalakeDTO.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an instance of MetalakeDTO using the builder's properties.Sets the audit information of the Metalake DTO.withComment
(String comment) Sets the comment of the Metalake DTO.Sets the name of the Metalake DTO.withProperties
(Map<String, String> properties) Sets the properties of the Metalake DTO.
-
Field Details
-
name
The name of the Metalake DTO. -
comment
The comment of the Metalake DTO. -
properties
The properties of the Metalake DTO. -
audit
The audit information of the Metalake DTO.
-
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
withName
Sets the name of the Metalake DTO.- Parameters:
name
- The name of the Metalake DTO.- Returns:
- The builder instance.
-
withComment
Sets the comment of the Metalake DTO.- Parameters:
comment
- The comment of the Metalake DTO.- Returns:
- The builder instance.
-
withProperties
Sets the properties of the Metalake DTO.- Parameters:
properties
- The properties of the Metalake DTO.- Returns:
- The builder instance.
-
withAudit
Sets the audit information of the Metalake DTO.- Parameters:
audit
- The audit information of the Metalake DTO.- Returns:
- The builder instance.
-
build
Builds an instance of MetalakeDTO using the builder's properties.- Returns:
- An instance of MetalakeDTO.
- Throws:
IllegalArgumentException
- If the name or audit are not set.
-