Class ScrollRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ScrollRequest.Builder>
co.elastic.clients.elasticsearch.core.ScrollRequest.Builder
- All Implemented Interfaces:
WithJson<ScrollRequest.Builder>,ObjectBuilder<ScrollRequest>
- Enclosing class:
- ScrollRequest
public static class ScrollRequest.Builder extends WithJsonObjectBuilderBase<ScrollRequest.Builder> implements ObjectBuilder<ScrollRequest>
Builder for
ScrollRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ScrollRequestbuild()Builds aScrollRequest.ScrollRequest.Builderscroll(Time value)Period to retain the search context for scrolling.ScrollRequest.Builderscroll(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to retain the search context for scrolling.ScrollRequest.BuilderscrollId(java.lang.String value)Required - Scroll ID of the search.protected ScrollRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scroll
Period to retain the search context for scrolling.API name:
scroll -
scroll
public final ScrollRequest.Builder scroll(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to retain the search context for scrolling.API name:
scroll -
scrollId
Required - Scroll ID of the search.API name:
scroll_id -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ScrollRequest.Builder>
-
build
Builds aScrollRequest.- Specified by:
buildin interfaceObjectBuilder<ScrollRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-