Package com.azure.ai.openai.models
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 Summary
ConstructorsConstructorDescriptionMongoDBChatExtensionParametersFieldsMapping(List<String> contentFields, List<String> vectorFields) Creates an instance of MongoDBChatExtensionParametersFieldsMapping class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MongoDBChatExtensionParametersFieldsMapping from the JsonReader.Get the contentFields property: The content_fields property.Get the contentFieldsSeparator property: The content_fields_separator property.Get the filepathField property: The filepath_field property.Get the titleField property: The title_field property.Get the urlField property: The url_field property.Get the vectorFields property: The vector_fields property.setContentFieldsSeparator(String contentFieldsSeparator) Set the contentFieldsSeparator property: The content_fields_separator property.setFilepathField(String filepathField) Set the filepathField property: The filepath_field property.setTitleField(String titleField) Set the titleField property: The title_field property.setUrlField(String urlField) Set the urlField property: The url_field 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
-
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
Get the contentFields property: The content_fields property.- Returns:
- the contentFields value.
-
getVectorFields
Get the vectorFields property: The vector_fields property.- Returns:
- the vectorFields value.
-
getTitleField
Get the titleField property: The title_field property.- Returns:
- the titleField value.
-
setTitleField
Set the titleField property: The title_field property.- Parameters:
titleField- the titleField value to set.- Returns:
- the MongoDBChatExtensionParametersFieldsMapping object itself.
-
getUrlField
Get the urlField property: The url_field property.- Returns:
- the urlField value.
-
setUrlField
Set the urlField property: The url_field property.- Parameters:
urlField- the urlField value to set.- Returns:
- the MongoDBChatExtensionParametersFieldsMapping object itself.
-
getFilepathField
Get the filepathField property: The filepath_field property.- Returns:
- the filepathField value.
-
setFilepathField
Set the filepathField property: The filepath_field property.- Parameters:
filepathField- the filepathField value to set.- Returns:
- the MongoDBChatExtensionParametersFieldsMapping object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-