Class WorkflowRunFileInput.Builder
- java.lang.Object
-
- ai.extend.types.WorkflowRunFileInput.Builder
-
- Enclosing class:
- WorkflowRunFileInput
public static final class WorkflowRunFileInput.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRunFileInputbuild()WorkflowRunFileInput.BuilderfileId(java.lang.String fileId)WorkflowRunFileInput.BuilderfileId(java.util.Optional<java.lang.String> fileId)Extend's internal ID for the file.WorkflowRunFileInput.BuilderfileName(java.lang.String fileName)WorkflowRunFileInput.BuilderfileName(java.util.Optional<java.lang.String> fileName)The name of the file to be processed.WorkflowRunFileInput.BuilderfileUrl(java.lang.String fileUrl)WorkflowRunFileInput.BuilderfileUrl(java.util.Optional<java.lang.String> fileUrl)A URL where the file can be downloaded from.WorkflowRunFileInput.Builderfrom(WorkflowRunFileInput other)WorkflowRunFileInput.Builderoutputs(java.util.List<WorkflowRunFileInputOutputsItem> outputs)WorkflowRunFileInput.Builderoutputs(java.util.Optional<java.util.List<WorkflowRunFileInputOutputsItem>> outputs)Predetermined outputs that can be used to override the outputs that are generated.
-
-
-
Method Detail
-
from
public WorkflowRunFileInput.Builder from(WorkflowRunFileInput other)
-
fileName
public WorkflowRunFileInput.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 WorkflowRunFileInput.Builder fileName(java.lang.String fileName)
-
fileUrl
public WorkflowRunFileInput.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 WorkflowRunFileInput.Builder fileUrl(java.lang.String fileUrl)
-
fileId
public WorkflowRunFileInput.Builder fileId(java.util.Optional<java.lang.String> fileId)
Extend's internal ID for the file. It will always start with "file_". One of a
fileUrlorfileIdmust 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.Example:
"file_Zk9mNP12Qw4yTv8BdR3H"
-
fileId
public WorkflowRunFileInput.Builder fileId(java.lang.String fileId)
-
outputs
public WorkflowRunFileInput.Builder outputs(java.util.Optional<java.util.List<WorkflowRunFileInputOutputsItem>> outputs)
Predetermined outputs that can be used to override the outputs that are generated. Generally not recommended for most use cases, however, can be useful in cases of overriding a classification in a workflow, or a subset of extraction fields when data is known.
-
outputs
public WorkflowRunFileInput.Builder outputs(java.util.List<WorkflowRunFileInputOutputsItem> outputs)
-
build
public WorkflowRunFileInput build()
-
-