Class ResponsesInputContentFile
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesContent
com.azure.ai.openai.responses.models.ResponsesInputContentFile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesContent>
The ResponsesInputContentFile model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResponsesInputContentFile class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesInputContentFilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesInputContentFile from the JsonReader.Get the fileData property: The file_data property.Get the fileId property: The file_id property.Get the filename property: The filename property.getType()Get the type property: The type property.setFileData(String fileData) Set the fileData property: The file_data property.Set the fileId property: The file_id property.setFilename(String filename) Set the filename property: The filename property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResponsesInputContentFile
public ResponsesInputContentFile()Creates an instance of ResponsesInputContentFile class.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesContent- Returns:
- the type value.
-
getFileId
Get the fileId property: The file_id property.- Returns:
- the fileId value.
-
setFileId
Set the fileId property: The file_id property.- Parameters:
fileId- the fileId value to set.- Returns:
- the ResponsesInputContentFile object itself.
-
getFilename
Get the filename property: The filename property.- Returns:
- the filename value.
-
setFilename
Set the filename property: The filename property.- Parameters:
filename- the filename value to set.- Returns:
- the ResponsesInputContentFile object itself.
-
getFileData
Get the fileData property: The file_data property.- Returns:
- the fileData value.
-
setFileData
Set the fileData property: The file_data property.- Parameters:
fileData- the fileData value to set.- Returns:
- the ResponsesInputContentFile object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesContent>- Overrides:
toJsonin classResponsesContent- Throws:
IOException
-
fromJson
public static ResponsesInputContentFile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesInputContentFile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesInputContentFile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResponsesInputContentFile.
-