你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: