Class SearchSlowlog.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.SearchSlowlog.Builder
- All Implemented Interfaces:
CopyableBuilder<SearchSlowlog.Builder,,SearchSlowlog> MutableBuilder<SearchSlowlog.Builder,,SearchSlowlog> ObjectBuilder<SearchSlowlog>
- Enclosing class:
SearchSlowlog
public static class SearchSlowlog.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SearchSlowlog.Builder,SearchSlowlog>
Builder for
SearchSlowlog.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSearchSlowlog.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SearchSlowlog.BuilderThe log level for slow searches.final SearchSlowlog.BuilderWhether to reformat the logged search source.final SearchSlowlog.BuilderAPI name:thresholdfinal SearchSlowlog.Builderthreshold(SearchSlowlogThresholds value) API name:thresholdMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SearchSlowlog.Builder,SearchSlowlog> - Returns:
- a new builder instance.
-
level
The log level for slow searches.API name:
level -
reformat
Whether to reformat the logged search source.API name:
reformat -
threshold
API name:threshold -
threshold
@Nonnull public final SearchSlowlog.Builder threshold(Function<SearchSlowlogThresholds.Builder, ObjectBuilder<SearchSlowlogThresholds>> fn) API name:threshold -
build
Builds aSearchSlowlog.- Specified by:
buildin interfaceObjectBuilder<SearchSlowlog>- Throws:
NullPointerException- if some of the required fields are null.
-