Class GremlinGraphResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.GremlinGraphResource
- Direct Known Subclasses:
GremlinGraphGetPropertiesResource
Cosmos DB Gremlin graph resource object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the analyticalStorageTtl property: Analytical TTL.Get the conflictResolutionPolicy property: The conflict resolution policy for the graph.Get the createMode property: Enum to indicate the mode of resource creation.Get the defaultTtl property: Default time to live.id()Get the id property: Name of the Cosmos DB Gremlin graph.Get the indexingPolicy property: The configuration of the indexing policy.Get the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.Get the restoreParameters property: Parameters to indicate the information about the restore.Get the uniqueKeyPolicy property: The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.voidvalidate()Validates the instance.withAnalyticalStorageTtl(Long analyticalStorageTtl) Set the analyticalStorageTtl property: Analytical TTL.withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy) Set the conflictResolutionPolicy property: The conflict resolution policy for the graph.withCreateMode(CreateMode createMode) Set the createMode property: Enum to indicate the mode of resource creation.withDefaultTtl(Integer defaultTtl) Set the defaultTtl property: Default time to live.Set the id property: Name of the Cosmos DB Gremlin graph.withIndexingPolicy(IndexingPolicy indexingPolicy) Set the indexingPolicy property: The configuration of the indexing policy.withPartitionKey(ContainerPartitionKey partitionKey) Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.withRestoreParameters(ResourceRestoreParameters restoreParameters) Set the restoreParameters property: Parameters to indicate the information about the restore.withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy) Set the uniqueKeyPolicy property: 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()Creates an instance of GremlinGraphResource class.
-
-
Method Details
-
id
Get the id property: Name of the Cosmos DB Gremlin graph.- Returns:
- the id value.
-
withId
Set the id property: Name of the Cosmos DB Gremlin graph.- Parameters:
id- the id value to set.- Returns:
- the GremlinGraphResource object itself.
-
indexingPolicy
Get the indexingPolicy property: 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 indexingPolicy property: 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 partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.- Returns:
- the partitionKey value.
-
withPartitionKey
Set the partitionKey property: 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 the defaultTtl property: Default time to live.- Returns:
- the defaultTtl value.
-
withDefaultTtl
Set the defaultTtl property: Default time to live.- Parameters:
defaultTtl- the defaultTtl value to set.- Returns:
- the GremlinGraphResource object itself.
-
uniqueKeyPolicy
Get the uniqueKeyPolicy property: 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 uniqueKeyPolicy property: 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 conflictResolutionPolicy property: The conflict resolution policy for the graph.- Returns:
- the conflictResolutionPolicy value.
-
withConflictResolutionPolicy
public GremlinGraphResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy) Set the conflictResolutionPolicy property: The conflict resolution policy for the graph.- Parameters:
conflictResolutionPolicy- the conflictResolutionPolicy value to set.- Returns:
- the GremlinGraphResource object itself.
-
analyticalStorageTtl
Get the analyticalStorageTtl property: Analytical TTL.- Returns:
- the analyticalStorageTtl value.
-
withAnalyticalStorageTtl
Set the analyticalStorageTtl property: Analytical TTL.- Parameters:
analyticalStorageTtl- the analyticalStorageTtl value to set.- Returns:
- the GremlinGraphResource object itself.
-
restoreParameters
Get the restoreParameters property: Parameters to indicate the information about the restore.- Returns:
- the restoreParameters value.
-
withRestoreParameters
Set the restoreParameters property: Parameters to indicate the information about the restore.- Parameters:
restoreParameters- the restoreParameters value to set.- Returns:
- the GremlinGraphResource object itself.
-
createMode
Get the createMode property: Enum to indicate the mode of resource creation.- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: Enum to indicate the mode of resource creation.- Parameters:
createMode- the createMode value to set.- Returns:
- the GremlinGraphResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-