Class RuleCondition.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RuleCondition.Builder>
co.elastic.clients.elasticsearch.ml.RuleCondition.Builder
- All Implemented Interfaces:
WithJson<RuleCondition.Builder>,ObjectBuilder<RuleCondition>
- Enclosing class:
- RuleCondition
public static class RuleCondition.Builder
extends WithJsonObjectBuilderBase<RuleCondition.Builder>
implements ObjectBuilder<RuleCondition>
Builder for
RuleCondition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RuleCondition.BuilderRequired - Specifies the result property to which the condition applies.build()Builds aRuleCondition.final RuleCondition.Builderoperator(ConditionOperator value) Required - Specifies the condition operator.protected RuleCondition.Builderself()final RuleCondition.Buildervalue(double value) Required - The value that is compared against theapplies_tofield using the operator.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appliesTo
Required - Specifies the result property to which the condition applies. If your detector useslat_long,metric,rare, orfreq_rarefunctions, you can only specify conditions that apply to time.API name:
applies_to -
operator
Required - 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
Required - The value that is compared against theapplies_tofield using the operator.API name:
value -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RuleCondition.Builder>
-
build
Builds aRuleCondition.- Specified by:
buildin interfaceObjectBuilder<RuleCondition>- Throws:
NullPointerException- if some of the required fields are null.
-