SpatialSpec Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SpatialSpec
- com.
Implements
public final class SpatialSpec
implements JsonSerializable<SpatialSpec>
The SpatialSpec model.
Constructor Summary
Constructor | Description |
---|---|
SpatialSpec() |
Creates an instance of Spatial |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Spatial |
fromJson(JsonReader jsonReader)
Reads an instance of Spatial |
String |
path()
Get the path property: The path for which the indexing behavior applies to. |
Json |
toJson(JsonWriter jsonWriter) |
List<Spatial |
types()
Get the types property: List of path's spatial type. |
void |
validate()
Validates the instance. |
Spatial |
withPath(String path)
Set the path property: The path for which the indexing behavior applies to. |
Spatial |
withTypes(List<SpatialType> types)
Set the types property: List of path's spatial type. |
Methods inherited from java.lang.Object
Constructor Details
SpatialSpec
public SpatialSpec()
Creates an instance of SpatialSpec class.
Method Details
fromJson
public static SpatialSpec fromJson(JsonReader jsonReader)
Reads an instance of SpatialSpec from the JsonReader.
Parameters:
Returns:
Throws:
path
public String path()
Get the path property: The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*).
Returns:
toJson
types
public List
Get the types property: List of path's spatial type.
Returns:
validate
public void validate()
Validates the instance.
withPath
public SpatialSpec withPath(String path)
Set the path property: The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*).
Parameters:
Returns:
withTypes
public SpatialSpec withTypes(List
Set the types property: List of path's spatial type.
Parameters:
Returns:
Applies to
Azure SDK for Java