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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aDetectorUpdate.final DetectorUpdate.BuildercustomRules(DetectionRule value, DetectionRule... values) An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.BuilderAn array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.BuildercustomRules(List<DetectionRule> list) An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.Builderdescription(String value) A description of the detector.final DetectorUpdate.BuilderdetectorIndex(int value) Required - A unique identifier for the detector.protected DetectorUpdate.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
detectorIndexRequired - 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
- 
descriptionA description of the detector.API name: description
- 
customRulesAn 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_rulesAdds all elements of listtocustomRules.
- 
customRulesAn 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_rulesAdds one or more values to customRules.
- 
customRulespublic 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_rulesAdds a value to customRulesusing a builder lambda.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<DetectorUpdate.Builder>
 
- 
buildBuilds aDetectorUpdate.- Specified by:
- buildin interface- ObjectBuilder<DetectorUpdate>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-