Class QueryLoggingConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QueryLoggingConfig.Builder>
co.elastic.clients.elasticsearch.xpack.usage.QueryLoggingConfig.Builder
- All Implemented Interfaces:
WithJson<QueryLoggingConfig.Builder>,ObjectBuilder<QueryLoggingConfig>
- Enclosing class:
- QueryLoggingConfig
public static class QueryLoggingConfig.Builder
extends WithJsonObjectBuilderBase<QueryLoggingConfig.Builder>
implements ObjectBuilder<QueryLoggingConfig>
Builder for
QueryLoggingConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryLoggingConfig.enabled(boolean value) Required - Whether query logging is enabled.protected QueryLoggingConfig.Builderself()system(boolean value) Required - Whether system queries are included in the query log.The configured logging threshold, if any.The configured logging threshold, if any.user(boolean value) Required - Whether user information is included in the 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 query logging is enabled.API name:
enabled -
user
Required - Whether user information is included in the query log.API name:
user -
system
Required - Whether system queries are included in the query log.API name:
system -
threshold
The configured logging threshold, if any.API name:
threshold -
threshold
The configured logging threshold, if any.API name:
threshold -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<QueryLoggingConfig.Builder>
-
build
Builds aQueryLoggingConfig.- Specified by:
buildin interfaceObjectBuilder<QueryLoggingConfig>- Throws:
NullPointerException- if some of the required fields are null.
-