Package ai.extend.types
Class ParseAsyncRequestFile.Builder
- java.lang.Object
-
- ai.extend.types.ParseAsyncRequestFile.Builder
-
- Enclosing class:
- ParseAsyncRequestFile
public static final class ParseAsyncRequestFile.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseAsyncRequestFilebuild()ParseAsyncRequestFile.BuilderfileId(java.lang.String fileId)ParseAsyncRequestFile.BuilderfileId(java.util.Optional<java.lang.String> fileId)If you already have an Extend file id (for instance from running a workflow or a previous file upload) then you can use that file id when running the parse endpoint so that it leverage any cached data that might be available.ParseAsyncRequestFile.BuilderfileName(java.lang.String fileName)ParseAsyncRequestFile.BuilderfileName(java.util.Optional<java.lang.String> fileName)The name of the file.ParseAsyncRequestFile.BuilderfileUrl(java.lang.String fileUrl)ParseAsyncRequestFile.BuilderfileUrl(java.util.Optional<java.lang.String> fileUrl)A URL to download the file.ParseAsyncRequestFile.Builderfrom(ParseAsyncRequestFile other)
-
-
-
Method Detail
-
from
public ParseAsyncRequestFile.Builder from(ParseAsyncRequestFile other)
-
fileName
public ParseAsyncRequestFile.Builder fileName(java.util.Optional<java.lang.String> fileName)
The name of the file. If not set, the file name is taken from the url.
-
fileName
public ParseAsyncRequestFile.Builder fileName(java.lang.String fileName)
-
fileUrl
public ParseAsyncRequestFile.Builder fileUrl(java.util.Optional<java.lang.String> fileUrl)
A URL to download the file. For production use cases, we recommend using presigned URLs with a 5-15 minute expiration time. One of
fileUrlorfileIdmust be provided.
-
fileUrl
public ParseAsyncRequestFile.Builder fileUrl(java.lang.String fileUrl)
-
fileId
public ParseAsyncRequestFile.Builder fileId(java.util.Optional<java.lang.String> fileId)
If you already have an Extend file id (for instance from running a workflow or a previous file upload) then you can use that file id when running the parse endpoint so that it leverage any cached data that might be available. The file id will start with "file_". One of
fileUrlorfileIdmust be provided.Example:
"file_xK9mLPqRtN3vS8wF5hB2cQ"
-
fileId
public ParseAsyncRequestFile.Builder fileId(java.lang.String fileId)
-
build
public ParseAsyncRequestFile build()
-
-