Class HistogramOrder.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.aggregations.HistogramOrder.Builder
- All Implemented Interfaces:
ObjectBuilder<HistogramOrder>
- Enclosing class:
- HistogramOrder
public static class HistogramOrder.Builder extends ObjectBuilderBase implements ObjectBuilder<HistogramOrder>
Builder for
HistogramOrder
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HistogramOrder
build()
Builds aHistogramOrder
.HistogramOrder.Builder
count(SortOrder value)
API name:_count
HistogramOrder.Builder
key(SortOrder value)
API name:_key
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
-
count
API name:_count
-
key
API name:_key
-
build
Builds aHistogramOrder
.- Specified by:
build
in interfaceObjectBuilder<HistogramOrder>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-