Class SearchIndexerDataSourceConnection
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerDataSourceConnection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexerDataSourceConnection>
public final class SearchIndexerDataSourceConnection
extends Object
implements com.azure.json.JsonSerializable<SearchIndexerDataSourceConnection>
Represents a datasource definition, which can be used to configure an indexer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SearchIndexerDataSourceConnection class.SearchIndexerDataSourceConnection(String name, SearchIndexerDataSourceType type, String connectionString, SearchIndexerDataContainer container) Constructor ofSearchIndexerDataSourceConnection. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexerDataSourceConnection from the JsonReader.Get the connectionString property: The connection string for the datasource.Get the container property: The data container for the datasource.Get the dataChangeDetectionPolicy property: The data change detection policy for the datasource.Get the dataDeletionDetectionPolicy property: The data deletion detection policy for the datasource.Get the description property: The description of the datasource.Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.getETag()Get the eTag property: The ETag of the data source.Get the identity property: An explicit managed identity to use for this datasource.getName()Get the name property: The name of the datasource.getType()Get the type property: The type of the datasource.setConnectionString(String connectionString) Set the connectionString property: The connection string for the datasource.setContainer(SearchIndexerDataContainer container) Set the container property: The data container for the datasource.setDataChangeDetectionPolicy(DataChangeDetectionPolicy dataChangeDetectionPolicy) Set the dataChangeDetectionPolicy property: The data change detection policy for the datasource.setDataDeletionDetectionPolicy(DataDeletionDetectionPolicy dataDeletionDetectionPolicy) Set the dataDeletionDetectionPolicy property: The data deletion detection policy for the datasource.setDescription(String description) Set the description property: The description of the datasource.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 data source.setIdentity(SearchIndexerDataIdentity identity) Set the identity property: An explicit managed identity to use for this datasource.Set the type property: The type of the datasource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.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
-
SearchIndexerDataSourceConnection
Creates an instance of SearchIndexerDataSourceConnection class.- Parameters:
name- the name value to set.
-
SearchIndexerDataSourceConnection
public SearchIndexerDataSourceConnection(String name, SearchIndexerDataSourceType type, String connectionString, SearchIndexerDataContainer container) Constructor ofSearchIndexerDataSourceConnection.- Parameters:
name- The name of the datasource.type- The type of the datasource.connectionString- The connection string for the datasource.container- The data container for the datasource.
-
-
Method Details
-
getName
Get the name property: The name of the datasource.- Returns:
- the name value.
-
getDescription
Get the description property: The description of the datasource.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the datasource.- Parameters:
description- the description value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getType
Get the type property: The type of the datasource.- Returns:
- the type value.
-
setType
Set the type property: The type of the datasource.- Parameters:
type- the type value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getContainer
Get the container property: The data container for the datasource.- Returns:
- the container value.
-
setContainer
Set the container property: The data container for the datasource.- Parameters:
container- the container value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getIdentity
Get the identity property: An explicit managed identity to use for this datasource. If not specified and the connection string is a managed identity, the system-assigned managed identity is used. If not specified, the value remains unchanged. If "none" is specified, the value of this property is cleared.- Returns:
- the identity value.
-
setIdentity
Set the identity property: An explicit managed identity to use for this datasource. If not specified and the connection string is a managed identity, the system-assigned managed identity is used. If not specified, the value remains unchanged. If "none" is specified, the value of this property is cleared.- Parameters:
identity- the identity value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getDataChangeDetectionPolicy
Get the dataChangeDetectionPolicy property: The data change detection policy for the datasource.- Returns:
- the dataChangeDetectionPolicy value.
-
setDataChangeDetectionPolicy
public SearchIndexerDataSourceConnection setDataChangeDetectionPolicy(DataChangeDetectionPolicy dataChangeDetectionPolicy) Set the dataChangeDetectionPolicy property: The data change detection policy for the datasource.- Parameters:
dataChangeDetectionPolicy- the dataChangeDetectionPolicy value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getDataDeletionDetectionPolicy
Get the dataDeletionDetectionPolicy property: The data deletion detection policy for the datasource.- Returns:
- the dataDeletionDetectionPolicy value.
-
setDataDeletionDetectionPolicy
public SearchIndexerDataSourceConnection setDataDeletionDetectionPolicy(DataDeletionDetectionPolicy dataDeletionDetectionPolicy) Set the dataDeletionDetectionPolicy property: The data deletion detection policy for the datasource.- Parameters:
dataDeletionDetectionPolicy- the dataDeletionDetectionPolicy value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getETag
Get the eTag property: The ETag of the data source.- Returns:
- the eTag value.
-
setETag
Set the eTag property: The ETag of the data source.- Parameters:
eTag- the eTag value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
getEncryptionKey
Get 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 datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition. Once you have encrypted your data 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 datasource 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.- Returns:
- the encryptionKey value.
-
setEncryptionKey
public SearchIndexerDataSourceConnection 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 datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition. Once you have encrypted your data 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 datasource 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.- Parameters:
encryptionKey- the encryptionKey value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexerDataSourceConnection>- Throws:
IOException
-
fromJson
public static SearchIndexerDataSourceConnection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SearchIndexerDataSourceConnection from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchIndexerDataSourceConnection 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 SearchIndexerDataSourceConnection.
-
getConnectionString
Get the connectionString property: The connection string for the datasource.- Returns:
- the connectionString value.
-
setConnectionString
Set the connectionString property: The connection string for the datasource.- Parameters:
connectionString- the connectionString value to set.- Returns:
- the SearchIndexerDataSourceConnection object itself.
-