Class SimulateRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ingest.SimulateRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<SimulateRequest>
- Enclosing class:
- SimulateRequest
public static class SimulateRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<SimulateRequest>
Builder forSimulateRequest
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimulateRequest
build()
Builds aSimulateRequest
.SimulateRequest.Builder
docs(java.util.function.Function<Document.Builder,ObjectBuilder<Document>> fn)
API name:docs
SimulateRequest.Builder
docs(java.util.List<Document> list)
API name:docs
SimulateRequest.Builder
docs(Document value, Document... values)
API name:docs
SimulateRequest.Builder
id(java.lang.String value)
Pipeline IDSimulateRequest.Builder
pipeline(java.util.function.Function<Pipeline.Builder,ObjectBuilder<Pipeline>> fn)
API name:pipeline
SimulateRequest.Builder
pipeline(Pipeline value)
API name:pipeline
SimulateRequest.Builder
verbose(java.lang.Boolean value)
Verbose mode.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
docs
public final SimulateRequest.Builder docs(java.util.List<Document> list)
API name:docs
Adds all elements of
list
todocs
.
-
docs
public final SimulateRequest.Builder docs(Document value, Document... values)
API name:docs
Adds one or more values to
docs
.
-
docs
public final SimulateRequest.Builder docs(java.util.function.Function<Document.Builder,ObjectBuilder<Document>> fn)
API name:docs
Adds a value to
docs
using a builder lambda.
-
id
public final SimulateRequest.Builder id(@Nullable java.lang.String value)
Pipeline IDAPI name:
id
-
pipeline
public final SimulateRequest.Builder pipeline(@Nullable Pipeline value)
API name:pipeline
-
pipeline
public final SimulateRequest.Builder pipeline(java.util.function.Function<Pipeline.Builder,ObjectBuilder<Pipeline>> fn)
API name:pipeline
-
verbose
public final SimulateRequest.Builder verbose(@Nullable java.lang.Boolean value)
Verbose mode. Display data output for each processor in executed pipelineAPI name:
verbose
-
build
public SimulateRequest build()
Builds aSimulateRequest
.- Specified by:
build
in interfaceObjectBuilder<SimulateRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-