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