Package ai.extend.types
Class ParseRequestFile
- java.lang.Object
-
- ai.extend.types.ParseRequestFile
-
public final class ParseRequestFile extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParseRequestFile.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParseRequestFile.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getFileId()java.util.Optional<java.lang.String>getFileName()java.util.Optional<java.lang.String>getFileUrl()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getFileName
public java.util.Optional<java.lang.String> getFileName()
- Returns:
- The name of the file. If not set, the file name is taken from the url.
-
getFileUrl
public java.util.Optional<java.lang.String> getFileUrl()
- Returns:
- 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.
-
getFileId
public java.util.Optional<java.lang.String> getFileId()
- Returns:
- 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"
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ParseRequestFile.Builder builder()
-
-