Class OpenPointInTimeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
co.elastic.clients.elasticsearch.core.OpenPointInTimeRequest.Builder
- All Implemented Interfaces:
WithJson<OpenPointInTimeRequest.Builder>
,ObjectBuilder<OpenPointInTimeRequest>
- Enclosing class:
- OpenPointInTimeRequest
public static class OpenPointInTimeRequest.Builder
extends RequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
implements ObjectBuilder<OpenPointInTimeRequest>
Builder for
OpenPointInTimeRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aOpenPointInTimeRequest
.expandWildcards
(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.expandWildcards
(List<ExpandWildcard> list) Type of index that wildcard patterns can match.ignoreUnavailable
(Boolean value) Iffalse
, the request returns an error if it targets a missing or closed index.Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesRequired - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesRequired - Extends the time to live of the corresponding point in time.Required - Extends the time to live of the corresponding point in time.preference
(String value) Specifies the node or shard the operation should be performed on.Custom value used to route operations to a specific shard.protected OpenPointInTimeRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden
. Valid values are:all
,open
,closed
,hidden
,none
.API name:
expand_wildcards
Adds all elements of
list
toexpandWildcards
. -
expandWildcards
public final OpenPointInTimeRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden
. Valid values are:all
,open
,closed
,hidden
,none
.API name:
expand_wildcards
Adds one or more values to
expandWildcards
. -
index
Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesAPI name:
index
Adds all elements of
list
toindex
. -
index
Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesAPI name:
index
Adds one or more values to
index
. -
keepAlive
Required - Extends the time to live of the corresponding point in time.API name:
keep_alive
-
keepAlive
public final OpenPointInTimeRequest.Builder keepAlive(Function<Time.Builder, ObjectBuilder<Time>> fn) Required - Extends the time to live of the corresponding point in time.API name:
keep_alive
-
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference
-
routing
Custom value used to route operations to a specific shard.API name:
routing
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
-
build
Builds aOpenPointInTimeRequest
.- Specified by:
build
in interfaceObjectBuilder<OpenPointInTimeRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-