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 SlowlogSettingsbuild()Builds aSlowlogSettings.SlowlogSettings.Builderlevel(java.lang.String value)API name:levelSlowlogSettings.Builderreformat(java.lang.Boolean value)API name:reformatprotected SlowlogSettings.Builderself()SlowlogSettings.Buildersource(java.lang.Integer value)API name:sourceSlowlogSettings.Builderthreshold(SlowlogTresholds value)API name:thresholdSlowlogSettings.Builderthreshold(java.util.function.Function<SlowlogTresholds.Builder,ObjectBuilder<SlowlogTresholds>> fn)API name:thresholdMethods 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
-
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:
selfin classWithJsonObjectBuilderBase<SlowlogSettings.Builder>
-
build
Builds aSlowlogSettings.- Specified by:
buildin interfaceObjectBuilder<SlowlogSettings>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-