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