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
WriteBatch
object per accessed table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchWriteItemEnhancedRequest.Builder
A 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.Builder
builder()
Creates a newly initialized builder for a request object.boolean
equals(Object o)
int
hashCode()
ReturnConsumedCapacity
returnConsumedCapacity()
Whether to return the capacity consumed by this operation.String
returnConsumedCapacityAsString()
Whether to return the capacity consumed by this operation.ReturnItemCollectionMetrics
returnItemCollectionMetrics()
Whether to return the item collection metrics.String
returnItemCollectionMetricsAsString()
Whether to return the item collection metrics.BatchWriteItemEnhancedRequest.Builder
toBuilder()
Collection<WriteBatch>
writeBatches()
Returns the collection ofWriteBatch
in 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 ofWriteBatch
in this request object.
-
-