Package ai.extend.types
Class WorkflowRunFileInput
- java.lang.Object
-
- ai.extend.types.WorkflowRunFileInput
-
public final class WorkflowRunFileInput extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowRunFileInput.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowRunFileInput.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()java.util.Optional<java.util.List<WorkflowRunFileInputOutputsItem>>getOutputs()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getFileName
public java.util.Optional<java.lang.String> getFileName()
- Returns:
- 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.
-
getFileUrl
public java.util.Optional<java.lang.String> getFileUrl()
- Returns:
- 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.
-
getFileId
public java.util.Optional<java.lang.String> getFileId()
- Returns:
- 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"
-
getOutputs
public java.util.Optional<java.util.List<WorkflowRunFileInputOutputsItem>> getOutputs()
- Returns:
- 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.
-
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 WorkflowRunFileInput.Builder builder()
-
-