你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CosmosConflictProperties Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosConflictProperties
- com.
public final class CosmosConflictProperties
The type Cosmos conflict properties.
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
getItem(Class<T> klass)
Gets the conflicting resource in the Azure Cosmos DB service. |
String |
getETag()
Get the entity tag associated with the resource. |
String |
getId()
Gets the name of the resource. |
com.azure.cosmos.implementation.OperationKind |
getOperationKind()
Gets the operation kind. |
Instant |
getTimestamp()
Get the last modified timestamp associated with the resource. |
Cosmos |
setId(String id)
Sets the name of the resource. |
Methods inherited from java.lang.Object
Method Details
getItem
public T
Gets the conflicting resource in the Azure Cosmos DB service.
Parameters:
Returns:
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.
Returns:
getId
public String getId()
Gets the name of the resource.
Returns:
getOperationKind
public OperationKind getOperationKind()
Gets the operation kind.
Returns:
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
Returns:
setId
public CosmosConflictProperties setId(String id)
Sets the name of the resource.
Parameters:
Returns: