Class GremlinGraphGetPropertiesResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.GremlinGraphResource
-
- com.azure.resourcemanager.cosmos.models.GremlinGraphGetPropertiesResource
-
public final class GremlinGraphGetPropertiesResource extends GremlinGraphResource
The GremlinGraphGetPropertiesResource model.
-
-
Constructor Summary
Constructors Constructor Description GremlinGraphGetPropertiesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.Stringrid()Get the rid property: A system generated property.Floatts()Get the ts property: A system generated property that denotes the last updated timestamp of the resource.voidvalidate()Validates the instance.GremlinGraphGetPropertiesResourcewithConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)Set the conflictResolutionPolicy property: The conflict resolution policy for the graph.GremlinGraphGetPropertiesResourcewithDefaultTtl(Integer defaultTtl)Set the defaultTtl property: Default time to live.GremlinGraphGetPropertiesResourcewithId(String id)Set the id property: Name of the Cosmos DB Gremlin graph.GremlinGraphGetPropertiesResourcewithIndexingPolicy(IndexingPolicy indexingPolicy)Set the indexingPolicy property: The configuration of the indexing policy.GremlinGraphGetPropertiesResourcewithPartitionKey(ContainerPartitionKey partitionKey)Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.GremlinGraphGetPropertiesResourcewithUniqueKeyPolicy(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.-
Methods inherited from class com.azure.resourcemanager.cosmos.models.GremlinGraphResource
conflictResolutionPolicy, defaultTtl, id, indexingPolicy, partitionKey, uniqueKeyPolicy
-
-
-
-
Method Detail
-
rid
public String rid()
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
ts
public Float ts()
Get the ts property: A system generated property that denotes the last updated timestamp of the resource.- Returns:
- the ts value.
-
etag
public String etag()
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.- Returns:
- the etag value.
-
withId
public GremlinGraphGetPropertiesResource withId(String id)
Set the id property: Name of the Cosmos DB Gremlin graph.- Overrides:
withIdin classGremlinGraphResource- Parameters:
id- the id value to set.- Returns:
- the GremlinGraphResource object itself.
-
withIndexingPolicy
public GremlinGraphGetPropertiesResource 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.- Overrides:
withIndexingPolicyin classGremlinGraphResource- Parameters:
indexingPolicy- the indexingPolicy value to set.- Returns:
- the GremlinGraphResource object itself.
-
withPartitionKey
public GremlinGraphGetPropertiesResource withPartitionKey(ContainerPartitionKey partitionKey)
Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.- Overrides:
withPartitionKeyin classGremlinGraphResource- Parameters:
partitionKey- the partitionKey value to set.- Returns:
- the GremlinGraphResource object itself.
-
withDefaultTtl
public GremlinGraphGetPropertiesResource withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Default time to live.- Overrides:
withDefaultTtlin classGremlinGraphResource- Parameters:
defaultTtl- the defaultTtl value to set.- Returns:
- the GremlinGraphResource object itself.
-
withUniqueKeyPolicy
public GremlinGraphGetPropertiesResource 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.- Overrides:
withUniqueKeyPolicyin classGremlinGraphResource- Parameters:
uniqueKeyPolicy- the uniqueKeyPolicy value to set.- Returns:
- the GremlinGraphResource object itself.
-
withConflictResolutionPolicy
public GremlinGraphGetPropertiesResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
Set the conflictResolutionPolicy property: The conflict resolution policy for the graph.- Overrides:
withConflictResolutionPolicyin classGremlinGraphResource- Parameters:
conflictResolutionPolicy- the conflictResolutionPolicy value to set.- Returns:
- the GremlinGraphResource object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classGremlinGraphResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-