Class RuleCondition.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.RuleCondition.Builder
- All Implemented Interfaces:
ObjectBuilder<RuleCondition>
- Enclosing class:
- RuleCondition
public static class RuleCondition.Builder extends java.lang.Object implements ObjectBuilder<RuleCondition>
Builder for
RuleCondition
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RuleCondition.Builder
appliesTo(AppliesTo value)
Specifies the result property to which the condition applies.RuleCondition
build()
Builds aRuleCondition
.RuleCondition.Builder
operator(ConditionOperator value)
Specifies the condition operator.RuleCondition.Builder
value(double value)
The value that is compared against theapplies_to
field using the operator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appliesTo
Specifies the result property to which the condition applies. If your detector uses lat_long, metric, rare, or freq_rare functions, you can only specify conditions that apply to time.API name:
applies_to
-
operator
Specifies the condition operator. The available options are greater than, greater than or equals, less than, and less than or equals.API name:
operator
-
value
The value that is compared against theapplies_to
field using the operator.API name:
value
-
build
Builds aRuleCondition
.- Specified by:
build
in interfaceObjectBuilder<RuleCondition>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-