Class ModelDTO.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • withName

      public ModelDTO.Builder withName(String name)
      Sets the name of the model.
      Parameters:
      name - The name of the model.
      Returns:
      The builder.
    • withComment

      public ModelDTO.Builder withComment(String comment)
      Sets the comment associated with the model.
      Parameters:
      comment - The comment associated with the model.
      Returns:
      The builder.
    • withProperties

      public ModelDTO.Builder withProperties(Map<String,String> properties)
      Sets the properties associated with the model.
      Parameters:
      properties - The properties associated with the model.
      Returns:
      The builder.
    • withLatestVersion

      public ModelDTO.Builder withLatestVersion(int latestVersion)
      Sets the latest version of the model.
      Parameters:
      latestVersion - The latest version of the model.
      Returns:
      The builder.
    • withAudit

      public ModelDTO.Builder withAudit(AuditDTO audit)
      Sets the audit information associated with the model.
      Parameters:
      audit - The audit information associated with the model.
      Returns:
      The builder.
    • build

      public ModelDTO build()
      Builds the model DTO.
      Returns:
      The model DTO.