Class CountResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.CountResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<CountResponse>
- Enclosing class:
- CountResponse
public static class CountResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<CountResponse>
Builder for
CountResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CountResponse
build()
Builds aCountResponse
.CountResponse.Builder
count(long value)
Required - API name:count
CountResponse.Builder
shards(ShardStatistics value)
Required - API name:_shards
CountResponse.Builder
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
Required - API name:_shards
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
Required - API name:count
-
shards
Required - API name:_shards
-
shards
public final CountResponse.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shards
-
build
Builds aCountResponse
.- Specified by:
build
in interfaceObjectBuilder<CountResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-