Search in sources :

Example 1 with GetItemResult

use of com.amazonaws.services.dynamodbv2.model.GetItemResult in project camel by apache.

the class GetItemCommand method execute.

@Override
public void execute() {
    GetItemResult result = ddbClient.getItem(new GetItemRequest().withKey(determineKey()).withTableName(determineTableName()).withAttributesToGet(determineAttributeNames()).withConsistentRead(determineConsistentRead()));
    addAttributesToResult(result.getItem());
}
Also used : GetItemResult(com.amazonaws.services.dynamodbv2.model.GetItemResult) GetItemRequest(com.amazonaws.services.dynamodbv2.model.GetItemRequest)

Aggregations

GetItemRequest (com.amazonaws.services.dynamodbv2.model.GetItemRequest)1 GetItemResult (com.amazonaws.services.dynamodbv2.model.GetItemResult)1