Class SumAggregate.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<SumAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.SingleMetricAggregateBase.AbstractBuilder<SumAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.SumAggregate.Builder
- All Implemented Interfaces:
CopyableBuilder<SumAggregate.Builder,,SumAggregate> MutableBuilder<SumAggregate.Builder,,SumAggregate> ObjectBuilder<SumAggregate>
- Enclosing class:
SumAggregate
public static class SumAggregate.Builder
extends SingleMetricAggregateBase.AbstractBuilder<SumAggregate.Builder>
implements CopyableBuilder<SumAggregate.Builder,SumAggregate>
Builder for
SumAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSumAggregate.copy()Create a new builderCopyableBuilderthat is a copy of this one.protected SumAggregate.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.aggregations.SingleMetricAggregateBase.AbstractBuilder
value, valueAsStringMethods 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<SumAggregate.Builder,SumAggregate> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<SumAggregate.Builder>
-
build
Builds aSumAggregate.- Specified by:
buildin interfaceObjectBuilder<SumAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-