Class CreateOrUpdateDataSourceConnectionOptions
java.lang.Object
com.azure.search.documents.indexes.models.CreateOrUpdateDataSourceConnectionOptions
This model represents a property bag containing all options for creating or updating a
data source connection
.-
Constructor Summary
ConstructorsConstructorDescriptionCreateOrUpdateDataSourceConnectionOptions
(SearchIndexerDataSourceConnection dataSourceConnection) Creates the property bag used to create or update adata source connection
. -
Method Summary
Modifier and TypeMethodDescriptionGets thedata source connection
that will be created or updated.Gets an optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.boolean
Gets the flag that determines whether an update will only occur if thedata source connection
has not been changed since the update has been triggered.setCacheResetRequirementsIgnored
(Boolean cacheResetRequirementsIgnored) Sets an optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.setOnlyIfUnchanged
(boolean onlyIfUnchanged) Sets the flag that determines whether an update will only occur if thedata source connection
has not been changed since the update has been triggered.
-
Constructor Details
-
CreateOrUpdateDataSourceConnectionOptions
public CreateOrUpdateDataSourceConnectionOptions(SearchIndexerDataSourceConnection dataSourceConnection) Creates the property bag used to create or update adata source connection
.- Parameters:
dataSourceConnection
- Thedata source connection
being created or updated.- Throws:
NullPointerException
- IfdataSourceConnection
is null.
-
-
Method Details
-
getDataSourceConnection
Gets thedata source connection
that will be created or updated.- Returns:
- The
data source connection
that will be created or updated.
-
setOnlyIfUnchanged
Sets the flag that determines whether an update will only occur if thedata source connection
has not been changed since the update has been triggered.- Parameters:
onlyIfUnchanged
- Flag that determines whether an update will only occur if thedata source connection
has not been changed since the update has been triggered.- Returns:
- The updated CreateOrUpdateDataSourceConnectionOptions object.
-
isOnlyIfUnchanged
public boolean isOnlyIfUnchanged()Gets the flag that determines whether an update will only occur if thedata source connection
has not been changed since the update has been triggered.- Returns:
- Whether an update will only occur if the
data source connection
has not been changed since the update has been triggered.
-
setCacheResetRequirementsIgnored
public CreateOrUpdateDataSourceConnectionOptions setCacheResetRequirementsIgnored(Boolean cacheResetRequirementsIgnored) Sets an optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.- Parameters:
cacheResetRequirementsIgnored
- An optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.- Returns:
- The updated CreateOrUpdateDataSourceConnectionOptions object.
-
isCacheResetRequirementsIgnored
Gets an optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.- Returns:
- Whether the created or updated
data source connection
ignores cache reset requirements.
-