Class CountResponse.Builder
java.lang.Object
org.opensearch.client.opensearch._global.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CountResponsebuild()Builds aCountResponse.CountResponse.Buildercount(java.lang.Number value)API name:countCountResponse.Buildershards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)API name:_shardsCountResponse.Buildershards(ShardStatistics value)API name:_shards
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
API name:count -
shards
API name:_shards -
shards
public CountResponse.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)API name:_shards -
build
Builds aCountResponse.- Specified by:
buildin interfaceObjectBuilder<CountResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-