- Enclosing class:
- FileDownload
public static interface FileDownload.Builder
Allows creating a
FileDownload
with the specified FileDownload.Mode
.-
Method Summary
Modifier and TypeMethodDescriptiondefault FileDownload
Creates an attachedFileDownload
.build
(FileDownload.Mode mode) Creates aFileDownload
with the specifiedFileDownload.Mode
.default FileDownload
inline()
Creates an inlineFileDownload
.
-
Method Details
-
build
Creates aFileDownload
with the specifiedFileDownload.Mode
.- Parameters:
mode
- theFileDownload.Mode
- Returns:
- a
FileDownload
with the specified mode
-
attachment
Creates an attachedFileDownload
.- Returns:
- a
FileDownload
withFileDownload.Mode.ATTACHMENT
-
inline
Creates an inlineFileDownload
.- Returns:
- a
FileDownload
withFileDownload.Mode.INLINE
-