Adds the condition list to the conditions for the account.
@param conditions The conditions to add
559607
public void add(Collection<NrqlAlertCondition> conditions)
    {
        for(NrqlAlertCondition condition : conditions)
            this.conditions.put(condition.getId(), condition);
    }
773747
def add_condition(self, name, cond_class):
        
        # Has this condition type already been defined?
        if name in self.conditions:
            self._log.warn('Overwriting an existing Condition Type class: {type}'.format(type=name))

        if not issubclass(cond_class, ConditionType):
            self._log.error('Condition Type class must implement the base ConditionType interface, please review the '
                            'documentation on defining custom condition types. (Refusing to set the condition type '
                            '"{type}")'.format(type=name))
            return

        self.conditions[name] = cond_class(name)
491521
public Condition[] wrap(Condition... conditions){
		final Condition[] clonedConditions = new Condition[conditions.length];
		if(ArrayUtil.isNotEmpty(conditions)) {
			Condition clonedCondition;
			for(int i = 0; i < conditions.length; i++) {
				clonedCondition = conditions[i].clone();
				clonedCondition.setField(wrap(clonedCondition.getField()));
				clonedConditions[i] = clonedCondition;
			}
		}
		
		return clonedConditions;
	}
90298
def list_conditions(self, service_id, version_number):
		""""""
		content = self._fetch("/service/%s/version/%d/condition" % (service_id, version_number))
		return map(lambda x: FastlyCondition(self, x), content)
394683
final public function setConditions(array $conditions)
    {
        if ($this->hasRun) {
            throw new \RuntimeException("Cursor query has already run");
        }

        $this->conditions = $this->applyConditions($conditions);
    }
653127
private function setupConditions(array $conditions) : void
    {
        foreach ($conditions as $condition) {
            $this->conditions[] = new Condition($condition['exec'], $condition['args'] ?? []);
        }
    }
746955
public function addConditionsFromArray(array $conditions)
    {
        foreach ($conditions as $condition) {

            if (!is_callable($condition)) {

                $message = "One or more of the conditions you provided are not callable, ";
                $message .= "please pass an array of callable functions.";

                throw new \InvalidArgumentException($message);
            }

            $this->conditions->enqueue($condition);

        }
    }
717024
public void addRules(Rules rules) {
        if (logger.isDebugEnabled()) {
            logger.debug("Adding rules -> " + rules);
        }
        addRules(DEFAULT_CONTEXT_ID, rules);
    }
1198491
public void addDefaultValues(Service service) {
		for (ServiceOperation op : (List<ServiceOperation>) service.getOperations()) {
			addDefaultValues(op);
		}
	}
1266784
public void add(Collection<AlertCondition> conditions)
    {
        for(AlertCondition condition : conditions)
            this.conditions.put(condition.getId(), condition);
    }
660285
public static void verifyRolloutGroupConditions(final RolloutGroupConditions conditions) {
        if (conditions.getSuccessCondition() == null) {
            throw new ValidationException("Rollout group is missing success condition");
        }
        if (conditions.getSuccessAction() == null) {
            throw new ValidationException("Rollout group is missing success action");
        }
    }
909420
protected void addIdNotInCollectionCondition(final Expression<?> property, final Collection<?> values) {
        if (values != null && !values.isEmpty()) {
            fieldConditions.add(getCriteriaBuilder().not(property.in(values)));
        }
    }
514600
def save_conditions(self) -> None:
        """"""
        for element in printtools.progressbar(self):
            element.model.sequences.save_conditions()
878695
public BooleanConditionBuilder should(ConditionBuilder... conditionBuilders) {
        if (should == null) {
            should = new ArrayList<>(conditionBuilders.length);
        }
        for (ConditionBuilder conditionBuilder : conditionBuilders) {
            should.add(conditionBuilder.build());
        }
        return this;
    }
491010
public function add($condition, array $params = [])
    {
        $this->conditions[] = $condition;
        $this->bind($params);
        return $this;
    }
868
public function setConditions(array $conditions = [])
    {
        $config = $this->container->has('config') ? $this->container->make('config') : null;

        if (! is_null($config)) {
            $this->conditions = array_merge(
                $config->get('app.conditions', []),
                $conditions
            );
        } else {
            $this->conditions = $conditions;
        }
    }
215757
@SuppressWarnings("unchecked")
    public static Condition composite(Condition... conditions) {
        Condition init = alwaysTrue();

        for (Condition condition : conditions) {
            Predicate<Call> newPredicate = Predicates.and(init.getPredicate(), condition.getPredicate());
            if (condition instanceof ConditionWithApplicables) {
                init = new ConditionWithApplicables(newPredicate, ((ConditionWithApplicables) condition).getApplicables());
            } else {
                init = Condition.custom(newPredicate);
            }
        }

        return init;
    }