Class ResponsesTextFormatJsonSchema
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesTextFormat
com.azure.ai.openai.responses.models.ResponsesTextFormatJsonSchema
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesTextFormat>
The ResponsesTextFormatJsonSchema model.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsesTextFormatJsonSchema(String name, com.azure.core.util.BinaryData schema) Creates an instance of ResponsesTextFormatJsonSchema class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesTextFormatJsonSchema from the JsonReader.Get the description property: The description property.getName()Get the name property: The name property.com.azure.core.util.BinaryDataGet the schema property: The schema property.getType()Get the type property: The type property.isStrict()Get the strict property: The strict property.setDescription(String description) Set the description property: The description property.Set the strict property: The strict 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
-
ResponsesTextFormatJsonSchema
Creates an instance of ResponsesTextFormatJsonSchema class.- Parameters:
name- the name value to set.schema- the schema value to set.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesTextFormat- Returns:
- the type value.
-
getName
Get the name property: The name property.- Returns:
- the name value.
-
getSchema
public com.azure.core.util.BinaryData getSchema()Get the schema property: The schema property.- Returns:
- the schema value.
-
getDescription
Get the description property: The description property.- Returns:
- the description value.
-
setDescription
Set the description property: The description property.- Parameters:
description- the description value to set.- Returns:
- the ResponsesTextFormatJsonSchema object itself.
-
isStrict
Get the strict property: The strict property.- Returns:
- the strict value.
-
setStrict
Set the strict property: The strict property.- Parameters:
strict- the strict value to set.- Returns:
- the ResponsesTextFormatJsonSchema object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesTextFormat>- Overrides:
toJsonin classResponsesTextFormat- Throws:
IOException
-
fromJson
public static ResponsesTextFormatJsonSchema fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesTextFormatJsonSchema from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesTextFormatJsonSchema 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 ResponsesTextFormatJsonSchema.
-