Class MongoDBChatExtensionParametersFieldsMapping

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

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

    • MongoDBChatExtensionParametersFieldsMapping

      public MongoDBChatExtensionParametersFieldsMapping(List<String> contentFields, List<String> vectorFields)
      Creates an instance of MongoDBChatExtensionParametersFieldsMapping class.
      Parameters:
      contentFields - the contentFields value to set.
      vectorFields - the vectorFields value to set.
  • Method Details

    • getContentFields

      public List<String> getContentFields()
      Get the contentFields property: The content_fields property.
      Returns:
      the contentFields value.
    • getVectorFields

      public List<String> getVectorFields()
      Get the vectorFields property: The vector_fields property.
      Returns:
      the vectorFields value.
    • getTitleField

      public String getTitleField()
      Get the titleField property: The title_field property.
      Returns:
      the titleField value.
    • setTitleField

      public MongoDBChatExtensionParametersFieldsMapping setTitleField(String titleField)
      Set the titleField property: The title_field property.
      Parameters:
      titleField - the titleField value to set.
      Returns:
      the MongoDBChatExtensionParametersFieldsMapping object itself.
    • getUrlField

      public String getUrlField()
      Get the urlField property: The url_field property.
      Returns:
      the urlField value.
    • setUrlField

      public MongoDBChatExtensionParametersFieldsMapping setUrlField(String urlField)
      Set the urlField property: The url_field property.
      Parameters:
      urlField - the urlField value to set.
      Returns:
      the MongoDBChatExtensionParametersFieldsMapping object itself.
    • getFilepathField

      public String getFilepathField()
      Get the filepathField property: The filepath_field property.
      Returns:
      the filepathField value.
    • setFilepathField

      public MongoDBChatExtensionParametersFieldsMapping setFilepathField(String filepathField)
      Set the filepathField property: The filepath_field property.
      Parameters:
      filepathField - the filepathField value to set.
      Returns:
      the MongoDBChatExtensionParametersFieldsMapping object itself.
    • getContentFieldsSeparator

      public String getContentFieldsSeparator()
      Get the contentFieldsSeparator property: The content_fields_separator property.
      Returns:
      the contentFieldsSeparator value.
    • setContentFieldsSeparator

      public MongoDBChatExtensionParametersFieldsMapping setContentFieldsSeparator(String contentFieldsSeparator)
      Set the contentFieldsSeparator property: The content_fields_separator property.
      Parameters:
      contentFieldsSeparator - the contentFieldsSeparator value to set.
      Returns:
      the MongoDBChatExtensionParametersFieldsMapping 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<MongoDBChatExtensionParametersFieldsMapping>
      Throws:
      IOException
    • fromJson

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