Class CompositeAggregate.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<CompositeAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.MultiBucketAggregateBase.AbstractBuilder<CompositeBucket,CompositeAggregate.Builder>
org.opensearch.client.opensearch._types.aggregations.CompositeAggregate.Builder
- All Implemented Interfaces:
CopyableBuilder<CompositeAggregate.Builder,,CompositeAggregate> MutableBuilder<CompositeAggregate.Builder,,CompositeAggregate> ObjectBuilder<CompositeAggregate>
- Enclosing class:
CompositeAggregate
public static class CompositeAggregate.Builder
extends MultiBucketAggregateBase.AbstractBuilder<CompositeBucket,CompositeAggregate.Builder>
implements CopyableBuilder<CompositeAggregate.Builder,CompositeAggregate>
Builder for
CompositeAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterKey(String key, Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) API name:after_keyafterKey(String key, FieldValue value) API name:after_keyafterKey(Map<String, FieldValue> map) API name:after_keybuild()Builds aCompositeAggregate.copy()Create a new builderCopyableBuilderthat is a copy of this one.protected CompositeAggregate.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<CompositeAggregate.Builder,CompositeAggregate> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<CompositeAggregate.Builder>
-
afterKey
API name:after_keyAdds all elements of
maptoafterKey. -
afterKey
API name:after_keyAdds an entry to
afterKey. -
afterKey
@Nonnull public final CompositeAggregate.Builder afterKey(String key, Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) API name:after_keyAdds a value to
afterKeyusing a builder lambda. -
build
Builds aCompositeAggregate.- Specified by:
buildin interfaceObjectBuilder<CompositeAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-