Class DeleteItemSpec
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.document.spec.AbstractSpecWithPrimaryKey<DeleteItemRequest>
-
- com.amazonaws.services.dynamodbv2.document.spec.DeleteItemSpec
-
public class DeleteItemSpec extends AbstractSpecWithPrimaryKey<DeleteItemRequest>
Full parameter specification for the DeleteItem API.
-
-
Constructor Summary
Constructors Constructor Description DeleteItemSpec()
-
Method Summary
-
Methods inherited from class com.amazonaws.services.dynamodbv2.document.spec.AbstractSpecWithPrimaryKey
getKeyComponents
-
-
-
-
Method Detail
-
withPrimaryKey
public DeleteItemSpec withPrimaryKey(KeyAttribute... components)
Description copied from class:AbstractSpecWithPrimaryKey
Sets the primary key with the specified key components.- Overrides:
withPrimaryKey
in classAbstractSpecWithPrimaryKey<DeleteItemRequest>
-
withPrimaryKey
public DeleteItemSpec withPrimaryKey(PrimaryKey primaryKey)
Description copied from class:AbstractSpecWithPrimaryKey
Sets the primary key.- Overrides:
withPrimaryKey
in classAbstractSpecWithPrimaryKey<DeleteItemRequest>
-
withPrimaryKey
public DeleteItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue)
Description copied from class:AbstractSpecWithPrimaryKey
Sets the primary key with the specified hash-only key name and value.- Overrides:
withPrimaryKey
in classAbstractSpecWithPrimaryKey<DeleteItemRequest>
-
withPrimaryKey
public DeleteItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
Description copied from class:AbstractSpecWithPrimaryKey
Sets the primary key with the specified hash key and range key.- Overrides:
withPrimaryKey
in classAbstractSpecWithPrimaryKey<DeleteItemRequest>
-
getExpected
public Collection<Expected> getExpected()
-
withExpected
public DeleteItemSpec withExpected(Expected... expected)
-
withExpected
public DeleteItemSpec withExpected(Collection<Expected> expected)
-
getConditionExpression
public String getConditionExpression()
-
withConditionExpression
public DeleteItemSpec withConditionExpression(String conditionExpression)
-
withNameMap
public DeleteItemSpec 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 DeleteItemSpec 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 DeleteItemSpec withConditionalOperator(ConditionalOperator conditionalOperator)
-
getReturnConsumedCapacity
public String getReturnConsumedCapacity()
-
withReturnConsumedCapacity
public DeleteItemSpec withReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity)
-
getReturnItemCollectionMetrics
public String getReturnItemCollectionMetrics()
-
withReturnItemCollectionMetrics
public DeleteItemSpec withReturnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics)
-
getReturnValues
public String getReturnValues()
-
withReturnValues
public DeleteItemSpec withReturnValues(ReturnValue returnValues)
-
withProgressListener
public DeleteItemSpec withProgressListener(ProgressListener progressListener)
-
withRequestMetricCollector
public DeleteItemSpec withRequestMetricCollector(RequestMetricCollector requestMetricCollector)
-
withExpressionSpec
@Beta public DeleteItemSpec withExpressionSpec(DeleteItemExpressionSpec xspec)
Convenient method to specify expressions (and the associated name map and value map) viaDeleteItemExpressionSpec
.
-
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)
-
-