Indexes Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. Indexes
- com.
Implements
public final class Indexes
implements JsonSerializable<Indexes>
The indexes for the path.
Constructor Summary
Constructor | Description |
---|---|
Indexes() |
Creates an instance of Indexes class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Data |
dataType()
Get the data |
static Indexes |
fromJson(JsonReader jsonReader)
Reads an instance of Indexes from the Json |
Index |
kind()
Get the kind property: Indicates the type of index. |
Integer |
precision()
Get the precision property: The precision of the index. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Indexes |
withDataType(DataType dataType)
Set the data |
Indexes |
withKind(IndexKind kind)
Set the kind property: Indicates the type of index. |
Indexes |
withPrecision(Integer precision)
Set the precision property: The precision of the index. |
Methods inherited from java.lang.Object
Constructor Details
Indexes
public Indexes()
Creates an instance of Indexes class.
Method Details
dataType
public DataType dataType()
Get the dataType property: The datatype for which the indexing behavior is applied to.
Returns:
fromJson
public static Indexes fromJson(JsonReader jsonReader)
Reads an instance of Indexes from the JsonReader.
Parameters:
Returns:
Throws:
kind
public IndexKind kind()
Get the kind property: Indicates the type of index.
Returns:
precision
public Integer precision()
Get the precision property: The precision of the index. -1 is maximum precision.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDataType
public Indexes withDataType(DataType dataType)
Set the dataType property: The datatype for which the indexing behavior is applied to.
Parameters:
Returns:
withKind
public Indexes withKind(IndexKind kind)
Set the kind property: Indicates the type of index.
Parameters:
Returns:
withPrecision
public Indexes withPrecision(Integer precision)
Set the precision property: The precision of the index. -1 is maximum precision.
Parameters:
Returns:
Applies to
Azure SDK for Java