Package org.apache.gravitino.dto.model
Class ModelVersionDTO.Builder
java.lang.Object
org.apache.gravitino.dto.model.ModelVersionDTO.Builder
- Enclosing class:
- ModelVersionDTO
Builder for constructing a Model Version DTO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the Model Version DTO.withAliases(String[] aliases) Sets the aliases of the model version.Sets the audit information of the model version.withComment(String comment) Sets the comment of the model version.withProperties(Map<String, String> properties) Sets the properties of the model version.Sets the URIs of the model version.withVersion(int version) Sets the version number of the model version.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withVersion
Sets the version number of the model version.- Parameters:
version- The version number.- Returns:
- The builder.
-
withComment
Sets the comment of the model version.- Parameters:
comment- The comment.- Returns:
- The builder.
-
withAliases
Sets the aliases of the model version.- Parameters:
aliases- The aliases.- Returns:
- The builder.
-
withUris
Sets the URIs of the model version.- Parameters:
uris- The URIs.- Returns:
- The builder.
-
withProperties
Sets the properties of the model version.- Parameters:
properties- The properties.- Returns:
- The builder.
-
withAudit
Sets the audit information of the model version.- Parameters:
audit- The audit information.- Returns:
- The builder.
-
build
Builds the Model Version DTO.- Returns:
- The Model Version DTO.
-