Class SlowlogSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SlowlogSettings.Builder>
co.elastic.clients.elasticsearch.indices.SlowlogSettings.Builder
- All Implemented Interfaces:
WithJson<SlowlogSettings.Builder>
,ObjectBuilder<SlowlogSettings>
- Enclosing class:
- SlowlogSettings
public static class SlowlogSettings.Builder
extends WithJsonObjectBuilderBase<SlowlogSettings.Builder>
implements ObjectBuilder<SlowlogSettings>
Builder for
SlowlogSettings
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSlowlogSettings
.final SlowlogSettings.Builder
API name:level
final SlowlogSettings.Builder
API name:reformat
protected SlowlogSettings.Builder
self()
final SlowlogSettings.Builder
API name:source
final SlowlogSettings.Builder
threshold
(SlowlogTresholds value) API name:threshold
final SlowlogSettings.Builder
API name:threshold
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
-
level
API name:level
-
source
API name:source
-
reformat
API name:reformat
-
threshold
API name:threshold
-
threshold
public final SlowlogSettings.Builder threshold(Function<SlowlogTresholds.Builder, ObjectBuilder<SlowlogTresholds>> fn) API name:threshold
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SlowlogSettings.Builder>
-
build
Builds aSlowlogSettings
.- Specified by:
build
in interfaceObjectBuilder<SlowlogSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-