Class UploadFileRequest
java.lang.Object
com.azure.ai.openai.assistants.models.UploadFileRequest
The UploadFileRequest model.
-
Constructor Summary
ConstructorsConstructorDescriptionUploadFileRequest
(FileDetails file, FilePurpose purpose) Creates an instance of UploadFileRequest class. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Get the file property: The file data (not filename) to upload.Get the filename property: A filename to associate with the uploaded data.Get the purpose property: The intended purpose of the file.setFilename
(String filename) Set the filename property: A filename to associate with the uploaded data.
-
Constructor Details
-
UploadFileRequest
Creates an instance of UploadFileRequest class.- Parameters:
file
- the file value to set.purpose
- the purpose value to set.
-
-
Method Details
-
getFile
Get the file property: The file data (not filename) to upload.- Returns:
- the file value.
-
getPurpose
Get the purpose property: The intended purpose of the file.- Returns:
- the purpose value.
-
getFilename
Get the filename property: A filename to associate with the uploaded data.- Returns:
- the filename value.
-
setFilename
Set the filename property: A filename to associate with the uploaded data.- Parameters:
filename
- the filename value to set.- Returns:
- the UploadFileRequest object itself.
-