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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SlowlogTresholds
build()
Builds aSlowlogTresholds
.SlowlogTresholds.Builder
fetch(SlowlogTresholdLevels value)
API name:fetch
SlowlogTresholds.Builder
fetch(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)
API name:fetch
SlowlogTresholds.Builder
index(SlowlogTresholdLevels value)
The indexing slow log, similar in functionality to the search slow log.SlowlogTresholds.Builder
index(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)
The indexing slow log, similar in functionality to the search slow log.SlowlogTresholds.Builder
query(SlowlogTresholdLevels value)
API name:query
SlowlogTresholds.Builder
query(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
query
API name:query
-
query
public final SlowlogTresholds.Builder query(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)API name:query
-
fetch
API name:fetch
-
fetch
public final SlowlogTresholds.Builder fetch(java.util.function.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(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-