public static class DynamoDBMapping.DynamoDBMappingBuilder extends Object
DynamoDBMapping using simple immutabilty.| Constructor and Description |
|---|
DynamoDBMappingBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String tableName,
String attributeName,
String attrType)
Adds an attribute to an specific item
|
DynamoDBMapping |
build()
Constructs the DynamoDBMapping object
|
String |
getTableName(String tableName)
Gets the table name for which the table is being mapped
|
void |
setKeySchema(String tableName,
String keyName,
String keyType)
Sets the hash key schema for the specified table
|
void |
setProvisionedThroughput(String tableName,
long readCapUnits,
long writeCapUnits)
Sets the provisioned throughput for the specified table
|
public String getTableName(String tableName)
tableName - public void setProvisionedThroughput(String tableName, long readCapUnits, long writeCapUnits)
tableName - readCapUnits - writeCapUnits - public void setKeySchema(String tableName, String keyName, String keyType)
tableName - keyName - keyType - public void addAttribute(String tableName, String attributeName, String attrType)
tableName - attributeName - attrType - public DynamoDBMapping build()
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.