Class TotalHits.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.TotalHits.Builder
- All Implemented Interfaces:
CopyableBuilder<TotalHits.Builder,,TotalHits> MutableBuilder<TotalHits.Builder,,TotalHits> ObjectBuilder<TotalHits>
- Enclosing class:
TotalHits
public static class TotalHits.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TotalHits.Builder,TotalHits>
Builder for
TotalHits.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTotalHits.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TotalHits.Builderrelation(TotalHitsRelation value) Required - API name:relationfinal TotalHits.Buildervalue(long value) Required - API name:valueMethods 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<TotalHits.Builder,TotalHits> - Returns:
- a new builder instance.
-
relation
Required - API name:relation -
value
Required - API name:value -
build
Builds aTotalHits.- Specified by:
buildin interfaceObjectBuilder<TotalHits>- Throws:
NullPointerException- if some of the required fields are null.
-