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 SlowlogTresholdsbuild()Builds aSlowlogTresholds.SlowlogTresholds.Builderfetch(SlowlogTresholdLevels value)API name:fetchSlowlogTresholds.Builderfetch(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)API name:fetchSlowlogTresholds.Builderindex(SlowlogTresholdLevels value)The indexing slow log, similar in functionality to the search slow log.SlowlogTresholds.Builderindex(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)The indexing slow log, similar in functionality to the search slow log.SlowlogTresholds.Builderquery(SlowlogTresholdLevels value)API name:querySlowlogTresholds.Builderquery(java.util.function.Function<SlowlogTresholdLevels.Builder,ObjectBuilder<SlowlogTresholdLevels>> fn)API name:queryprotected SlowlogTresholds.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:
selfin classWithJsonObjectBuilderBase<SlowlogTresholds.Builder>
-
build
Builds aSlowlogTresholds.- Specified by:
buildin interfaceObjectBuilder<SlowlogTresholds>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-