public BatchWriteItemSpec withTableWriteItems(
            TableWriteItems ... tableWriteItems) {
        if (tableWriteItems == null)
            this.tableWriteItems = null;
        else {
            Set<String> names = new LinkedHashSet<String>();
            for (TableWriteItems e: tableWriteItems)
                names.add(e.getTableName());
            if (names.size() != tableWriteItems.length) {
                throw new IllegalArgumentException(
                    "table names must not duplicate in the list of TableWriteItems");
            }
            this.tableWriteItems = Arrays.asList(tableWriteItems);
        }
        return this;
    }
Full parameter specification for the BatchWriteItem API.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/BatchWriteItemSpec.java