Class CreateOrUpdateIndexerOptions
- java.lang.Object
-
- com.azure.search.documents.indexes.models.CreateOrUpdateIndexerOptions
-
-
Constructor Summary
Constructors Constructor Description CreateOrUpdateIndexerOptions(SearchIndexer indexer)
Creates the property bag used to create or update anindexer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchIndexer
getIndexer()
Gets theindexer
that will be created or updated.Boolean
isCacheReprocessingChangeDetectionDisabled()
Gets an optional flag that determines whether the created or updatedindexer
disables cache reprocessing change detection.Boolean
isCacheResetRequirementsIgnored()
Gets an optional flag that determines whether the created or updatedindexer
ignores cache reset requirements.boolean
isOnlyIfUnchanged()
Gets the flag that determines whether an update will only occur if theindexer
has not been changed since the update has been triggered.CreateOrUpdateIndexerOptions
setCacheReprocessingChangeDetectionDisabled(Boolean cacheReprocessingChangeDetectionDisabled)
Sets an optional flag that determines whether the created or updatedindexer
disables cache reprocessing change detection.CreateOrUpdateIndexerOptions
setCacheResetRequirementsIgnored(Boolean cacheResetRequirementsIgnored)
Sets an optional flag that determines whether the created or updatedindexer
ignores cache reset requirements.CreateOrUpdateIndexerOptions
setOnlyIfUnchanged(boolean onlyIfUnchanged)
Sets the flag that determines whether an update will only occur if theindexer
has not been changed since the update has been triggered.
-
-
-
Constructor Detail
-
CreateOrUpdateIndexerOptions
public CreateOrUpdateIndexerOptions(SearchIndexer indexer)
Creates the property bag used to create or update anindexer
.- Parameters:
indexer
- Theindexer
being created or updated.- Throws:
NullPointerException
- Ifindexer
is null.
-
-
Method Detail
-
getIndexer
public SearchIndexer getIndexer()
Gets theindexer
that will be created or updated.- Returns:
- The
indexer
that will be created or updated.
-
setOnlyIfUnchanged
public CreateOrUpdateIndexerOptions setOnlyIfUnchanged(boolean onlyIfUnchanged)
Sets the flag that determines whether an update will only occur if theindexer
has not been changed since the update has been triggered.- Parameters:
onlyIfUnchanged
- Flag that determines whether an update will only occur if theindexer
has not been changed since the update has been triggered.- Returns:
- The updated CreateOrUpdateIndexerOptions object.
-
isOnlyIfUnchanged
public boolean isOnlyIfUnchanged()
Gets the flag that determines whether an update will only occur if theindexer
has not been changed since the update has been triggered.- Returns:
- Whether an update will only occur if the
indexer
has not been changed since the update has been triggered.
-
setCacheReprocessingChangeDetectionDisabled
public CreateOrUpdateIndexerOptions setCacheReprocessingChangeDetectionDisabled(Boolean cacheReprocessingChangeDetectionDisabled)
Sets an optional flag that determines whether the created or updatedindexer
disables cache reprocessing change detection.- Parameters:
cacheReprocessingChangeDetectionDisabled
- An optional flag that determines whether the created or updatedindexer
disables cache reprocessing change detection.- Returns:
- The updated CreateOrUpdateIndexerOptions object.
-
isCacheReprocessingChangeDetectionDisabled
public Boolean isCacheReprocessingChangeDetectionDisabled()
Gets an optional flag that determines whether the created or updatedindexer
disables cache reprocessing change detection.- Returns:
- Whether the created or updated
indexer
disables cache reprocessing change detection.
-
setCacheResetRequirementsIgnored
public CreateOrUpdateIndexerOptions setCacheResetRequirementsIgnored(Boolean cacheResetRequirementsIgnored)
Sets an optional flag that determines whether the created or updatedindexer
ignores cache reset requirements.- Parameters:
cacheResetRequirementsIgnored
- An optional flag that determines whether the created or updatedindexer
ignores cache reset requirements.- Returns:
- The updated CreateOrUpdateIndexerOptions object.
-
-