public final class CosmosItemIdentity extends Object
Constructor and Description |
---|
CosmosItemIdentity(PartitionKey partitionKey,
String id)
Instantiates an instance of the CosmosItemIdentity class
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the id value uniquely identifying this item within the scope of a logical partition
|
PartitionKey |
getPartitionKey()
Gets the partition key
|
public CosmosItemIdentity(PartitionKey partitionKey, String id)
partitionKey
- the partition key - must not be nullid
- the item id value - must be unique within the scope of a logical partition, must not be null or emptypublic PartitionKey getPartitionKey()
Gets the partition key
public String getId()
Gets the id value uniquely identifying this item within the scope of a logical partition
Copyright © 2021 Microsoft Corporation. All rights reserved.