AccessCondition Class

  • java.lang.Object
    • com.microsoft.azure.documentdb.AccessCondition

public final class AccessCondition

Represents a set of access conditions to be used for operations against the Azure Cosmos DB database service.

Constructor Summary

Constructor Description
AccessCondition()

Method Summary

Modifier and Type Method and Description
java.lang.String getCondition()

Gets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.

AccessConditionType getType()

Gets the condition type.

void setCondition(String condition)

Sets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.

void setType(AccessConditionType type)

Sets the condition type.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

AccessCondition

public AccessCondition()

Method Details

getCondition

public String getCondition()

Gets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.

Returns:

the condition.

getType

public AccessConditionType getType()

Gets the condition type.

Returns:

the condition type.

setCondition

public void setCondition(String condition)

Sets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.

Parameters:

condition - the condition to use.

setType

public void setType(AccessConditionType type)

Sets the condition type.

Parameters:

type - the condition type to use.

Applies to