Class OpenPointInTimeRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.OpenPointInTimeRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<OpenPointInTimeRequest>
- Enclosing class:
- OpenPointInTimeRequest
public static class OpenPointInTimeRequest.Builder extends java.lang.Object implements ObjectBuilder<OpenPointInTimeRequest>
Builder for
OpenPointInTimeRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description OpenPointInTimeRequest.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.OpenPointInTimeRequest
build()
Builds aOpenPointInTimeRequest
.OpenPointInTimeRequest.Builder
index(java.lang.String... value)
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> value)
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(java.lang.String value)
Specific the time to live for the point in timeMethods 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
-
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
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
keepAlive
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.
-