Package org.apache.gravitino.dto.file
Class FileInfoDTO.FileInfoDTOBuilder
java.lang.Object
org.apache.gravitino.dto.file.FileInfoDTO.FileInfoDTOBuilder
- Enclosing class:
- FileInfoDTO
Builder for FileInfoDTO.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the FileInfoDTO.isDir
(boolean isDir) Set the isDir of the FileInfo.lastModified
(long lastModified) Set the lastModified of the FileInfo.Set the name of the FileInfo.Set the path of the FileInfo.size
(long size) Set the size of the FileInfo.
-
Method Details
-
name
Set the name of the FileInfo.- Parameters:
name
- The name of the file.- Returns:
- The builder instance.
-
isDir
Set the isDir of the FileInfo.- Parameters:
isDir
- The isDir of the file.- Returns:
- The builder instance.
-
size
Set the size of the FileInfo.- Parameters:
size
- The size of the file.- Returns:
- The builder instance.
-
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
Build the FileInfoDTO.- Returns:
- The built FileInfoDTO.
-