in sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/utils/EncryptionContextOperators.java [72:87]
public static UnaryOperator<EncryptionContext> overrideEncryptionContextTableNameUsingMap(
Map<String, String> tableNameOverrideMap) {
return encryptionContext -> {
if (tableNameOverrideMap == null
|| encryptionContext == null
|| encryptionContext.getTableName() == null) {
return encryptionContext;
}
String newTableName = tableNameOverrideMap.get(encryptionContext.getTableName());
if (newTableName != null) {
return new EncryptionContext.Builder(encryptionContext).withTableName(newTableName).build();
} else {
return encryptionContext;
}
};
}