Class CreateOrUpdateDataSourceConnectionOptions
- java.lang.Object
-
- com.azure.search.documents.indexes.models.CreateOrUpdateDataSourceConnectionOptions
-
public final class CreateOrUpdateDataSourceConnectionOptions extends Object
This model represents a property bag containing all options for creating or updating adata source connection
.
-
-
Constructor Summary
Constructors Constructor Description CreateOrUpdateDataSourceConnectionOptions(SearchIndexerDataSourceConnection dataSourceConnection)
Creates the property bag used to create or update adata source connection
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchIndexerDataSourceConnection
getDataSourceConnection()
Gets thedata source connection
that will be created or updated.Boolean
isCacheResetRequirementsIgnored()
Gets an optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.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.CreateOrUpdateDataSourceConnectionOptions
setCacheResetRequirementsIgnored(Boolean cacheResetRequirementsIgnored)
Sets an optional flag that determines whether the created or updateddata source connection
ignores cache reset requirements.CreateOrUpdateDataSourceConnectionOptions
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 Detail
-
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 Detail
-
getDataSourceConnection
public SearchIndexerDataSourceConnection getDataSourceConnection()
Gets thedata source connection
that will be created or updated.- Returns:
- The
data source connection
that will be created or updated.
-
setOnlyIfUnchanged
public CreateOrUpdateDataSourceConnectionOptions 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.- 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
public Boolean 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.
-
-