IndexedSharePointKnowledgeSourceParameters Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.IndexedSharePointKnowledgeSourceParameters

Implements

public final class IndexedSharePointKnowledgeSourceParameters
implements JsonSerializable<IndexedSharePointKnowledgeSourceParameters>

Parameters for SharePoint knowledge source.

Constructor Summary

Constructor Description
IndexedSharePointKnowledgeSourceParameters(String connectionString, IndexedSharePointContainerName containerName)

Creates an instance of IndexedSharePointKnowledgeSourceParameters class.

Method Summary

Modifier and Type Method and Description
static IndexedSharePointKnowledgeSourceParameters fromJson(JsonReader jsonReader)

Reads an instance of IndexedSharePointKnowledgeSourceParameters from the JsonReader.

String 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].

IndexedSharePointContainerName getContainerName()

Get the containerName property: Specifies which SharePoint libraries to access.

CreatedResources getCreatedResources()

Get the createdResources property: Resources created by the knowledge source.

KnowledgeSourceIngestionParameters getIngestionParameters()

Get the ingestionParameters property: Consolidates all general ingestion settings.

String getQuery()

Get the query property: Optional query to filter SharePoint content.

IndexedSharePointKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters)

Set the ingestionParameters property: Consolidates all general ingestion settings.

IndexedSharePointKnowledgeSourceParameters setQuery(String query)

Set the query property: Optional query to filter SharePoint content.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

IndexedSharePointKnowledgeSourceParameters

public IndexedSharePointKnowledgeSourceParameters(String connectionString, IndexedSharePointContainerName containerName)

Creates an instance of IndexedSharePointKnowledgeSourceParameters class.

Parameters:

connectionString - the connectionString value to set.
containerName - the containerName value to set.

Method Details

fromJson

public static IndexedSharePointKnowledgeSourceParameters fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getConnectionString

public String 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

public IndexedSharePointContainerName getContainerName()

Get the containerName property: Specifies which SharePoint libraries to access.

Returns:

the containerName value.

getCreatedResources

public CreatedResources getCreatedResources()

Get the createdResources property: Resources created by the knowledge source.

Returns:

the createdResources value.

getIngestionParameters

public KnowledgeSourceIngestionParameters getIngestionParameters()

Get the ingestionParameters property: Consolidates all general ingestion settings.

Returns:

the ingestionParameters value.

getQuery

public String getQuery()

Get the query property: Optional query to filter SharePoint content.

Returns:

the query 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.

setQuery

public IndexedSharePointKnowledgeSourceParameters setQuery(String query)

Set the query property: Optional query to filter SharePoint content.

Parameters:

query - the query value to set.

Returns:

the IndexedSharePointKnowledgeSourceParameters object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to