Class SimulateRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<SimulateRequest.Builder>
org.opensearch.client.opensearch.ingest.SimulateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<SimulateRequest.Builder,,SimulateRequest> MutableBuilder<SimulateRequest.Builder,,SimulateRequest> ObjectBuilder<SimulateRequest>
- Enclosing class:
SimulateRequest
public static class SimulateRequest.Builder
extends RequestBase.AbstractBuilder<SimulateRequest.Builder>
implements CopyableBuilder<SimulateRequest.Builder,SimulateRequest>
Builder for
SimulateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSimulateRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SimulateRequest.BuilderA list of sample documents to test in the pipeline.final SimulateRequest.BuilderA list of sample documents to test in the pipeline.final SimulateRequest.BuilderA list of sample documents to test in the pipeline.final SimulateRequest.BuilderThe pipeline to test.final SimulateRequest.BuilderAPI name:pipelinefinal SimulateRequest.BuilderAPI name:pipelineprotected SimulateRequest.Builderself()final SimulateRequest.BuilderWhentrue, the response includes output data for each processor in the pipelineMethods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SimulateRequest.Builder,SimulateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SimulateRequest.Builder>
-
docs
A list of sample documents to test in the pipeline.API name:
docsAdds all elements of
listtodocs. -
docs
A list of sample documents to test in the pipeline.API name:
docsAdds one or more values to
docs. -
docs
@Nonnull public final SimulateRequest.Builder docs(Function<Document.Builder, ObjectBuilder<Document>> fn) A list of sample documents to test in the pipeline.API name:
docsAdds a value to
docsusing a builder lambda. -
id
The pipeline to test. If you don't specify apipelinein the request body, this parameter is required.API name:
id -
pipeline
API name:pipeline -
pipeline
@Nonnull public final SimulateRequest.Builder pipeline(Function<Pipeline.Builder, ObjectBuilder<Pipeline>> fn) API name:pipeline -
verbose
Whentrue, the response includes output data for each processor in the pipelineAPI name:
verbose -
build
Builds aSimulateRequest.- Specified by:
buildin interfaceObjectBuilder<SimulateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-