GremlinGraphResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. GremlinGraphResource
- com.
Implements
public class GremlinGraphResource
implements JsonSerializable<GremlinGraphResource>
Cosmos DB Gremlin graph resource object.
Constructor Summary
Constructor | Description |
---|---|
GremlinGraphResource() |
Creates an instance of Gremlin |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
analyticalStorageTtl()
Get the analytical |
Conflict |
conflictResolutionPolicy()
Get the conflict |
Create |
createMode()
Get the create |
Integer |
defaultTtl()
Get the default |
static
Gremlin |
fromJson(JsonReader jsonReader)
Reads an instance of Gremlin |
String |
id()
Get the id property: Name of the Cosmos DB Gremlin graph. |
Indexing |
indexingPolicy()
Get the indexing |
Container |
partitionKey()
Get the partition |
Resource |
restoreParameters()
Get the restore |
Json |
toJson(JsonWriter jsonWriter) |
Unique |
uniqueKeyPolicy()
Get the unique |
void |
validate()
Validates the instance. |
Gremlin |
withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analytical |
Gremlin |
withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflict |
Gremlin |
withCreateMode(CreateMode createMode)
Set the create |
Gremlin |
withDefaultTtl(Integer defaultTtl)
Set the default |
Gremlin |
withId(String id)
Set the id property: Name of the Cosmos DB Gremlin graph. |
Gremlin |
withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the indexing |
Gremlin |
withPartitionKey(ContainerPartitionKey partitionKey)
Set the partition |
Gremlin |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Gremlin |
withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
Set the unique |
Methods inherited from java.lang.Object
Constructor Details
GremlinGraphResource
public GremlinGraphResource()
Creates an instance of GremlinGraphResource class.
Method Details
analyticalStorageTtl
public Long analyticalStorageTtl()
Get the analyticalStorageTtl property: Analytical TTL.
Returns:
conflictResolutionPolicy
public ConflictResolutionPolicy conflictResolutionPolicy()
Get the conflictResolutionPolicy property: The conflict resolution policy for the graph.
Returns:
createMode
public CreateMode createMode()
Get the createMode property: Enum to indicate the mode of resource creation.
Returns:
defaultTtl
public Integer defaultTtl()
Get the defaultTtl property: Default time to live.
Returns:
fromJson
public static GremlinGraphResource fromJson(JsonReader jsonReader)
Reads an instance of GremlinGraphResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB Gremlin graph.
Returns:
indexingPolicy
public IndexingPolicy 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:
partitionKey
public ContainerPartitionKey partitionKey()
Get the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.
Returns:
restoreParameters
public ResourceRestoreParameters restoreParameters()
Get the restoreParameters property: Parameters to indicate the information about the restore.
Returns:
toJson
uniqueKeyPolicy
public UniqueKeyPolicy 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:
validate
public void validate()
Validates the instance.
withAnalyticalStorageTtl
public GremlinGraphResource withAnalyticalStorageTtl(Long analyticalStorageTtl)
Set the analyticalStorageTtl property: Analytical TTL.
Parameters:
Returns:
withConflictResolutionPolicy
public GremlinGraphResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflictResolutionPolicy property: The conflict resolution policy for the graph.
Parameters:
Returns:
withCreateMode
public GremlinGraphResource withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Parameters:
Returns:
withDefaultTtl
public GremlinGraphResource withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Default time to live.
Parameters:
Returns:
withId
public GremlinGraphResource withId(String id)
Set the id property: Name of the Cosmos DB Gremlin graph.
Parameters:
Returns:
withIndexingPolicy
public GremlinGraphResource withIndexingPolicy(IndexingPolicy indexingPolicy)
Set the indexingPolicy property: The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph.
Parameters:
Returns:
withPartitionKey
public GremlinGraphResource withPartitionKey(ContainerPartitionKey partitionKey)
Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.
Parameters:
Returns:
withRestoreParameters
public GremlinGraphResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Parameters:
Returns:
withUniqueKeyPolicy
public GremlinGraphResource 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.
Parameters:
Returns:
Applies to
Azure SDK for Java