Class MatrixStatsAggregate.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<MatrixStatsAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.MatrixStatsAggregate.Builder
- All Implemented Interfaces:
CopyableBuilder<MatrixStatsAggregate.Builder,,MatrixStatsAggregate> MutableBuilder<MatrixStatsAggregate.Builder,,MatrixStatsAggregate> ObjectBuilder<MatrixStatsAggregate>
- Enclosing class:
MatrixStatsAggregate
public static class MatrixStatsAggregate.Builder
extends AggregateBase.AbstractBuilder<MatrixStatsAggregate.Builder>
implements CopyableBuilder<MatrixStatsAggregate.Builder,MatrixStatsAggregate>
Builder for
MatrixStatsAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMatrixStatsAggregate.copy()Create a new builderCopyableBuilderthat is a copy of this one.docCount(long value) Required - API name:doc_countAPI name:fieldsfields(List<MatrixStatsFields> list) API name:fieldsfields(MatrixStatsFields value, MatrixStatsFields... values) API name:fieldsprotected MatrixStatsAggregate.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder
meta, metaMethods 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<MatrixStatsAggregate.Builder,MatrixStatsAggregate> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<MatrixStatsAggregate.Builder>
-
docCount
Required - API name:doc_count -
fields
API name:fieldsAdds all elements of
listtofields. -
fields
@Nonnull public final MatrixStatsAggregate.Builder fields(MatrixStatsFields value, MatrixStatsFields... values) API name:fieldsAdds one or more values to
fields. -
fields
@Nonnull public final MatrixStatsAggregate.Builder fields(Function<MatrixStatsFields.Builder, ObjectBuilder<MatrixStatsFields>> fn) API name:fieldsAdds a value to
fieldsusing a builder lambda. -
build
Builds aMatrixStatsAggregate.- Specified by:
buildin interfaceObjectBuilder<MatrixStatsAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-