Class ResponseTextOptions

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

public final class ResponseTextOptions extends Object implements com.azure.json.JsonSerializable<ResponseTextOptions>
The ResponseTextOptions model.
  • Constructor Details

    • ResponseTextOptions

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

    • getFormat

      public ResponsesTextFormat getFormat()
      Get the format property: The format property.
      Returns:
      the format value.
    • setFormat

      public ResponseTextOptions setFormat(ResponsesTextFormat format)
      Set the format property: The format property.
      Parameters:
      format - the format value to set.
      Returns:
      the ResponseTextOptions 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<ResponseTextOptions>
      Throws:
      IOException
    • fromJson

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