Class ResponsesOutputTextAnnotationUrlCitation
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesOutputTextAnnotation
com.azure.ai.openai.responses.models.ResponsesOutputTextAnnotationUrlCitation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesOutputTextAnnotation>
The ResponsesOutputTextAnnotationUrlCitation model.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsesOutputTextAnnotationUrlCitation(String url, String title, int startIndex, int endIndex) Creates an instance of ResponsesOutputTextAnnotationUrlCitation class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesOutputTextAnnotationUrlCitation from the JsonReader.intGet the endIndex property: The end_index property.intGet the startIndex property: The start_index property.getTitle()Get the title property: The title property.getType()Get the type property: The type property.getUrl()Get the url property: The 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
-
ResponsesOutputTextAnnotationUrlCitation
public ResponsesOutputTextAnnotationUrlCitation(String url, String title, int startIndex, int endIndex) Creates an instance of ResponsesOutputTextAnnotationUrlCitation class.- Parameters:
url- the url value to set.title- the title value to set.startIndex- the startIndex value to set.endIndex- the endIndex value to set.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesOutputTextAnnotation- Returns:
- the type value.
-
getUrl
Get the url property: The url property.- Returns:
- the url value.
-
getTitle
Get the title property: The title property.- Returns:
- the title value.
-
getStartIndex
public int getStartIndex()Get the startIndex property: The start_index property.- Returns:
- the startIndex value.
-
getEndIndex
public int getEndIndex()Get the endIndex property: The end_index property.- Returns:
- the endIndex value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesOutputTextAnnotation>- Overrides:
toJsonin classResponsesOutputTextAnnotation- Throws:
IOException
-
fromJson
public static ResponsesOutputTextAnnotationUrlCitation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesOutputTextAnnotationUrlCitation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesOutputTextAnnotationUrlCitation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ResponsesOutputTextAnnotationUrlCitation.
-