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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SlowlogSettings
build()
Builds aSlowlogSettings
.SlowlogSettings.Builder
level(java.lang.String value)
API name:level
SlowlogSettings.Builder
reformat(java.lang.Boolean value)
API name:reformat
protected SlowlogSettings.Builder
self()
SlowlogSettings.Builder
source(java.lang.Integer value)
API name:source
SlowlogSettings.Builder
threshold(SlowlogTresholds value)
API name:threshold
SlowlogSettings.Builder
threshold(java.util.function.Function<SlowlogTresholds.Builder,ObjectBuilder<SlowlogTresholds>> fn)
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
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
-
level
API name:level
-
source
API name:source
-
reformat
API name:reformat
-
threshold
API name:threshold
-
threshold
public final SlowlogSettings.Builder threshold(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-