Class EsqlLoggingConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<EsqlLoggingConfig.Builder>
co.elastic.clients.elasticsearch.xpack.usage.EsqlLoggingConfig.Builder
- All Implemented Interfaces:
WithJson<EsqlLoggingConfig.Builder>,ObjectBuilder<EsqlLoggingConfig>
- Enclosing class:
- EsqlLoggingConfig
public static class EsqlLoggingConfig.Builder
extends WithJsonObjectBuilderBase<EsqlLoggingConfig.Builder>
implements ObjectBuilder<EsqlLoggingConfig>
Builder for
EsqlLoggingConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aEsqlLoggingConfig.enabled(boolean value) Required - Whether ES|QL query logging is enabled.protected EsqlLoggingConfig.Builderself()thresholds(String key, Time value) The configured logging thresholds, keyed by threshold name, if any.thresholds(String key, Function<Time.Builder, ObjectBuilder<Time>> fn) The configured logging thresholds, keyed by threshold name, if any.thresholds(Map<String, Time> map) The configured logging thresholds, keyed by threshold name, if any.user(boolean value) Required - Whether user information is included in the ES|QL query log.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Required - Whether ES|QL query logging is enabled.API name:
enabled -
user
Required - Whether user information is included in the ES|QL query log.API name:
user -
thresholds
The configured logging thresholds, keyed by threshold name, if any.API name:
thresholdsAdds all entries of
maptothresholds. -
thresholds
The configured logging thresholds, keyed by threshold name, if any.API name:
thresholdsAdds an entry to
thresholds. -
thresholds
public final EsqlLoggingConfig.Builder thresholds(String key, Function<Time.Builder, ObjectBuilder<Time>> fn) The configured logging thresholds, keyed by threshold name, if any.API name:
thresholdsAdds an entry to
thresholdsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<EsqlLoggingConfig.Builder>
-
build
Builds aEsqlLoggingConfig.- Specified by:
buildin interfaceObjectBuilder<EsqlLoggingConfig>- Throws:
NullPointerException- if some of the required fields are null.
-