SearchIndexerDataSourceConnection Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerDataSourceConnection
- com.
Implements
public final class SearchIndexerDataSourceConnection
implements JsonSerializable<SearchIndexerDataSourceConnection>
Represents a datasource definition, which can be used to configure an indexer.
Constructor Summary
| Constructor | Description |
|---|---|
| SearchIndexerDataSourceConnection(String name, SearchIndexerDataSourceType type, DataSourceCredentials credentials, SearchIndexerDataContainer container) |
Creates an instance of Search |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
|
Search |
getContainer()
Get the container property: The data container for the datasource. |
|
Data |
getCredentials()
Get the credentials property: Credentials for the datasource. |
|
Data |
getDataChangeDetectionPolicy()
Get the data |
|
Data |
getDataDeletionDetectionPolicy()
Get the data |
| String |
getDescription()
Get the description property: The description of the datasource. |
|
Search |
getEncryptionKey()
Get the encryption |
| String |
getETag()
Get the e |
|
Search |
getIdentity()
Get the identity property: An explicit managed identity to use for this datasource. |
| String |
getName()
Get the name property: The name of the datasource. |
|
Search |
getType()
Get the type property: The type of the datasource. |
|
Search |
setDataChangeDetectionPolicy(DataChangeDetectionPolicy dataChangeDetectionPolicy)
Set the data |
|
Search |
setDataDeletionDetectionPolicy(DataDeletionDetectionPolicy dataDeletionDetectionPolicy)
Set the data |
|
Search |
setDescription(String description)
Set the description property: The description of the datasource. |
|
Search |
setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryption |
|
Search |
setETag(String eTag)
Set the e |
|
Search |
setIdentity(SearchIndexerDataIdentity identity)
Set the identity property: An explicit managed identity to use for this datasource. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchIndexerDataSourceConnection
public SearchIndexerDataSourceConnection(String name, SearchIndexerDataSourceType type, DataSourceCredentials credentials, SearchIndexerDataContainer container)
Creates an instance of SearchIndexerDataSourceConnection class.
Parameters:
Method Details
fromJson
public static SearchIndexerDataSourceConnection fromJson(JsonReader jsonReader)
Reads an instance of SearchIndexerDataSourceConnection from the JsonReader.
Parameters:
Returns:
Throws:
getContainer
public SearchIndexerDataContainer getContainer()
Get the container property: The data container for the datasource.
Returns:
getCredentials
public DataSourceCredentials getCredentials()
Get the credentials property: Credentials for the datasource.
Returns:
getDataChangeDetectionPolicy
public DataChangeDetectionPolicy getDataChangeDetectionPolicy()
Get the dataChangeDetectionPolicy property: The data change detection policy for the datasource.
Returns:
getDataDeletionDetectionPolicy
public DataDeletionDetectionPolicy getDataDeletionDetectionPolicy()
Get the dataDeletionDetectionPolicy property: The data deletion detection policy for the datasource.
Returns:
getDescription
public String getDescription()
Get the description property: The description of the datasource.
Returns:
getEncryptionKey
public SearchResourceEncryptionKey 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:
getETag
public String getETag()
Get the eTag property: The ETag of the data source.
Returns:
getIdentity
public SearchIndexerDataIdentity 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:
getName
public String getName()
Get the name property: The name of the datasource.
Returns:
getType
public SearchIndexerDataSourceType getType()
Get the type property: The type of the datasource.
Returns:
setDataChangeDetectionPolicy
public SearchIndexerDataSourceConnection setDataChangeDetectionPolicy(DataChangeDetectionPolicy dataChangeDetectionPolicy)
Set the dataChangeDetectionPolicy property: The data change detection policy for the datasource.
Parameters:
Returns:
setDataDeletionDetectionPolicy
public SearchIndexerDataSourceConnection setDataDeletionDetectionPolicy(DataDeletionDetectionPolicy dataDeletionDetectionPolicy)
Set the dataDeletionDetectionPolicy property: The data deletion detection policy for the datasource.
Parameters:
Returns:
setDescription
public SearchIndexerDataSourceConnection setDescription(String description)
Set the description property: The description of the datasource.
Parameters:
Returns:
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:
Returns:
setETag
public SearchIndexerDataSourceConnection setETag(String eTag)
Set the eTag property: The ETag of the data source.
Parameters:
Returns:
setIdentity
public SearchIndexerDataSourceConnection setIdentity(SearchIndexerDataIdentity identity)
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:
Returns: