Class DynamoDBSaveExpression

    • Constructor Detail

      • DynamoDBSaveExpression

        public DynamoDBSaveExpression()
    • Method Detail

      • getExpected

        public Map<String,​ExpectedAttributeValue> getExpected()
        Gets the map of attribute names to expected attribute values to check on save.
        Returns:
        The map of attribute names to expected attribute value conditions to check on save
      • setExpected

        public void setExpected​(Map<String,​ExpectedAttributeValue> expectedAttributes)
        Sets the expected condition to the map of attribute names to expected attribute values given.
        Parameters:
        expectedAttributes - The map of attribute names to expected attribute value conditions to check on save
      • withExpected

        public DynamoDBSaveExpression withExpected​(Map<String,​ExpectedAttributeValue> expectedAttributes)
        Sets the expected condition to the map of attribute names to expected attribute values given and returns a pointer to this object for method-chaining.
        Parameters:
        expectedAttributes - The map of attribute names to expected attribute value conditions to check on save
      • withExpectedEntry

        public DynamoDBSaveExpression withExpectedEntry​(String attributeName,
                                                        ExpectedAttributeValue expected)
        Adds one entry to the expected conditions and returns a pointer to this object for method-chaining.
        Parameters:
        attributeName - The name of the attribute.
        expected - The expected attribute value.
      • getConditionalOperator

        public String getConditionalOperator()
        Returns the logical operator on the expected value conditions of this save operation.
      • setConditionalOperator

        public void setConditionalOperator​(String conditionalOperator)
        Sets the logical operator on the expected value conditions of this save operation.
      • withConditionalOperator

        public DynamoDBSaveExpression withConditionalOperator​(String conditionalOperator)
        Sets the logical operator on the expected value conditions of this save operation and returns a pointer to this object for method-chaining.
      • setConditionalOperator

        public void setConditionalOperator​(ConditionalOperator conditionalOperator)
        Sets the logical operator on the expected value conditions of this save operation.
      • withConditionalOperator

        public DynamoDBSaveExpression withConditionalOperator​(ConditionalOperator conditionalOperator)
        Sets the logical operator on the expected value conditions of this save operation and returns a pointer to this object for method-chaining.