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>
The ResponsesInputContentImage model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResponsesInputContentImage class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesInputContentImagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesInputContentImage from the JsonReader.Get the detail property: The detail property.Get the fileId property: The file_id property.Get the imageUrl property: The image_url property.getType()Get the type property: The type property.Set the detail property: The detail property.Set the fileId property: The file_id property.setImageUrl(String imageUrl) Set the imageUrl property: The image_url 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
-
ResponsesInputContentImage
public ResponsesInputContentImage()Creates an instance of ResponsesInputContentImage class.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesContent- Returns:
- the type value.
-
getImageUrl
Get the imageUrl property: The image_url property.- Returns:
- the imageUrl value.
-
setImageUrl
Set the imageUrl property: The image_url property.- Parameters:
imageUrl- the imageUrl value to set.- Returns:
- the ResponsesInputContentImage object itself.
-
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 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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesContent>- Overrides:
toJsonin classResponsesContent- 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.
-