Class IndexedSharePointKnowledgeSourceParameters
java.lang.Object
com.azure.search.documents.indexes.models.IndexedSharePointKnowledgeSourceParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IndexedSharePointKnowledgeSourceParameters>
public final class IndexedSharePointKnowledgeSourceParameters
extends Object
implements com.azure.json.JsonSerializable<IndexedSharePointKnowledgeSourceParameters>
Parameters for SharePoint knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedSharePointKnowledgeSourceParameters(String connectionString, IndexedSharePointContainerName containerName) Creates an instance of IndexedSharePointKnowledgeSourceParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IndexedSharePointKnowledgeSourceParameters from the JsonReader.Get the connectionString property: SharePoint connection string with format: SharePointOnlineEndpoint=[SharePoint site url];ApplicationId=[Azure AD App ID];ApplicationSecret=[Azure AD App client secret];TenantId=[SharePoint site tenant id].Get the containerName property: Specifies which SharePoint libraries to access.Get the createdResources property: Resources created by the knowledge source.Get the ingestionParameters property: Consolidates all general ingestion settings.getQuery()Get the query property: Optional query to filter SharePoint content.setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters) Set the ingestionParameters property: Consolidates all general ingestion settings.Set the query property: Optional query to filter SharePoint content.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
-
Method Details
-
getConnectionString
Get the connectionString property: SharePoint connection string with format: SharePointOnlineEndpoint=[SharePoint site url];ApplicationId=[Azure AD App ID];ApplicationSecret=[Azure AD App client secret];TenantId=[SharePoint site tenant id].- Returns:
- the connectionString value.
-
getContainerName
Get the containerName property: Specifies which SharePoint libraries to access.- Returns:
- the containerName value.
-
getQuery
Get the query property: Optional query to filter SharePoint content.- Returns:
- the query value.
-
setQuery
Set the query property: Optional query to filter SharePoint content.- Parameters:
query- the query value to set.- Returns:
- the IndexedSharePointKnowledgeSourceParameters object itself.
-
getIngestionParameters
Get the ingestionParameters property: Consolidates all general ingestion settings.- Returns:
- the ingestionParameters value.
-
setIngestionParameters
public IndexedSharePointKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters) Set the ingestionParameters property: Consolidates all general ingestion settings.- Parameters:
ingestionParameters- the ingestionParameters value to set.- Returns:
- the IndexedSharePointKnowledgeSourceParameters object itself.
-
getCreatedResources
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IndexedSharePointKnowledgeSourceParameters>- Throws:
IOException
-
fromJson
public static IndexedSharePointKnowledgeSourceParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IndexedSharePointKnowledgeSourceParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IndexedSharePointKnowledgeSourceParameters 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 IndexedSharePointKnowledgeSourceParameters.
-