Class IndexingPolicy
java.lang.Object
com.microsoft.azure.management.cosmosdb.IndexingPolicy
Cosmos DB indexing policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet indicates if the indexing policy is automatic.Get list of paths to exclude from indexing.Get list of paths to include in the indexing.Get indicates the indexing mode.withAutomatic
(Boolean automatic) Set indicates if the indexing policy is automatic.withExcludedPaths
(List<ExcludedPath> excludedPaths) Set list of paths to exclude from indexing.withIncludedPaths
(List<IncludedPath> includedPaths) Set list of paths to include in the indexing.withIndexingMode
(IndexingMode indexingMode) Set indicates the indexing mode.
-
Constructor Details
-
IndexingPolicy
public IndexingPolicy()
-
-
Method Details
-
automatic
Get indicates if the indexing policy is automatic.- Returns:
- the automatic value
-
withAutomatic
Set indicates if the indexing policy is automatic.- Parameters:
automatic
- the automatic value to set- Returns:
- the IndexingPolicy object itself.
-
indexingMode
Get indicates the indexing mode. Possible values include: 'Consistent', 'Lazy', 'None'.- Returns:
- the indexingMode value
-
withIndexingMode
Set indicates the indexing mode. Possible values include: 'Consistent', 'Lazy', 'None'.- Parameters:
indexingMode
- the indexingMode value to set- Returns:
- the IndexingPolicy object itself.
-
includedPaths
Get list of paths to include in the indexing.- Returns:
- the includedPaths value
-
withIncludedPaths
Set list of paths to include in the indexing.- Parameters:
includedPaths
- the includedPaths value to set- Returns:
- the IndexingPolicy object itself.
-
excludedPaths
Get list of paths to exclude from indexing.- Returns:
- the excludedPaths value
-
withExcludedPaths
Set list of paths to exclude from indexing.- Parameters:
excludedPaths
- the excludedPaths value to set- Returns:
- the IndexingPolicy object itself.
-