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>

public final class ResponsesInputContentFile extends ResponsesContent
The ResponsesInputContentFile model.
  • Constructor Details

    • ResponsesInputContentFile

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

    • getType

      public ResponsesContentType getType()
      Get the type property: The type property.
      Overrides:
      getType in class ResponsesContent
      Returns:
      the type value.
    • getFileId

      public String getFileId()
      Get the fileId property: The file_id property.
      Returns:
      the fileId value.
    • setFileId

      public ResponsesInputContentFile setFileId(String fileId)
      Set the fileId property: The file_id property.
      Parameters:
      fileId - the fileId value to set.
      Returns:
      the ResponsesInputContentFile object itself.
    • getFilename

      public String getFilename()
      Get the filename property: The filename property.
      Returns:
      the filename value.
    • setFilename

      public ResponsesInputContentFile setFilename(String filename)
      Set the filename property: The filename property.
      Parameters:
      filename - the filename value to set.
      Returns:
      the ResponsesInputContentFile object itself.
    • getFileData

      public String getFileData()
      Get the fileData property: The file_data property.
      Returns:
      the fileData value.
    • setFileData

      public ResponsesInputContentFile setFileData(String fileData)
      Set the fileData property: The file_data property.
      Parameters:
      fileData - the fileData value to set.
      Returns:
      the ResponsesInputContentFile 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<ResponsesContent>
      Overrides:
      toJson in class ResponsesContent
      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.