Method allow to filter policies by its IDs. Matching will be strong and case sensitive.

@param ids is not null list of group IDs
@return {@link AlertPolicyFilter}
15065
public AlertPolicyFilter id(List<String> ids) {
        checkNotNull(ids, "List of ids must be not a null");

        this.ids.addAll(ids);

        return this;
    }
690829
public DataCenterFilter id(String... ids) {
        allItemsNotNull(ids, "Data center ID list");

        this.predicate = this.predicate.and(combine(
            DataCenterMetadata::getId, in(asList(ids), Predicates::equalsIgnoreCase)
        ));

        return this;
    }
137396
public static byte[] getIids(final List<String> ids, final UniqueIds uids) {
        final int size = ids.size();
        final byte[] iids = new byte[IID_WIDTH * size];
        for (int i = 0; i < size; i++) {
            final String instanceId = ids.get(i);
            final byte[] iid = uids.getUiid().getId(instanceId);
            System.arraycopy(iid, 0, iids, i * IID_WIDTH, IID_WIDTH);
        }
        return iids;
    }
992819
public static function findByIds($ids, $throwException = true)
    {
        $ids = array_unique($ids);
        $ids = array_map('intval', $ids);
        $ids2find = array_diff($ids, array_keys(static::$identityMap));
        if (count($ids2find) > 0) {
            Property::find()->where(['in', 'id', $ids2find])->all();
        }

        return array_reduce(
            $ids,
            function ($carry, $id) use ($throwException) {
                if (isset(static::$identityMap[$id])) {
                    $carry[$id] = static::$identityMap[$id];
                } elseif ($throwException) {
                    throw new \RuntimeException("Property $id not found");
                }
                return $carry;
            },
            []
        );
    }
1184462
public void setIds(java.util.Collection<String> ids) {
        if (ids == null) {
            this.ids = null;
            return;
        }

        this.ids = new java.util.ArrayList<String>(ids);
    }
1303709
public List<UserDto> selectByIds(DbSession session, Collection<Integer> ids) {
    return executeLargeInputs(ids, mapper(session)::selectByIds);
  }
863160
public OperationFuture<List<AlertPolicy>> modify(AlertPolicyFilter filter,
        AlertPolicyConfig modifyConfig) {

        return modify(getRefsFromFilter(filter), modifyConfig);
    }
522776
def filter_by_IDs(self, ids, ID=None):
        
        fil = lambda x: x in ids
        return self.filter_by_attr('ID', fil, ID)
602720
public void setId(java.util.Collection<StringFilter> id) {
        if (id == null) {
            this.id = null;
            return;
        }

        this.id = new java.util.ArrayList<StringFilter>(id);
    }
418117
public AlertChannelCache alertChannels(long policyId)
    {
        AlertChannelCache cache = channels.get(policyId);
        if(cache == null)
            channels.put(policyId, cache = new AlertChannelCache(policyId));
        return cache;
    }
233972
public <P extends ParaObject> List<P> findByIds(List<String> ids) {
		MultivaluedMap<String, String> params = new MultivaluedHashMap<>();
		params.put("ids", ids);
		return getItems(find("ids", params));
	}
1176774
public QueryBuilder removeParentIds(final Collection<Integer> ids) {
        if (ids != null) {
            parentIds.removeAll(ids);
        }
        return this;
    }
1366992
public AlertPolicyFilter where(Predicate<AlertPolicyMetadata> filter) {
        checkNotNull(filter, "Filter predicate must be not a null");

        this.predicate = this.predicate.and(filter);

        return this;
    }
268563
public function deleteByIds($ids)
    {
        $qb = $this->createQueryBuilder('filter')->delete()->where(
            'filter.id IN (:ids)'
        )->setParameter('ids', $ids);
        $qb->getQuery()->execute();
    }
794350
public void add(Collection<AlertPolicy> policies)
    {
        for(AlertPolicy policy : policies)
            this.policies.put(policy.getId(), policy);
    }
568999
public UpdateSecurityProfileResult withAlertTargets(java.util.Map<String, AlertTarget> alertTargets) {
        setAlertTargets(alertTargets);
        return this;
    }
1239410
def delete_by_ids(self, ids):
        
        try:
            self.filter(id__in=ids).delete()
            return True
        except self.model.DoesNotExist:
            return False