Class AutoDateHistogramAggregate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.MultiBucketAggregateBase.AbstractBuilder<DateHistogramBucket,AutoDateHistogramAggregate.Builder>
co.elastic.clients.elasticsearch._types.aggregations.AutoDateHistogramAggregate.Builder
- All Implemented Interfaces:
WithJson<AutoDateHistogramAggregate.Builder>
,ObjectBuilder<AutoDateHistogramAggregate>
- Enclosing class:
- AutoDateHistogramAggregate
public static class AutoDateHistogramAggregate.Builder extends MultiBucketAggregateBase.AbstractBuilder<DateHistogramBucket,AutoDateHistogramAggregate.Builder> implements ObjectBuilder<AutoDateHistogramAggregate>
Builder for
AutoDateHistogramAggregate
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description AutoDateHistogramAggregate
build()
Builds aAutoDateHistogramAggregate
.AutoDateHistogramAggregate.Builder
interval(DateTime value)
Required - API name:interval
protected AutoDateHistogramAggregate.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MultiBucketAggregateBase.AbstractBuilder
buckets, buckets, tBucketSerializer
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta
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
-
interval
Required - API name:interval
-
self
- Specified by:
self
in classAggregateBase.AbstractBuilder<AutoDateHistogramAggregate.Builder>
-
build
Builds aAutoDateHistogramAggregate
.- Specified by:
build
in interfaceObjectBuilder<AutoDateHistogramAggregate>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-