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