Class SimulateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<SimulateRequest.Builder>
co.elastic.clients.elasticsearch.ingest.SimulateRequest.Builder
- All Implemented Interfaces:
WithJson<SimulateRequest.Builder>,ObjectBuilder<SimulateRequest>
- Enclosing class:
- SimulateRequest
public static class SimulateRequest.Builder
extends RequestBase.AbstractBuilder<SimulateRequest.Builder>
implements ObjectBuilder<SimulateRequest>
Builder for
SimulateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSimulateRequest.final SimulateRequest.BuilderRequired - Sample documents to test in the pipeline.final SimulateRequest.BuilderRequired - Sample documents to test in the pipeline.final SimulateRequest.BuilderRequired - Sample documents to test in the pipeline.final SimulateRequest.BuilderThe pipeline to test.final SimulateRequest.BuilderThe pipeline to test.final SimulateRequest.BuilderThe pipeline to test.protected SimulateRequest.Builderself()final SimulateRequest.BuilderIftrue, the response includes output data for each processor in the executed pipeline.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
docs
Required - Sample documents to test in the pipeline.API name:
docsAdds all elements of
listtodocs. -
docs
Required - Sample documents to test in the pipeline.API name:
docsAdds one or more values to
docs. -
docs
Required - 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
The pipeline to test. If you don't specify thepipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.API name:
pipeline -
pipeline
public final SimulateRequest.Builder pipeline(Function<Pipeline.Builder, ObjectBuilder<Pipeline>> fn) The pipeline to test. If you don't specify thepipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.API name:
pipeline -
verbose
Iftrue, the response includes output data for each processor in the executed pipeline.API name:
verbose -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SimulateRequest.Builder>
-
build
Builds aSimulateRequest.- Specified by:
buildin interfaceObjectBuilder<SimulateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-