Class OpenPointInTimeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.OpenPointInTimeRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<OpenPointInTimeRequest>
- Enclosing class:
- OpenPointInTimeRequest
public static class OpenPointInTimeRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<OpenPointInTimeRequest>
Builder for
OpenPointInTimeRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description OpenPointInTimeRequest
build()
Builds aOpenPointInTimeRequest
.OpenPointInTimeRequest.Builder
ignoreUnavailable(java.lang.Boolean value)
Whether specified concrete indices should be ignored when unavailable (missing or closed)OpenPointInTimeRequest.Builder
index(java.lang.String value, java.lang.String... values)
Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesOpenPointInTimeRequest.Builder
index(java.util.List<java.lang.String> list)
Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesOpenPointInTimeRequest.Builder
keepAlive(Time value)
Required - Specific the time to live for the point in timeOpenPointInTimeRequest.Builder
keepAlive(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Required - Specific the time to live for the point in timeMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
public final OpenPointInTimeRequest.Builder index(java.lang.String value, java.lang.String... values)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 - Specific the time to live for the point in timeAPI name:
keep_alive
-
keepAlive
public final OpenPointInTimeRequest.Builder keepAlive(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Required - Specific the time to live for the point in timeAPI name:
keep_alive
-
build
Builds aOpenPointInTimeRequest
.- Specified by:
build
in interfaceObjectBuilder<OpenPointInTimeRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.