Class AggregationRange.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AggregationRange.Builder>
co.elastic.clients.elasticsearch._types.aggregations.AggregationRange.Builder
- All Implemented Interfaces:
WithJson<AggregationRange.Builder>
,ObjectBuilder<AggregationRange>
- Enclosing class:
- AggregationRange
public static class AggregationRange.Builder
extends WithJsonObjectBuilderBase<AggregationRange.Builder>
implements ObjectBuilder<AggregationRange>
Builder for
AggregationRange
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAggregationRange
.final AggregationRange.Builder
Start of the range (inclusive).final AggregationRange.Builder
Custom key to return the range with.protected AggregationRange.Builder
self()
final AggregationRange.Builder
End of the range (exclusive).Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Start of the range (inclusive).API name:
from
-
key
Custom key to return the range with.API name:
key
-
to
End of the range (exclusive).API name:
to
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AggregationRange.Builder>
-
build
Builds aAggregationRange
.- Specified by:
build
in interfaceObjectBuilder<AggregationRange>
- Throws:
NullPointerException
- if some of the required fields are null.
-