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 Details

    • UpdateCodeInterpreterToolResourceOptions

      public UpdateCodeInterpreterToolResourceOptions()
      Creates an instance of UpdateCodeInterpreterToolResourceOptions class.
  • Method Details

    • getFileIds

      public List<String> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.