public class UpdateItem<T> extends Object implements TableOperation<T,UpdateItemRequest,UpdateItemResponse,T>, TransactableWriteOperation<T>
Modifier and Type | Class and Description |
---|---|
static class |
UpdateItem.Builder<T> |
static class |
UpdateItem.GenericBuilder |
Modifier and Type | Method and Description |
---|---|
static UpdateItem.GenericBuilder |
builder() |
boolean |
equals(Object o) |
UpdateItemRequest |
generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
TransactWriteItem |
generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
Boolean |
getIgnoreNulls() |
T |
getItem() |
Function<UpdateItemRequest,UpdateItemResponse> |
getServiceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level SDK call to DynamoDb.
|
int |
hashCode() |
static <T> UpdateItem<T> |
of(T item) |
UpdateItem.Builder<T> |
toBuilder() |
T |
transformResponse(UpdateItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
executeOnPrimaryIndex
execute
public static <T> UpdateItem<T> of(T item)
public static UpdateItem.GenericBuilder builder()
public UpdateItem.Builder<T> toBuilder()
public UpdateItemRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, MapperExtension mapperExtension)
CommonOperation
DynamoDbClient
.generateRequest
in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>
tableSchema
- A TableSchema
that maps the table to a modelled object.operationContext
- An object containing the context, or target, of the command execution.mapperExtension
- A MapperExtension
that may modify the request of this operation. A null value
here will result in no modifications.DynamoDbClient
call to perform the operation.public T transformResponse(UpdateItemResponse response, TableSchema<T> tableSchema, OperationContext operationContext, MapperExtension mapperExtension)
CommonOperation
transformResponse
in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>
response
- The response object returned by the DynamoDb call for this operation.tableSchema
- A TableSchema
that maps the table to a modelled object.operationContext
- An object containing the context, or target, of the command execution.mapperExtension
- A MapperExtension
that may modify the result of this operation. A null value
here will result in no modifications.public Function<UpdateItemRequest,UpdateItemResponse> getServiceCall(DynamoDbClient dynamoDbClient)
CommonOperation
getServiceCall
in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>
dynamoDbClient
- A low level DynamoDbClient
to make the call against.public TransactWriteItem generateTransactWriteItem(TableSchema<T> tableSchema, OperationContext operationContext, MapperExtension mapperExtension)
generateTransactWriteItem
in interface TransactableWriteOperation<T>
public T getItem()
public Boolean getIgnoreNulls()
Copyright © 2019. All rights reserved.