Java 多期望值dynamoDB
我正在尝试有条件地更新Dynamo DB中的一项。现在,我能够通过这项工作与一个预期的价值Java 多期望值dynamoDB,java,conditional-statements,amazon-dynamodb,Java,Conditional Statements,Amazon Dynamodb,我正在尝试有条件地更新Dynamo DB中的一项。现在,我能够通过这项工作与一个预期的价值 expectedValues.put("Status", new ExpectedAttributeValue() .withComparisonOperator("EQ") .withAttributeValueList(new AttributeValue().withS(StatusCond1))); 现在我想检查Status是否等于两个期望值之一
expectedValues.put("Status",
new ExpectedAttributeValue()
.withComparisonOperator("EQ")
.withAttributeValueList(new AttributeValue().withS(StatusCond1)));
现在我想检查Status是否等于两个期望值之一。我试着将最后一行替换为
.withAttributeValueList(new AttributeValue().withSS(StatusCond1, StatusCond2)));
但是没有用。我不明白这里如何使用条件运算符。使用IN运算符。
“IN:检查两个集合中的匹配元素”