public final class CosmosConflictRequestOptions extends Object
Constructor and Description |
---|
CosmosConflictRequestOptions() |
CosmosConflictRequestOptions(PartitionKey partitionKey) |
Modifier and Type | Method and Description |
---|---|
String |
getIfMatchETag()
Gets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
String |
getIfNoneMatchETag()
Gets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
PartitionKey |
getPartitionKey()
Gets the partition key associated with the request in the Azure Cosmos DB service.
|
CosmosConflictRequestOptions |
setIfMatchETag(String ifMatchETag)
Sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosConflictRequestOptions |
setIfNoneMatchETag(String ifNoneMatchEtag)
Sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosConflictRequestOptions |
setPartitionKey(PartitionKey partitionKey)
Sets the partition key associated with the request in the Azure Cosmos DB service.
|
public CosmosConflictRequestOptions()
public CosmosConflictRequestOptions(PartitionKey partitionKey)
public String getIfMatchETag()
public CosmosConflictRequestOptions setIfMatchETag(String ifMatchETag)
ifMatchETag
- the ifMatchETag associated with the request.public String getIfNoneMatchETag()
public CosmosConflictRequestOptions setIfNoneMatchETag(String ifNoneMatchEtag)
ifNoneMatchEtag
- the ifNoneMatchETag associated with the request.public CosmosConflictRequestOptions setPartitionKey(PartitionKey partitionKey)
partitionKey
- the partition key associated with the request.public PartitionKey getPartitionKey()
Copyright © 2021 Microsoft Corporation. All rights reserved.