Class UpdateCodeInterpreterToolResourceOptions
java.lang.Object
com.azure.ai.openai.assistants.models.UpdateCodeInterpreterToolResourceOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateCodeInterpreterToolResourceOptions>
public final class UpdateCodeInterpreterToolResourceOptions
extends Object
implements com.azure.json.JsonSerializable<UpdateCodeInterpreterToolResourceOptions>
Request object to update `code_interpreted` tool resources.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UpdateCodeInterpreterToolResourceOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of UpdateCodeInterpreterToolResourceOptions from the JsonReader.Get the fileIds property: A list of file IDs to override the current list of the assistant.setFileIds
(List<String> fileIds) Set the fileIds property: A list of file IDs to override the current list of the assistant.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UpdateCodeInterpreterToolResourceOptions
public UpdateCodeInterpreterToolResourceOptions()Creates an instance of UpdateCodeInterpreterToolResourceOptions class.
-
-
Method Details
-
getFileIds
Get the fileIds property: A list of file IDs to override the current list of the assistant.- Returns:
- the fileIds value.
-
setFileIds
Set the fileIds property: A list of file IDs to override the current list of the assistant.- Parameters:
fileIds
- the fileIds value to set.- Returns:
- the UpdateCodeInterpreterToolResourceOptions object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<UpdateCodeInterpreterToolResourceOptions>
- Throws:
IOException
-
fromJson
public static UpdateCodeInterpreterToolResourceOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UpdateCodeInterpreterToolResourceOptions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of UpdateCodeInterpreterToolResourceOptions 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 UpdateCodeInterpreterToolResourceOptions.
-