Class MatrixStatsAggregate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<MatrixStatsAggregate.Builder>
co.elastic.clients.elasticsearch._types.aggregations.MatrixStatsAggregate.Builder
- All Implemented Interfaces:
WithJson<MatrixStatsAggregate.Builder>
,ObjectBuilder<MatrixStatsAggregate>
- Enclosing class:
- MatrixStatsAggregate
public static class MatrixStatsAggregate.Builder
extends AggregateBase.AbstractBuilder<MatrixStatsAggregate.Builder>
implements ObjectBuilder<MatrixStatsAggregate>
Builder for
MatrixStatsAggregate
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aMatrixStatsAggregate
.docCount
(long value) Required - API name:doc_count
fields
(MatrixStatsFields value, MatrixStatsFields... values) API name:fields
API name:fields
fields
(List<MatrixStatsFields> list) API name:fields
protected MatrixStatsAggregate.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta
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
-
docCount
Required - API name:doc_count
-
fields
API name:fields
Adds all elements of
list
tofields
. -
fields
public final MatrixStatsAggregate.Builder fields(MatrixStatsFields value, MatrixStatsFields... values) API name:fields
Adds one or more values to
fields
. -
fields
public final MatrixStatsAggregate.Builder fields(Function<MatrixStatsFields.Builder, ObjectBuilder<MatrixStatsFields>> fn) API name:fields
Adds a value to
fields
using a builder lambda. -
self
- Specified by:
self
in classAggregateBase.AbstractBuilder<MatrixStatsAggregate.Builder>
-
build
Builds aMatrixStatsAggregate
.- Specified by:
build
in interfaceObjectBuilder<MatrixStatsAggregate>
- Throws:
NullPointerException
- if some of the required fields are null.
-