Class Pit.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.Pit.Builder
-
- All Implemented Interfaces:
ObjectBuilder<Pit>
- Enclosing class:
- Pit
public static class Pit.Builder extends ObjectBuilderBase implements ObjectBuilder<Pit>
Builder forPit
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pit
build()
Builds aPit
.Pit.Builder
id(java.lang.String id)
Required - API name:id
Pit.Builder
keepAlive(java.lang.String keepAlive)
API name:keep_alive
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
id
public final Pit.Builder id(java.lang.String id)
Required - API name:id
-
keepAlive
public final Pit.Builder keepAlive(@Nullable java.lang.String keepAlive)
API name:keep_alive
-
build
public Pit build()
Builds aPit
.- Specified by:
build
in interfaceObjectBuilder<Pit>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-