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