Class DetectorUpdate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DetectorUpdate.Builder>
co.elastic.clients.elasticsearch.ml.DetectorUpdate.Builder
- All Implemented Interfaces:
WithJson<DetectorUpdate.Builder>
,ObjectBuilder<DetectorUpdate>
- Enclosing class:
- DetectorUpdate
public static class DetectorUpdate.Builder
extends WithJsonObjectBuilderBase<DetectorUpdate.Builder>
implements ObjectBuilder<DetectorUpdate>
Builder for
DetectorUpdate
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDetectorUpdate
.final DetectorUpdate.Builder
customRules
(DetectionRule value, DetectionRule... values) An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.Builder
An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.Builder
customRules
(List<DetectionRule> list) An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.Builder
description
(String value) A description of the detector.final DetectorUpdate.Builder
detectorIndex
(int value) Required - A unique identifier for the detector.protected DetectorUpdate.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorIndex
Required - A unique identifier for the detector. This identifier is based on the order of the detectors in theanalysis_config
, starting at zero.API name:
detector_index
-
description
A description of the detector.API name:
description
-
customRules
An array of custom rule objects, which enable you to customize the way detectors operate. For example, a rule may dictate to the detector conditions under which results should be skipped. Kibana refers to custom rules as job rules.API name:
custom_rules
Adds all elements of
list
tocustomRules
. -
customRules
An array of custom rule objects, which enable you to customize the way detectors operate. For example, a rule may dictate to the detector conditions under which results should be skipped. Kibana refers to custom rules as job rules.API name:
custom_rules
Adds one or more values to
customRules
. -
customRules
public final DetectorUpdate.Builder customRules(Function<DetectionRule.Builder, ObjectBuilder<DetectionRule>> fn) An array of custom rule objects, which enable you to customize the way detectors operate. For example, a rule may dictate to the detector conditions under which results should be skipped. Kibana refers to custom rules as job rules.API name:
custom_rules
Adds a value to
customRules
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DetectorUpdate.Builder>
-
build
Builds aDetectorUpdate
.- Specified by:
build
in interfaceObjectBuilder<DetectorUpdate>
- Throws:
NullPointerException
- if some of the required fields are null.
-