Class CompositeBucket.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.MultiBucketBase.AbstractBuilder<CompositeBucket.Builder>
org.opensearch.client.opensearch._types.aggregations.CompositeBucket.Builder
- All Implemented Interfaces:
CopyableBuilder<CompositeBucket.Builder,,CompositeBucket> MutableBuilder<CompositeBucket.Builder,,CompositeBucket> ObjectBuilder<CompositeBucket>
- Enclosing class:
CompositeBucket
public static class CompositeBucket.Builder
extends MultiBucketBase.AbstractBuilder<CompositeBucket.Builder>
implements CopyableBuilder<CompositeBucket.Builder,CompositeBucket>
Builder for
CompositeBucket.-
Field Summary
Fields inherited from class org.opensearch.client.opensearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCompositeBucket.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CompositeBucket.Builderkey(String key, Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) Required - API name:keyfinal CompositeBucket.Builderkey(String key, FieldValue value) Required - API name:keyfinal CompositeBucket.Builderkey(Map<String, FieldValue> map) Required - API name:keyprotected CompositeBucket.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations, aggregations, aggregations, docCountMethods 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<CompositeBucket.Builder,CompositeBucket> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classMultiBucketBase.AbstractBuilder<CompositeBucket.Builder>
-
key
Required - API name:keyAdds all elements of
maptokey. -
key
Required - API name:keyAdds an entry to
key. -
key
@Nonnull public final CompositeBucket.Builder key(String key, Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) Required - API name:keyAdds a value to
keyusing a builder lambda. -
build
Builds aCompositeBucket.- Specified by:
buildin interfaceObjectBuilder<CompositeBucket>- Throws:
NullPointerException- if some of the required fields are null.
-