Class BatchWriteItemEnhancedRequest
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteItemEnhancedRequest
-
@ThreadSafe public final class BatchWriteItemEnhancedRequest extends Object
Defines parameters used for the batchWriteItem() operation (such asDynamoDbEnhancedClient.batchWriteItem(BatchWriteItemEnhancedRequest)).A request contains references to keys for delete actions and items for put actions, organized into one
WriteBatchobject per accessed table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchWriteItemEnhancedRequest.BuilderA builder that is used to create a request with the desired parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchWriteItemEnhancedRequest.Builderbuilder()Creates a newly initialized builder for a request object.booleanequals(Object o)inthashCode()ReturnConsumedCapacityreturnConsumedCapacity()Whether to return the capacity consumed by this operation.StringreturnConsumedCapacityAsString()Whether to return the capacity consumed by this operation.ReturnItemCollectionMetricsreturnItemCollectionMetrics()Whether to return the item collection metrics.StringreturnItemCollectionMetricsAsString()Whether to return the item collection metrics.BatchWriteItemEnhancedRequest.BuildertoBuilder()Collection<WriteBatch>writeBatches()Returns the collection ofWriteBatchin this request object.
-
-
-
Method Detail
-
builder
public static BatchWriteItemEnhancedRequest.Builder builder()
Creates a newly initialized builder for a request object.
-
toBuilder
public BatchWriteItemEnhancedRequest.Builder toBuilder()
- Returns:
- a builder with all existing values set
-
returnConsumedCapacity
public ReturnConsumedCapacity returnConsumedCapacity()
Whether to return the capacity consumed by this operation.- See Also:
returnConsumedCapacity()
-
returnConsumedCapacityAsString
public String returnConsumedCapacityAsString()
Whether to return the capacity consumed by this operation.Similar to
returnConsumedCapacity()but return the value as a string. This is useful in situations where the value is not defined inReturnConsumedCapacity.
-
returnItemCollectionMetrics
public ReturnItemCollectionMetrics returnItemCollectionMetrics()
Whether to return the item collection metrics.
-
returnItemCollectionMetricsAsString
public String returnItemCollectionMetricsAsString()
Whether to return the item collection metrics.Similar to
returnItemCollectionMetrics()but return the value as a string. This is useful in situations where the value is not defined inReturnItemCollectionMetrics.
-
writeBatches
public Collection<WriteBatch> writeBatches()
Returns the collection ofWriteBatchin this request object.
-
-