Package org.apache.gravitino.dto.model
Class ModelDTO.Builder
java.lang.Object
org.apache.gravitino.dto.model.ModelDTO.Builder
- Enclosing class:
- ModelDTO
Builder for constructing a Model DTO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the model DTO.Sets the audit information associated with the model.withComment
(String comment) Sets the comment associated with the model.withLatestVersion
(int latestVersion) Sets the latest version of the model.Sets the name of the model.withProperties
(Map<String, String> properties) Sets the properties associated with the model.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withName
Sets the name of the model.- Parameters:
name
- The name of the model.- Returns:
- The builder.
-
withComment
Sets the comment associated with the model.- Parameters:
comment
- The comment associated with the model.- Returns:
- The builder.
-
withProperties
Sets the properties associated with the model.- Parameters:
properties
- The properties associated with the model.- Returns:
- The builder.
-
withLatestVersion
Sets the latest version of the model.- Parameters:
latestVersion
- The latest version of the model.- Returns:
- The builder.
-
withAudit
Sets the audit information associated with the model.- Parameters:
audit
- The audit information associated with the model.- Returns:
- The builder.
-
build
Builds the model DTO.- Returns:
- The model DTO.
-