Package ai.extend.resources.edit.types
Class EditCreateRequestFile
- java.lang.Object
-
- ai.extend.resources.edit.types.EditCreateRequestFile
-
public final class EditCreateRequestFile extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEditCreateRequestFile.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EditCreateRequestFile.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 edit endpoint. 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 EditCreateRequestFile.Builder builder()
-
-