Class IndexingPolicy
java.lang.Object
com.azure.resourcemanager.cosmos.models.IndexingPolicy
Cosmos DB indexing policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the automatic property: Indicates if the indexing policy is automatic.Get the compositeIndexes property: List of composite path list.Get the excludedPaths property: List of paths to exclude from indexing.Get the includedPaths property: List of paths to include in the indexing.Get the indexingMode property: Indicates the indexing mode.Get the spatialIndexes property: List of spatial specifics.voidvalidate()Validates the instance.withAutomatic(Boolean automatic) Set the automatic property: Indicates if the indexing policy is automatic.withCompositeIndexes(List<List<CompositePath>> compositeIndexes) Set the compositeIndexes property: List of composite path list.withExcludedPaths(List<ExcludedPath> excludedPaths) Set the excludedPaths property: List of paths to exclude from indexing.withIncludedPaths(List<IncludedPath> includedPaths) Set the includedPaths property: List of paths to include in the indexing.withIndexingMode(IndexingMode indexingMode) Set the indexingMode property: Indicates the indexing mode.withSpatialIndexes(List<SpatialSpec> spatialIndexes) Set the spatialIndexes property: List of spatial specifics.
-
Constructor Details
-
IndexingPolicy
public IndexingPolicy()Creates an instance of IndexingPolicy class.
-
-
Method Details
-
automatic
Get the automatic property: Indicates if the indexing policy is automatic.- Returns:
- the automatic value.
-
withAutomatic
Set the automatic property: Indicates if the indexing policy is automatic.- Parameters:
automatic- the automatic value to set.- Returns:
- the IndexingPolicy object itself.
-
indexingMode
Get the indexingMode property: Indicates the indexing mode.- Returns:
- the indexingMode value.
-
withIndexingMode
Set the indexingMode property: Indicates the indexing mode.- Parameters:
indexingMode- the indexingMode value to set.- Returns:
- the IndexingPolicy object itself.
-
includedPaths
Get the includedPaths property: List of paths to include in the indexing.- Returns:
- the includedPaths value.
-
withIncludedPaths
Set the includedPaths property: List of paths to include in the indexing.- Parameters:
includedPaths- the includedPaths value to set.- Returns:
- the IndexingPolicy object itself.
-
excludedPaths
Get the excludedPaths property: List of paths to exclude from indexing.- Returns:
- the excludedPaths value.
-
withExcludedPaths
Set the excludedPaths property: List of paths to exclude from indexing.- Parameters:
excludedPaths- the excludedPaths value to set.- Returns:
- the IndexingPolicy object itself.
-
compositeIndexes
Get the compositeIndexes property: List of composite path list.- Returns:
- the compositeIndexes value.
-
withCompositeIndexes
Set the compositeIndexes property: List of composite path list.- Parameters:
compositeIndexes- the compositeIndexes value to set.- Returns:
- the IndexingPolicy object itself.
-
spatialIndexes
Get the spatialIndexes property: List of spatial specifics.- Returns:
- the spatialIndexes value.
-
withSpatialIndexes
Set the spatialIndexes property: List of spatial specifics.- Parameters:
spatialIndexes- the spatialIndexes value to set.- Returns:
- the IndexingPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-