你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

IndexedSharePointKnowledgeSource Class

public final class IndexedSharePointKnowledgeSource
extends KnowledgeSource

Configuration for SharePoint knowledge source.

Constructor Summary

Constructor Description
IndexedSharePointKnowledgeSource(String name, IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters)

Creates an instance of IndexedSharePointKnowledgeSource class.

Method Summary

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

Reads an instance of IndexedSharePointKnowledgeSource from the JsonReader.

IndexedSharePointKnowledgeSourceParameters getIndexedSharePointParameters()

Get the indexedSharePointParameters property: The parameters for the knowledge source.

KnowledgeSourceKind getKind()

Get the kind property: The type of the knowledge source.

IndexedSharePointKnowledgeSource setDescription(String description)

Set the description property: Optional user-defined description.

IndexedSharePointKnowledgeSource setEncryptionKey(SearchResourceEncryptionKey encryptionKey)

Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.

IndexedSharePointKnowledgeSource setETag(String eTag)

Set the eTag property: The ETag of the knowledge source.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from KnowledgeSource

Methods inherited from java.lang.Object

Constructor Details

IndexedSharePointKnowledgeSource

public IndexedSharePointKnowledgeSource(String name, IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters)

Creates an instance of IndexedSharePointKnowledgeSource class.

Parameters:

name - the name value to set.
indexedSharePointParameters - the indexedSharePointParameters value to set.

Method Details

fromJson

public static IndexedSharePointKnowledgeSource fromJson(JsonReader jsonReader)

Reads an instance of IndexedSharePointKnowledgeSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IndexedSharePointKnowledgeSource 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.

getIndexedSharePointParameters

public IndexedSharePointKnowledgeSourceParameters getIndexedSharePointParameters()

Get the indexedSharePointParameters property: The parameters for the knowledge source.

Returns:

the indexedSharePointParameters value.

getKind

public KnowledgeSourceKind getKind()

Get the kind property: The type of the knowledge source.

Overrides:

IndexedSharePointKnowledgeSource.getKind()

Returns:

the kind value.

setDescription

public IndexedSharePointKnowledgeSource setDescription(String description)

Set the description property: Optional user-defined description.

Overrides:

IndexedSharePointKnowledgeSource.setDescription(String description)

Parameters:

description

setEncryptionKey

public IndexedSharePointKnowledgeSource setEncryptionKey(SearchResourceEncryptionKey encryptionKey)

Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge source definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge source definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge source definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.

Overrides:

IndexedSharePointKnowledgeSource.setEncryptionKey(SearchResourceEncryptionKey encryptionKey)

Parameters:

encryptionKey

setETag

public IndexedSharePointKnowledgeSource setETag(String eTag)

Set the eTag property: The ETag of the knowledge source.

Overrides:

IndexedSharePointKnowledgeSource.setETag(String eTag)

Parameters:

eTag

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IndexedSharePointKnowledgeSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to