AccessCondition Class
- java.
lang. Object - com.
microsoft. azure. documentdb. AccessCondition
- com.
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 Access |
Access |
getType()
Gets the condition type. |
void |
setCondition(String condition)
Sets the value of the condition - for Access |
void |
setType(AccessConditionType type)
Sets the condition type. |
Methods inherited from java.lang.Object
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:
getType
public AccessConditionType getType()
Gets the condition type.
Returns:
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:
setType
public void setType(AccessConditionType type)
Sets the condition type.
Parameters:
Applies to
Azure SDK for Java