Class AzureBlobKnowledgeSourceParameters
java.lang.Object
com.azure.search.documents.indexes.models.AzureBlobKnowledgeSourceParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureBlobKnowledgeSourceParameters>
public final class AzureBlobKnowledgeSourceParameters
extends Object
implements com.azure.json.JsonSerializable<AzureBlobKnowledgeSourceParameters>
Parameters for Azure Blob Storage knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobKnowledgeSourceParameters(String connectionString, String containerName) Creates an instance of AzureBlobKnowledgeSourceParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureBlobKnowledgeSourceParameters from the JsonReader.Get the connectionString property: Key-based connection string or the ResourceId format if using a managed identity.Get the containerName property: The name of the blob storage container.Get the createdResources property: Resources created by the knowledge source.Get the folderPath property: Optional folder path within the container.Get the ingestionParameters property: Consolidates all general ingestion settings.Get the isAdlsGen2 property: Set to true if connecting to an ADLS Gen2 storage account.setFolderPath(String folderPath) Set the folderPath property: Optional folder path within the container.setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters) Set the ingestionParameters property: Consolidates all general ingestion settings.setIsAdlsGen2(Boolean isAdlsGen2) Set the isAdlsGen2 property: Set to true if connecting to an ADLS Gen2 storage account.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
-
AzureBlobKnowledgeSourceParameters
-
-
Method Details
-
getConnectionString
Get the connectionString property: Key-based connection string or the ResourceId format if using a managed identity.- Returns:
- the connectionString value.
-
getContainerName
Get the containerName property: The name of the blob storage container.- Returns:
- the containerName value.
-
getFolderPath
Get the folderPath property: Optional folder path within the container.- Returns:
- the folderPath value.
-
setFolderPath
Set the folderPath property: Optional folder path within the container.- Parameters:
folderPath- the folderPath value to set.- Returns:
- the AzureBlobKnowledgeSourceParameters object itself.
-
isAdlsGen2
Get the isAdlsGen2 property: Set to true if connecting to an ADLS Gen2 storage account. Default is false.- Returns:
- the isAdlsGen2 value.
-
setIsAdlsGen2
Set the isAdlsGen2 property: Set to true if connecting to an ADLS Gen2 storage account. Default is false.- Parameters:
isAdlsGen2- the isAdlsGen2 value to set.- Returns:
- the AzureBlobKnowledgeSourceParameters object itself.
-
getIngestionParameters
Get the ingestionParameters property: Consolidates all general ingestion settings.- Returns:
- the ingestionParameters value.
-
setIngestionParameters
public AzureBlobKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters) Set the ingestionParameters property: Consolidates all general ingestion settings.- Parameters:
ingestionParameters- the ingestionParameters value to set.- Returns:
- the AzureBlobKnowledgeSourceParameters object itself.
-
getCreatedResources
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureBlobKnowledgeSourceParameters>- Throws:
IOException
-
fromJson
public static AzureBlobKnowledgeSourceParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureBlobKnowledgeSourceParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureBlobKnowledgeSourceParameters 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 AzureBlobKnowledgeSourceParameters.
-