Class 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 Detail

      • AccessCondition

        public AccessCondition()
    • Method Detail

      • type

        public AccessConditionType type()
        Gets the condition type.
        Returns:
        the condition type.
      • 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