Example usage for com.amazonaws.services.dynamodbv2.model GetItemResult toString

List of usage examples for com.amazonaws.services.dynamodbv2.model GetItemResult toString

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.model GetItemResult toString.

Prototype

@Override
public String toString() 

Source Link

Document

Returns a string representation of this object.

Usage

From source file:VideoServlet.java

private static String getItem(String keyVal) {

    Map<String, AttributeValue> key = new HashMap<String, AttributeValue>();
    key.put("ID", new AttributeValue(keyVal));

    GetItemRequest getItemRequest = new GetItemRequest().withTableName(TABLENAME).withKey(key);

    GetItemResult item = dynamoDBClient.getItem(getItemRequest);

    System.out.println("Get Result: " + item);
    return item.toString();
}