class DynamoDBWorkerUtils {

    public static void updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
        final String eTag) {
        // Build item
        final Map<String, AttributeValue> newResource = new HashMap<>();
        newResource.put(MarsDynamoDBManager.RESOURCE_TABLE_HASH_KEY, new AttributeValue(resource));
        newResource.put(DynamoDBWorkerUtils.ETAG_KEY, new AttributeValue(eTag));
        dynamoDB.putItem(table, newResource);
    }

    private  DynamoDBWorkerUtils();

}