public class Expected extends Object
Typical usages:
new Expected("strAttr").eq("attrValue");
new Expected("intAttr").gt(42);
...
See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ API_ExpectedAttributeValue.html.
Modifier and Type | Method and Description |
---|---|
Expected |
beginsWith(String val)
Creates and returns a condition of the range key with a value that begins
with the given value.
|
Expected |
between(Object low,
Object hi)
Creates and returns a condition of the range key that has a value between
the given values.
|
Expected |
contains(Object val) |
Expected |
eq(Object val)
Creates and returns a condition of the range key being equal to the given
value.
|
Expected |
exists()
Expects the attribute be an existing attribute.
|
Expected |
ge(Object val)
Creates and returns a condition of the range key being greater than or
equal to the given value.
|
String |
getAttribute()
Returns the attribute.
|
ComparisonOperator |
getComparisonOperator() |
Object[] |
getValues() |
Expected |
gt(Object val)
Creates and returns a condition of the range key being greater than the
given value.
|
Expected |
in(Object... values) |
Expected |
le(Object val)
Creates and returns a condition of the range key being less than or equal
to the given value.
|
Expected |
lt(Object val)
Creates and returns a condition of the range key being less than the
given value.
|
Expected |
ne(Object val) |
Expected |
notContains(Object val) |
Expected |
notExist()
Expects the attribute be non-existing.
|
public Expected(String attrName)
public String getAttribute()
public ComparisonOperator getComparisonOperator()
public Object[] getValues()
public Expected eq(Object val)
public Expected exists()
public Expected notExist()
public Expected beginsWith(String val)
public Expected between(Object low, Object hi)
public Expected ge(Object val)
public Expected gt(Object val)
public Expected le(Object val)