Class Analytics.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder<Analytics.Builder>
co.elastic.clients.elasticsearch.xpack.usage.Analytics.Builder
- All Implemented Interfaces:
WithJson<Analytics.Builder>
,ObjectBuilder<Analytics>
- Enclosing class:
- Analytics
public static class Analytics.Builder
extends Base.AbstractBuilder<Analytics.Builder>
implements ObjectBuilder<Analytics>
Builder for
Analytics
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAnalytics
.protected Analytics.Builder
self()
final Analytics.Builder
stats
(AnalyticsStatistics value) Required - API name:stats
final Analytics.Builder
Required - API name:stats
Methods inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder
available, enabled
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stats
Required - API name:stats
-
stats
public final Analytics.Builder stats(Function<AnalyticsStatistics.Builder, ObjectBuilder<AnalyticsStatistics>> fn) Required - API name:stats
-
self
- Specified by:
self
in classBase.AbstractBuilder<Analytics.Builder>
-
build
Builds aAnalytics
.- Specified by:
build
in interfaceObjectBuilder<Analytics>
- Throws:
NullPointerException
- if some of the required fields are null.
-