Package ai.extend.types
Class BatchWorkflowRunFileInput.Builder
- java.lang.Object
-
- ai.extend.types.BatchWorkflowRunFileInput.Builder
-
- Enclosing class:
- BatchWorkflowRunFileInput
public static final class BatchWorkflowRunFileInput.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchWorkflowRunFileInputbuild()BatchWorkflowRunFileInput.BuilderfileId(java.lang.String fileId)BatchWorkflowRunFileInput.BuilderfileId(java.util.Optional<java.lang.String> fileId)Extend's internal ID for the file.BatchWorkflowRunFileInput.BuilderfileName(java.lang.String fileName)BatchWorkflowRunFileInput.BuilderfileName(java.util.Optional<java.lang.String> fileName)The name to associate with the file.BatchWorkflowRunFileInput.BuilderfileUrl(java.lang.String fileUrl)BatchWorkflowRunFileInput.BuilderfileUrl(java.util.Optional<java.lang.String> fileUrl)A URL where the file can be downloaded from.BatchWorkflowRunFileInput.Builderfrom(BatchWorkflowRunFileInput other)
-
-
-
Method Detail
-
from
public BatchWorkflowRunFileInput.Builder from(BatchWorkflowRunFileInput other)
-
fileName
public BatchWorkflowRunFileInput.Builder fileName(java.util.Optional<java.lang.String> fileName)
The name to associate with the file. If not provided when using
fileUrl, the name may be inferred from the URL. This param is only for your reference, and will be rendered in our dashboard, it is not used by the workflow.
-
fileName
public BatchWorkflowRunFileInput.Builder fileName(java.lang.String fileName)
-
fileUrl
public BatchWorkflowRunFileInput.Builder fileUrl(java.util.Optional<java.lang.String> fileUrl)
A URL where the file can be downloaded from. If you use presigned URLs, we suggest a slightly longer expiration time, ideally 30 minutes for a worst case scenario. One of a
fileUrlorfileIdmust be provided.
-
fileUrl
public BatchWorkflowRunFileInput.Builder fileUrl(java.lang.String fileUrl)
-
fileId
public BatchWorkflowRunFileInput.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.Example:
"file_Zk9mNP12Qw4yTv8BdR3H"
-
fileId
public BatchWorkflowRunFileInput.Builder fileId(java.lang.String fileId)
-
build
public BatchWorkflowRunFileInput build()
-
-