Package com.azure.data.cosmos
Class IncludedPath
- java.lang.Object
-
- com.azure.data.cosmos.JsonSerializable
-
- com.azure.data.cosmos.IncludedPath
-
public class IncludedPath extends JsonSerializable
Represents an included path of the IndexingPolicy in the Azure Cosmos DB database service.
-
-
Constructor Summary
Constructors Constructor Description IncludedPath()
Constructor.IncludedPath(String jsonString)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Index>
indexes()
Gets the paths that are chosen to be indexed by the user.IncludedPath
indexes(Collection<Index> indexes)
String
path()
Gets path.IncludedPath
path(String path)
Sets path.-
Methods inherited from class com.azure.data.cosmos.JsonSerializable
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
-
-
-
-
Constructor Detail
-
IncludedPath
public IncludedPath()
Constructor.
-
IncludedPath
public IncludedPath(String jsonString)
Constructor.- Parameters:
jsonString
- the json string that represents the included path.
-
-
Method Detail
-
path
public String path()
Gets path.- Returns:
- the path.
-
path
public IncludedPath path(String path)
Sets path.- Parameters:
path
- the path.- Returns:
- the Included Path.
-
indexes
public Collection<Index> indexes()
Gets the paths that are chosen to be indexed by the user.- Returns:
- the included paths.
-
indexes
public IncludedPath indexes(Collection<Index> indexes)
-
-