Class PutItemSpec
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.document.spec.PutItemSpec
-
public class PutItemSpec extends Object
Full parameter specification for the PutItem API.
-
-
Constructor Summary
Constructors Constructor Description PutItemSpec()
-
Method Summary
-
-
-
Method Detail
-
getItem
public Item getItem()
-
withItem
public PutItemSpec withItem(Item item)
-
getExpected
public Collection<Expected> getExpected()
-
withExpected
public PutItemSpec withExpected(Expected... expected)
-
withExpected
public PutItemSpec withExpected(Collection<Expected> expected)
-
getConditionExpression
public String getConditionExpression()
-
withConditionExpression
public PutItemSpec withConditionExpression(String conditionExpression)
-
withNameMap
public PutItemSpec withNameMap(Map<String,String> nameMap)
Applicable only when an expression has been specified. Used to specify the actual values for the attribute-name placeholders, where the value in the map can either be string for simple attribute name, or a JSON path expression.
-
withValueMap
public PutItemSpec withValueMap(Map<String,Object> valueMap)
Applicable only when an expression has been specified. Used to specify the actual values for the attribute-value placeholders.
-
getConditionalOperator
public String getConditionalOperator()
-
withConditionalOperator
public PutItemSpec withConditionalOperator(ConditionalOperator conditionalOperator)
-
getReturnConsumedCapacity
public String getReturnConsumedCapacity()
-
withReturnConsumedCapacity
public PutItemSpec withReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity)
-
getReturnItemCollectionMetrics
public String getReturnItemCollectionMetrics()
-
withReturnItemCollectionMetrics
public PutItemSpec withReturnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics)
-
getReturnValues
public String getReturnValues()
-
withReturnValues
public PutItemSpec withReturnValues(ReturnValue returnValues)
-
withProgressListener
public PutItemSpec withProgressListener(ProgressListener progressListener)
-
withRequestMetricCollector
public PutItemSpec withRequestMetricCollector(RequestMetricCollector requestMetricCollector)
-
withExpressionSpec
@Beta public PutItemSpec withExpressionSpec(PutItemExpressionSpec xspec)
Convenient method to specify expressions (and the associated name map and value map) viaPutItemExpressionSpec
.
-
getRequest
public T getRequest()
Internal method. Not meant to be called directly. May change without notice.
-
getProgressListener
public ProgressListener getProgressListener()
-
setProgressListener
public void setProgressListener(ProgressListener progressListener)
-
getRequestMetricCollector
public RequestMetricCollector getRequestMetricCollector()
-
setRequestMetricCollector
public void setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
-
-