'Sets the attributes in the data store.'

def SetAttributes(self, urn, attributes, to_delete, add_child_index=True, mutation_pool=None, sync=False, token=None):

    attributes[AFF4Object.SchemaCls.LAST] = [rdfvalue.RDFDatetime.Now().SerializeToDataStore()]
    to_delete.add(AFF4Object.SchemaCls.LAST)
    if mutation_pool:
        mutation_pool.MultiSet(urn, attributes, replace=False, to_delete=to_delete)
    else:
        data_store.DB.MultiSet(urn, attributes, token=token, replace=False, sync=sync, to_delete=to_delete)
    if add_child_index:
        self._UpdateChildIndex(urn, token, mutation_pool=mutation_pool)
