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
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
-
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.
-