Class CountResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.CountResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<CountResponse.Builder,,CountResponse> MutableBuilder<CountResponse.Builder,,CountResponse> ObjectBuilder<CountResponse>
- Enclosing class:
CountResponse
public static class CountResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CountResponse.Builder,CountResponse>
Builder for
CountResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCountResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CountResponse.Buildercount(long value) Required - API name:countfinal CountResponse.BuilderRequired - API name:_shardsfinal CountResponse.Buildershards(ShardStatistics value) Required - API name:_shardsfinal CountResponse.BuilderterminatedEarly(Boolean value) API name:terminated_earlyMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CountResponse.Builder,CountResponse> - Returns:
- a new builder instance.
-
count
Required - API name:count -
shards
Required - API name:_shards -
shards
@Nonnull public final CountResponse.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) Required - API name:_shards -
terminatedEarly
API name:terminated_early -
build
Builds aCountResponse.- Specified by:
buildin interfaceObjectBuilder<CountResponse>- Throws:
NullPointerException- if some of the required fields are null.
-