Class GremlinGraphResource
java.lang.Object
com.microsoft.azure.management.cosmosdb.GremlinGraphResource
Cosmos DB Gremlin graph resource object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the conflict resolution policy for the graph.Get default time to live.id()
Get name of the Cosmos DB Gremlin graph.Get the configuration of the indexing policy.Get the configuration of the partition key to be used for partitioning data into multiple partitions.Get the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.withConflictResolutionPolicy
(ConflictResolutionPolicy conflictResolutionPolicy) Set the conflict resolution policy for the graph.withDefaultTtl
(Integer defaultTtl) Set default time to live.Set name of the Cosmos DB Gremlin graph.withIndexingPolicy
(IndexingPolicy indexingPolicy) Set the configuration of the indexing policy.withPartitionKey
(ContainerPartitionKey partitionKey) Set the configuration of the partition key to be used for partitioning data into multiple partitions.withUniqueKeyPolicy
(UniqueKeyPolicy uniqueKeyPolicy) Set the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
-
Constructor Details
-
GremlinGraphResource
public GremlinGraphResource()
-
-
Method Details
-
id
Get name of the Cosmos DB Gremlin graph.- Returns:
- the id value
-
withId
Set name of the Cosmos DB Gremlin graph.- Parameters:
id
- the id value to set- Returns:
- the GremlinGraphResource object itself.
-
indexingPolicy
Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph.- Returns:
- the indexingPolicy value
-
withIndexingPolicy
Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph.- Parameters:
indexingPolicy
- the indexingPolicy value to set- Returns:
- the GremlinGraphResource object itself.
-
partitionKey
Get the configuration of the partition key to be used for partitioning data into multiple partitions.- Returns:
- the partitionKey value
-
withPartitionKey
Set the configuration of the partition key to be used for partitioning data into multiple partitions.- Parameters:
partitionKey
- the partitionKey value to set- Returns:
- the GremlinGraphResource object itself.
-
defaultTtl
Get default time to live.- Returns:
- the defaultTtl value
-
withDefaultTtl
Set default time to live.- Parameters:
defaultTtl
- the defaultTtl value to set- Returns:
- the GremlinGraphResource object itself.
-
uniqueKeyPolicy
Get the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.- Returns:
- the uniqueKeyPolicy value
-
withUniqueKeyPolicy
Set the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.- Parameters:
uniqueKeyPolicy
- the uniqueKeyPolicy value to set- Returns:
- the GremlinGraphResource object itself.
-
conflictResolutionPolicy
Get the conflict resolution policy for the graph.- Returns:
- the conflictResolutionPolicy value
-
withConflictResolutionPolicy
public GremlinGraphResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy) Set the conflict resolution policy for the graph.- Parameters:
conflictResolutionPolicy
- the conflictResolutionPolicy value to set- Returns:
- the GremlinGraphResource object itself.
-