Class HistogramBucket.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.MultiBucketBase.AbstractBuilder<HistogramBucket.Builder>
co.elastic.clients.elasticsearch._types.aggregations.HistogramBucket.Builder
- All Implemented Interfaces:
WithJson<HistogramBucket.Builder>,ObjectBuilder<HistogramBucket>
- Enclosing class:
- HistogramBucket
public static class HistogramBucket.Builder
extends MultiBucketBase.AbstractBuilder<HistogramBucket.Builder>
implements ObjectBuilder<HistogramBucket>
Builder for
HistogramBucket.-
Field Summary
Fields inherited from class co.elastic.clients.elasticsearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHistogramBucket.final HistogramBucket.Builderkey(double value) Required - API name:keyfinal HistogramBucket.BuilderkeyAsString(String value) API name:key_as_stringprotected HistogramBucket.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MultiBucketBase.AbstractBuilder
aggregations, aggregations, aggregations, docCountMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyAsString
API name:key_as_string -
key
Required - API name:key -
self
- Specified by:
selfin classMultiBucketBase.AbstractBuilder<HistogramBucket.Builder>
-
build
Builds aHistogramBucket.- Specified by:
buildin interfaceObjectBuilder<HistogramBucket>- Throws:
NullPointerException- if some of the required fields are null.
-