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