T
- The type of the modelled object.@ThreadSafe public final class PutItemEnhancedRequest<T> extends Object
DynamoDbTable.putItem(PutItemEnhancedRequest)
or DynamoDbAsyncTable.putItem(PutItemEnhancedRequest)
).
A valid request object must contain the item that should be written to the table.
Modifier and Type | Class and Description |
---|---|
static class |
PutItemEnhancedRequest.Builder<T>
A builder that is used to create a request with the desired parameters.
|
Modifier and Type | Method and Description |
---|---|
static <T> PutItemEnhancedRequest.Builder<T> |
builder(Class<? extends T> itemClass)
Creates a newly initialized builder for the request object.
|
Expression |
conditionExpression()
Returns the condition
Expression set on this request object, or null if it doesn't exist. |
boolean |
equals(Object o) |
int |
hashCode() |
T |
item()
Returns the item for this put operation request.
|
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.
|
ReturnValue |
returnValues()
Whether to return the values of the item before this request.
|
String |
returnValuesAsString()
Whether to return the values of the item before this request.
|
PutItemEnhancedRequest.Builder<T> |
toBuilder()
Returns a builder initialized with all existing values on the request object.
|
public static <T> PutItemEnhancedRequest.Builder<T> builder(Class<? extends T> itemClass)
T
- The type of the modelled object, corresponding to itemClassitemClass
- the class that items in this table map topublic PutItemEnhancedRequest.Builder<T> toBuilder()
public T item()
public Expression conditionExpression()
Expression
set on this request object, or null if it doesn't exist.public ReturnValue returnValues()
PutItemRequest.returnValues()
public String returnValuesAsString()
Similar to returnValues()
but returns the value as a string. This is useful in situations where the value is
not defined in ReturnValue
.
public ReturnConsumedCapacity returnConsumedCapacity()
PutItemRequest.returnConsumedCapacity()
public String returnConsumedCapacityAsString()
Similar to returnConsumedCapacity()
but return the value as a string. This is useful in situations where the
value is not defined in ReturnConsumedCapacity
.
public ReturnItemCollectionMetrics returnItemCollectionMetrics()
public String returnItemCollectionMetricsAsString()
Similar to returnItemCollectionMetrics()
but return the value as a string. This is useful in situations
where the
value is not defined in ReturnItemCollectionMetrics
.
Copyright © 2023. All rights reserved.