次の方法で共有


CosmosConflictProperties Class

  • java.lang.Object
    • com.azure.cosmos.models.CosmosConflictProperties

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.

CosmosConflictProperties setId(String id)

Sets the name of the resource.

Methods inherited from java.lang.Object

Method Details

getItem

public T getItem(Class klass)

Gets the conflicting resource in the Azure Cosmos DB service.

Parameters:

klass - The returned type of conflicting resource.

Returns:

The conflicting resource.

getETag

public String getETag()

Get the entity tag associated with the resource. This is only relevant when getting response from the server.

Returns:

the e tag.

getId

public String getId()

Gets the name of the resource.

Returns:

the name of the resource.

getOperationKind

public OperationKind getOperationKind()

Gets the operation kind.

Returns:

the operation kind.

getTimestamp

public Instant getTimestamp()

Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.

Returns:

the timestamp.

setId

public CosmosConflictProperties setId(String id)

Sets the name of the resource.

Parameters:

id - the name of the resource.

Returns:

the current instance of CosmosConflictProperties.

Applies to