Class RuleCondition.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.RuleCondition.Builder
All Implemented Interfaces:
ObjectBuilder<RuleCondition>
Enclosing class:
RuleCondition

public static class RuleCondition.Builder
extends ObjectBuilderBase
implements ObjectBuilder<RuleCondition>
Builder for RuleCondition.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • appliesTo

      public final RuleCondition.Builder appliesTo​(AppliesTo value)
      Required - 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

      public final RuleCondition.Builder operator​(ConditionOperator value)
      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

      public final RuleCondition.Builder value​(double value)
      Required - The value that is compared against the applies_to field using the operator.

      API name: value

    • build

      public RuleCondition build()
      Builds a RuleCondition.
      Specified by:
      build in interface ObjectBuilder<RuleCondition>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.