Package ai.extend.types
Class ProcessorRunFileInput.Builder
- java.lang.Object
-
- ai.extend.types.ProcessorRunFileInput.Builder
-
- Enclosing class:
- ProcessorRunFileInput
public static final class ProcessorRunFileInput.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessorRunFileInputbuild()ProcessorRunFileInput.BuilderfileId(java.lang.String fileId)ProcessorRunFileInput.BuilderfileId(java.util.Optional<java.lang.String> fileId)Extend's internal ID for the file.ProcessorRunFileInput.BuilderfileName(java.lang.String fileName)ProcessorRunFileInput.BuilderfileName(java.util.Optional<java.lang.String> fileName)The name of the file to be processed.ProcessorRunFileInput.BuilderfileUrl(java.lang.String fileUrl)ProcessorRunFileInput.BuilderfileUrl(java.util.Optional<java.lang.String> fileUrl)A URL where the file can be downloaded from.ProcessorRunFileInput.Builderfrom(ProcessorRunFileInput other)
-
-
-
Method Detail
-
from
public ProcessorRunFileInput.Builder from(ProcessorRunFileInput other)
-
fileName
public ProcessorRunFileInput.Builder fileName(java.util.Optional<java.lang.String> fileName)
The name of the file to be processed. If not provided, the file name will be inferred from the URL. It is highly recommended to include this parameter for legibility.
-
fileName
public ProcessorRunFileInput.Builder fileName(java.lang.String fileName)
-
fileUrl
public ProcessorRunFileInput.Builder fileUrl(java.util.Optional<java.lang.String> fileUrl)
A URL where the file can be downloaded from. If you use presigned URLs, we recommend an expiration time of 5-15 minutes. One of a
fileUrlorfileIdmust be provided.
-
fileUrl
public ProcessorRunFileInput.Builder fileUrl(java.lang.String fileUrl)
-
fileId
public ProcessorRunFileInput.Builder fileId(java.util.Optional<java.lang.String> fileId)
Extend's internal ID for the file. It will always start with
file_. One of afileUrlorfileIdmust be provided. You can view a file ID from the Extend UI, for instance from running a parser or from a previous file creation. If you provide afileId, any parsed data will be reused.
-
fileId
public ProcessorRunFileInput.Builder fileId(java.lang.String fileId)
-
build
public ProcessorRunFileInput build()
-
-