Class SlicedScroll.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.SlicedScroll.Builder
-
- All Implemented Interfaces:
CopyableBuilder<SlicedScroll.Builder,SlicedScroll>,MutableBuilder<SlicedScroll.Builder,SlicedScroll>,ObjectBuilder<SlicedScroll>
- Enclosing class:
- SlicedScroll
public static class SlicedScroll.Builder extends ObjectBuilderBase implements CopyableBuilder<SlicedScroll.Builder,SlicedScroll>
Builder forSlicedScroll.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlicedScrollbuild()Builds aSlicedScroll.SlicedScroll.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.SlicedScroll.Builderfield(java.lang.String value)The field to slice on.SlicedScroll.Builderid(int value)Required - The ID of the slice.SlicedScroll.Buildermax(int value)Required - The maximum number of slices.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public SlicedScroll.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SlicedScroll.Builder,SlicedScroll>- Returns:
- a new builder instance.
-
field
@Nonnull public final SlicedScroll.Builder field(@Nullable java.lang.String value)
The field to slice on.API name:
field
-
id
@Nonnull public final SlicedScroll.Builder id(int value)
Required - The ID of the slice.API name:
id
-
max
@Nonnull public final SlicedScroll.Builder max(int value)
Required - The maximum number of slices.API name:
max
-
build
@Nonnull public SlicedScroll build()
Builds aSlicedScroll.- Specified by:
buildin interfaceObjectBuilder<SlicedScroll>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-