Class FileInfoDTO.FileInfoDTOBuilder

java.lang.Object
org.apache.gravitino.dto.file.FileInfoDTO.FileInfoDTOBuilder
Enclosing class:
FileInfoDTO

public static class FileInfoDTO.FileInfoDTOBuilder extends Object
Builder for FileInfoDTO.
  • Method Details

    • name

      Set the name of the FileInfo.
      Parameters:
      name - The name of the file.
      Returns:
      The builder instance.
    • isDir

      public FileInfoDTO.FileInfoDTOBuilder isDir(boolean isDir)
      Set the isDir of the FileInfo.
      Parameters:
      isDir - The isDir of the file.
      Returns:
      The builder instance.
    • size

      public FileInfoDTO.FileInfoDTOBuilder size(long size)
      Set the size of the FileInfo.
      Parameters:
      size - The size of the file.
      Returns:
      The builder instance.
    • lastModified

      public FileInfoDTO.FileInfoDTOBuilder lastModified(long lastModified)
      Set the lastModified of the FileInfo.
      Parameters:
      lastModified - The lastModified of the file.
      Returns:
      The builder instance.
    • path

      Set the path of the FileInfo.
      Parameters:
      path - The path of the file.
      Returns:
      The builder instance.
    • build

      public FileInfoDTO build()
      Build the FileInfoDTO.
      Returns:
      The built FileInfoDTO.