Class ModelVersionDTO.Builder

java.lang.Object
org.apache.gravitino.dto.model.ModelVersionDTO.Builder
Enclosing class:
ModelVersionDTO

public static class ModelVersionDTO.Builder extends Object
Builder for constructing a Model Version DTO.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withVersion

      public ModelVersionDTO.Builder withVersion(int version)
      Sets the version number of the model version.
      Parameters:
      version - The version number.
      Returns:
      The builder.
    • withComment

      public ModelVersionDTO.Builder withComment(String comment)
      Sets the comment of the model version.
      Parameters:
      comment - The comment.
      Returns:
      The builder.
    • withAliases

      public ModelVersionDTO.Builder withAliases(String[] aliases)
      Sets the aliases of the model version.
      Parameters:
      aliases - The aliases.
      Returns:
      The builder.
    • withUris

      public ModelVersionDTO.Builder withUris(Map<String,String> uris)
      Sets the URIs of the model version.
      Parameters:
      uris - The URIs.
      Returns:
      The builder.
    • withProperties

      public ModelVersionDTO.Builder withProperties(Map<String,String> properties)
      Sets the properties of the model version.
      Parameters:
      properties - The properties.
      Returns:
      The builder.
    • withAudit

      public ModelVersionDTO.Builder withAudit(AuditDTO audit)
      Sets the audit information of the model version.
      Parameters:
      audit - The audit information.
      Returns:
      The builder.
    • build

      public ModelVersionDTO build()
      Builds the Model Version DTO.
      Returns:
      The Model Version DTO.