Class ParseRequestFile.Builder

  • Enclosing class:
    ParseRequestFile

    public static final class ParseRequestFile.Builder
    extends java.lang.Object
    • Method Detail

      • fileName

        public ParseRequestFile.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.

      • fileUrl

        public ParseRequestFile.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 fileUrl or fileId must be provided.

      • fileId

        public ParseRequestFile.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 fileUrl or fileId must be provided.

        Example: "file_xK9mLPqRtN3vS8wF5hB2cQ"