Class RemoteSharePointKnowledgeSourceParameters
java.lang.Object
com.azure.search.documents.indexes.models.RemoteSharePointKnowledgeSourceParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RemoteSharePointKnowledgeSourceParameters>
public final class RemoteSharePointKnowledgeSourceParameters
extends Object
implements com.azure.json.JsonSerializable<RemoteSharePointKnowledgeSourceParameters>
Parameters for remote SharePoint knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RemoteSharePointKnowledgeSourceParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RemoteSharePointKnowledgeSourceParameters from the JsonReader.Get the containerTypeId property: Container ID for SharePoint Embedded connection.Get the filterExpression property: Keyword Query Language (KQL) expression with queryable SharePoint properties and attributes to scope the retrieval before the query runs.Get the resourceMetadata property: A list of metadata fields to be returned for each item in the response.setContainerTypeId(String containerTypeId) Set the containerTypeId property: Container ID for SharePoint Embedded connection.setFilterExpression(String filterExpression) Set the filterExpression property: Keyword Query Language (KQL) expression with queryable SharePoint properties and attributes to scope the retrieval before the query runs.setResourceMetadata(List<String> resourceMetadata) Set the resourceMetadata property: A list of metadata fields to be returned for each item in the response.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class 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
-
RemoteSharePointKnowledgeSourceParameters
public RemoteSharePointKnowledgeSourceParameters()Creates an instance of RemoteSharePointKnowledgeSourceParameters class.
-
-
Method Details
-
getFilterExpression
Get the filterExpression property: Keyword Query Language (KQL) expression with queryable SharePoint properties and attributes to scope the retrieval before the query runs. See documentation: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference.- Returns:
- the filterExpression value.
-
setFilterExpression
Set the filterExpression property: Keyword Query Language (KQL) expression with queryable SharePoint properties and attributes to scope the retrieval before the query runs. See documentation: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference.- Parameters:
filterExpression- the filterExpression value to set.- Returns:
- the RemoteSharePointKnowledgeSourceParameters object itself.
-
getResourceMetadata
-
setResourceMetadata
Set the resourceMetadata property: A list of metadata fields to be returned for each item in the response. Only retrievable metadata properties can be included in this list. By default, no metadata is returned. Optional.- Parameters:
resourceMetadata- the resourceMetadata value to set.- Returns:
- the RemoteSharePointKnowledgeSourceParameters object itself.
-
getContainerTypeId
Get the containerTypeId property: Container ID for SharePoint Embedded connection. When this is null, it will use SharePoint Online.- Returns:
- the containerTypeId value.
-
setContainerTypeId
Set the containerTypeId property: Container ID for SharePoint Embedded connection. When this is null, it will use SharePoint Online.- Parameters:
containerTypeId- the containerTypeId value to set.- Returns:
- the RemoteSharePointKnowledgeSourceParameters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RemoteSharePointKnowledgeSourceParameters>- Throws:
IOException
-
fromJson
public static RemoteSharePointKnowledgeSourceParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RemoteSharePointKnowledgeSourceParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RemoteSharePointKnowledgeSourceParameters 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 RemoteSharePointKnowledgeSourceParameters.
-