Class Indexes
java.lang.Object
com.azure.resourcemanager.cosmos.models.Indexes
The indexes for the path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataType()Get the dataType property: The datatype for which the indexing behavior is applied to.kind()Get the kind property: Indicates the type of index.Get the precision property: The precision of the index.voidvalidate()Validates the instance.withDataType(DataType dataType) Set the dataType property: The datatype for which the indexing behavior is applied to.Set the kind property: Indicates the type of index.withPrecision(Integer precision) Set the precision property: The precision of the index.
-
Constructor Details
-
Indexes
public Indexes()Creates an instance of Indexes class.
-
-
Method Details
-
dataType
Get the dataType property: The datatype for which the indexing behavior is applied to.- Returns:
- the dataType value.
-
withDataType
Set the dataType property: The datatype for which the indexing behavior is applied to.- Parameters:
dataType- the dataType value to set.- Returns:
- the Indexes object itself.
-
precision
Get the precision property: The precision of the index. -1 is maximum precision.- Returns:
- the precision value.
-
withPrecision
Set the precision property: The precision of the index. -1 is maximum precision.- Parameters:
precision- the precision value to set.- Returns:
- the Indexes object itself.
-
kind
Get the kind property: Indicates the type of index.- Returns:
- the kind value.
-
withKind
Set the kind property: Indicates the type of index.- Parameters:
kind- the kind value to set.- Returns:
- the Indexes object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-