Package ai.extend.types
Class FileFromUrl.Builder
- java.lang.Object
-
- ai.extend.types.FileFromUrl.Builder
-
- All Implemented Interfaces:
FileFromUrl._FinalStage,FileFromUrl.UrlStage
- Enclosing class:
- FileFromUrl
public static final class FileFromUrl.Builder extends java.lang.Object implements FileFromUrl.UrlStage, FileFromUrl._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileFromUrlbuild()FileFromUrl.Builderfrom(FileFromUrl other)FileFromUrl._FinalStagename(java.lang.String name)The name of the file.FileFromUrl._FinalStagename(java.util.Optional<java.lang.String> name)The name of the file.FileFromUrl._FinalStagesettings(FileFromUrlSettings settings)Optional settings for the file, such as a password for password-protected PDFs.FileFromUrl._FinalStagesettings(java.util.Optional<FileFromUrlSettings> settings)Optional settings for the file, such as a password for password-protected PDFs.FileFromUrl._FinalStageurl(java.lang.String url)A URL to download the file.
-
-
-
Method Detail
-
from
public FileFromUrl.Builder from(FileFromUrl other)
- Specified by:
fromin interfaceFileFromUrl.UrlStage
-
url
public FileFromUrl._FinalStage url(@NotNull java.lang.String url)
A URL to download the file. For production use cases, we recommend using presigned URLs with a 5-15 minute expiration time.
Supported file types can be found here.
A URL to download the file. For production use cases, we recommend using presigned URLs with a 5-15 minute expiration time.
Supported file types can be found here.
- Specified by:
urlin interfaceFileFromUrl.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
settings
public FileFromUrl._FinalStage settings(FileFromUrlSettings settings)
Optional settings for the file, such as a password for password-protected PDFs.
- Specified by:
settingsin interfaceFileFromUrl._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
settings
public FileFromUrl._FinalStage settings(java.util.Optional<FileFromUrlSettings> settings)
Optional settings for the file, such as a password for password-protected PDFs.
- Specified by:
settingsin interfaceFileFromUrl._FinalStage
-
name
public FileFromUrl._FinalStage name(java.lang.String name)
The name of the file. If not set, the file name is taken from the URL.
- Specified by:
namein interfaceFileFromUrl._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public FileFromUrl._FinalStage name(java.util.Optional<java.lang.String> name)
The name of the file. If not set, the file name is taken from the URL.
- Specified by:
namein interfaceFileFromUrl._FinalStage
-
build
public FileFromUrl build()
- Specified by:
buildin interfaceFileFromUrl._FinalStage
-
-