Class AnomalyDetectors.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AnomalyDetectors.Builder>
co.elastic.clients.elasticsearch.ml.info.AnomalyDetectors.Builder
- All Implemented Interfaces:
WithJson<AnomalyDetectors.Builder>
,ObjectBuilder<AnomalyDetectors>
- Enclosing class:
- AnomalyDetectors
public static class AnomalyDetectors.Builder
extends WithJsonObjectBuilderBase<AnomalyDetectors.Builder>
implements ObjectBuilder<AnomalyDetectors>
Builder for
AnomalyDetectors
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAnomalyDetectors
.final AnomalyDetectors.Builder
Required - API name:categorization_analyzer
final AnomalyDetectors.Builder
categorizationAnalyzer
(Function<CategorizationAnalyzer.Builder, ObjectBuilder<CategorizationAnalyzer>> fn) Required - API name:categorization_analyzer
final AnomalyDetectors.Builder
categorizationExamplesLimit
(int value) Required - API name:categorization_examples_limit
final AnomalyDetectors.Builder
dailyModelSnapshotRetentionAfterDays
(int value) Required - API name:daily_model_snapshot_retention_after_days
final AnomalyDetectors.Builder
modelMemoryLimit
(String value) Required - API name:model_memory_limit
final AnomalyDetectors.Builder
modelSnapshotRetentionDays
(int value) Required - API name:model_snapshot_retention_days
protected AnomalyDetectors.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
-
categorizationAnalyzer
Required - API name:categorization_analyzer
-
categorizationAnalyzer
public final AnomalyDetectors.Builder categorizationAnalyzer(Function<CategorizationAnalyzer.Builder, ObjectBuilder<CategorizationAnalyzer>> fn) Required - API name:categorization_analyzer
-
categorizationExamplesLimit
Required - API name:categorization_examples_limit
-
modelMemoryLimit
Required - API name:model_memory_limit
-
modelSnapshotRetentionDays
Required - API name:model_snapshot_retention_days
-
dailyModelSnapshotRetentionAfterDays
Required - API name:daily_model_snapshot_retention_after_days
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AnomalyDetectors.Builder>
-
build
Builds aAnomalyDetectors
.- Specified by:
build
in interfaceObjectBuilder<AnomalyDetectors>
- Throws:
NullPointerException
- if some of the required fields are null.
-