Class TermsPartition.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.TermsPartition.Builder
- All Implemented Interfaces:
CopyableBuilder<TermsPartition.Builder,,TermsPartition> MutableBuilder<TermsPartition.Builder,,TermsPartition> ObjectBuilder<TermsPartition>
- Enclosing class:
TermsPartition
public static class TermsPartition.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TermsPartition.Builder,TermsPartition>
Builder for
TermsPartition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTermsPartition.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TermsPartition.BuildernumPartitions(long value) Required - The number of partitions.final TermsPartition.Builderpartition(long value) Required - The partition number for this request.Methods 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<TermsPartition.Builder,TermsPartition> - Returns:
- a new builder instance.
-
numPartitions
Required - The number of partitions.API name:
num_partitions -
partition
Required - The partition number for this request.API name:
partition -
build
Builds aTermsPartition.- Specified by:
buildin interfaceObjectBuilder<TermsPartition>- Throws:
NullPointerException- if some of the required fields are null.
-