Class AzureBlobKnowledgeSource
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeSource
com.azure.search.documents.indexes.models.AzureBlobKnowledgeSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeSource>
Configuration for Azure Blob Storage knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobKnowledgeSource(String name, AzureBlobKnowledgeSourceParameters azureBlobParameters) Creates an instance of AzureBlobKnowledgeSource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureBlobKnowledgeSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureBlobKnowledgeSource from the JsonReader.Get the azureBlobParameters property: The type of the knowledge source.getKind()Get the kind property: The type of the knowledge source.setDescription(String description) Set the description property: Optional user-defined description.setEncryptionKey(SearchResourceEncryptionKey encryptionKey) Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.Set the eTag property: The ETag of the knowledge base.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class KnowledgeSource
getDescription, getEncryptionKey, getETag, getNameMethods 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
-
AzureBlobKnowledgeSource
public AzureBlobKnowledgeSource(String name, AzureBlobKnowledgeSourceParameters azureBlobParameters) Creates an instance of AzureBlobKnowledgeSource class.- Parameters:
name- the name value to set.azureBlobParameters- the azureBlobParameters value to set.
-
-
Method Details
-
getKind
Get the kind property: The type of the knowledge source.- Overrides:
getKindin classKnowledgeSource- Returns:
- the kind value.
-
getAzureBlobParameters
Get the azureBlobParameters property: The type of the knowledge source.- Returns:
- the azureBlobParameters value.
-
setDescription
Set the description property: Optional user-defined description.- Overrides:
setDescriptionin classKnowledgeSource- Parameters:
description- the description value to set.- Returns:
- the KnowledgeSource object itself.
-
setETag
Set the eTag property: The ETag of the knowledge base.- Overrides:
setETagin classKnowledgeSource- Parameters:
eTag- the eTag value to set.- Returns:
- the KnowledgeSource object itself.
-
setEncryptionKey
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 base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base 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 base 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:
setEncryptionKeyin classKnowledgeSource- Parameters:
encryptionKey- the encryptionKey value to set.- Returns:
- the KnowledgeSource object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeSource>- Overrides:
toJsonin classKnowledgeSource- Throws:
IOException
-
fromJson
public static AzureBlobKnowledgeSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureBlobKnowledgeSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureBlobKnowledgeSource 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 AzureBlobKnowledgeSource.
-