Class ResponsesTextFormatText

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

public final class ResponsesTextFormatText extends ResponsesTextFormat
The ResponsesTextFormatText model.
  • Constructor Details

    • ResponsesTextFormatText

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

    • getType

      public ResponsesTextFormatType getType()
      Get the type property: The type property.
      Overrides:
      getType in class ResponsesTextFormat
      Returns:
      the type value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResponsesTextFormat>
      Overrides:
      toJson in class ResponsesTextFormat
      Throws:
      IOException
    • fromJson

      public static ResponsesTextFormatText fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesTextFormatText from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesTextFormatText 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 ResponsesTextFormatText.