Package org.apache.gravitino.dto
Class SchemaDTO.Builder<S extends SchemaDTO.Builder>
java.lang.Object
org.apache.gravitino.dto.SchemaDTO.Builder<S>
- Type Parameters:
S
- The type of the builder subclass.
- Enclosing class:
- SchemaDTO
Builder class for constructing SchemaDTO instances.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a Schema DTO based on the provided builder parameters.Sets the audit information for the schema.withComment
(String comment) Sets the comment associated with the schema.Sets the name of the schema.withProperties
(Map<String, String> properties) Sets the properties associated with the schema.
-
Field Details
-
name
The name of the schema. -
comment
The comment associated with the schema. -
properties
The properties associated with the schema. -
audit
The audit information for the schema.
-
-
Method Details
-
withName
Sets the name of the schema.- Parameters:
name
- The name of the schema.- Returns:
- The Builder instance.
-
withComment
Sets the comment associated with the schema.- Parameters:
comment
- The comment associated with the schema.- Returns:
- The Builder instance.
-
withProperties
Sets the properties associated with the schema.- Parameters:
properties
- The properties associated with the schema.- Returns:
- The Builder instance.
-
withAudit
Sets the audit information for the schema.- Parameters:
audit
- The audit information for the schema.- Returns:
- The Builder instance.
-
build
Builds a Schema DTO based on the provided builder parameters.- Returns:
- A new SchemaDTO instance.
- Throws:
IllegalArgumentException
- If required fields name and audit are not set.
-