Class FileDetails
java.lang.Object
com.azure.ai.openai.assistants.models.FileDetails
The file details for the "file" field.
-
Constructor Summary
ConstructorsConstructorDescriptionFileDetails
(com.azure.core.util.BinaryData content, String filename) Creates an instance of FileDetails class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.BinaryData
Get the content property: The content of the file.Get the contentType property: The content-type of the file.Get the filename property: The filename of the file.setContentType
(String contentType) Set the contentType property: The content-type of the file.setFilename
(String filename) Set the filename property: The filename of the file.
-
Constructor Details
-
FileDetails
Creates an instance of FileDetails class.- Parameters:
content
- the content value to set.filename
- the filename of the file.
-
-
Method Details
-
getContent
public com.azure.core.util.BinaryData getContent()Get the content property: The content of the file.- Returns:
- the content value.
-
getFilename
Get the filename property: The filename of the file.- Returns:
- the filename value.
-
setFilename
Set the filename property: The filename of the file.- Parameters:
filename
- the filename value to set.- Returns:
- the FileDetails object itself.
-
getContentType
Get the contentType property: The content-type of the file.- Returns:
- the contentType value.
-
setContentType
Set the contentType property: The content-type of the file.- Parameters:
contentType
- the contentType value to set.- Returns:
- the FileDetails object itself.
-