Package com.azure.data.cosmos
Class AccessCondition
- java.lang.Object
-
- com.azure.data.cosmos.AccessCondition
-
public final class AccessCondition extends Object
Represents a set of access conditions to be used for operations against the Azure Cosmos DB database service.
-
-
Constructor Summary
Constructors Constructor Description AccessCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
condition()
Gets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.AccessCondition
condition(String condition)
Sets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.AccessConditionType
type()
Gets the condition type.AccessCondition
type(AccessConditionType type)
Sets the condition type.
-
-
-
Method Detail
-
type
public AccessConditionType type()
Gets the condition type.- Returns:
- the condition type.
-
type
public AccessCondition type(AccessConditionType type)
Sets the condition type.- Parameters:
type
- the condition type to use.- Returns:
- the Access Condition
-
condition
public String condition()
Gets the value of the condition - for AccessConditionType IfMatchs and IfNotMatch, this is the ETag that has to be compared to.- Returns:
- the condition.
-
condition
public AccessCondition condition(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.- Returns:
- the Access Condition
-
-