Class ResponsesInputContentImage

java.lang.Object
com.azure.ai.openai.responses.models.ResponsesContent
com.azure.ai.openai.responses.models.ResponsesInputContentImage
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesContent>

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

    • ResponsesInputContentImage

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

    • getType

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

      public String getImageUrl()
      Get the imageUrl property: The image_url property.
      Returns:
      the imageUrl value.
    • setImageUrl

      public ResponsesInputContentImage setImageUrl(String imageUrl)
      Set the imageUrl property: The image_url property.
      Parameters:
      imageUrl - the imageUrl value to set.
      Returns:
      the ResponsesInputContentImage object itself.
    • getFileId

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

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

      Get the detail property: The detail property.
      Returns:
      the detail value.
    • setDetail

      Set the detail property: The detail property.
      Parameters:
      detail - the detail value to set.
      Returns:
      the ResponsesInputContentImage 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 ResponsesInputContentImage fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesInputContentImage from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesInputContentImage 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 ResponsesInputContentImage.