Class CompositeBucket.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.MultiBucketBase.AbstractBuilder<CompositeBucket.Builder>
co.elastic.clients.elasticsearch._types.aggregations.CompositeBucket.Builder
- All Implemented Interfaces:
WithJson<CompositeBucket.Builder>
,ObjectBuilder<CompositeBucket>
- Enclosing class:
- CompositeBucket
public static class CompositeBucket.Builder extends MultiBucketBase.AbstractBuilder<CompositeBucket.Builder> implements ObjectBuilder<CompositeBucket>
Builder for
CompositeBucket
.-
Field Summary
Fields inherited from class co.elastic.clients.elasticsearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CompositeBucket
build()
Builds aCompositeBucket
.CompositeBucket.Builder
key(java.lang.String key, FieldValue value)
Required - API name:key
CompositeBucket.Builder
key(java.lang.String key, java.util.function.Function<FieldValue.Builder,ObjectBuilder<FieldValue>> fn)
Required - API name:key
CompositeBucket.Builder
key(java.util.Map<java.lang.String,FieldValue> map)
Required - API name:key
protected CompositeBucket.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations, aggregations, aggregations, docCount
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Required - API name:key
Adds all entries of
map
tokey
. -
key
Required - API name:key
Adds an entry to
key
. -
key
public final CompositeBucket.Builder key(java.lang.String key, java.util.function.Function<FieldValue.Builder,ObjectBuilder<FieldValue>> fn)Required - API name:key
Adds an entry to
key
using a builder lambda. -
self
- Specified by:
self
in classMultiBucketBase.AbstractBuilder<CompositeBucket.Builder>
-
build
Builds aCompositeBucket
.- Specified by:
build
in interfaceObjectBuilder<CompositeBucket>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-