Class IndexingSlowlogTresholds.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexingSlowlogTresholds.Builder>
co.elastic.clients.elasticsearch.indices.IndexingSlowlogTresholds.Builder
- All Implemented Interfaces:
WithJson<IndexingSlowlogTresholds.Builder>
,ObjectBuilder<IndexingSlowlogTresholds>
- Enclosing class:
- IndexingSlowlogTresholds
public static class IndexingSlowlogTresholds.Builder
extends WithJsonObjectBuilderBase<IndexingSlowlogTresholds.Builder>
implements ObjectBuilder<IndexingSlowlogTresholds>
Builder for
IndexingSlowlogTresholds
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aIndexingSlowlogTresholds
.index
(SlowlogTresholdLevels value) The indexing slow log, similar in functionality to the search slow log.The indexing slow log, similar in functionality to the search slow log.protected IndexingSlowlogTresholds.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
-
index
The indexing slow log, similar in functionality to the search slow log. The log file name ends with_index_indexing_slowlog.json
. Log and the thresholds are configured in the same way as the search slowlog.API name:
index
-
index
public final IndexingSlowlogTresholds.Builder index(Function<SlowlogTresholdLevels.Builder, ObjectBuilder<SlowlogTresholdLevels>> fn) The indexing slow log, similar in functionality to the search slow log. The log file name ends with_index_indexing_slowlog.json
. Log and the thresholds are configured in the same way as the search slowlog.API name:
index
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndexingSlowlogTresholds.Builder>
-
build
Builds aIndexingSlowlogTresholds
.- Specified by:
build
in interfaceObjectBuilder<IndexingSlowlogTresholds>
- Throws:
NullPointerException
- if some of the required fields are null.
-