Class SimulateRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ingest.SimulateRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SimulateRequest.Builder,SimulateRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class SimulateRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<SimulateRequest.Builder,SimulateRequest>
Simulates an ingest pipeline with example documents.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SimulateRequest> Json deserializer forSimulateRequeststatic final Endpoint<SimulateRequest, SimulateResponse, ErrorResponse> Endpoint "ingest.simulate". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) static SimulateRequest.Builderbuilder()docs()A list of sample documents to test in the pipeline.booleaninthashCode()final Stringid()The pipeline to test.static SimulateRequestfinal Pipelinepipeline()API name:pipelinevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Booleanverbose()Whentrue, the response includes output data for each processor in the pipelineMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forSimulateRequest -
_ENDPOINT
Endpoint "ingest.simulate".
-
-
Method Details
-
of
public static SimulateRequest of(Function<SimulateRequest.Builder, ObjectBuilder<SimulateRequest>> fn) -
docs
A list of sample documents to test in the pipeline.API name:
docs -
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 -
verbose
Whentrue, the response includes output data for each processor in the pipelineAPI name:
verbose -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SimulateRequest.Builder,SimulateRequest> - Returns:
- a new builder instance.
-
builder
-
setupSimulateRequestDeserializer
protected static void setupSimulateRequestDeserializer(ObjectDeserializer<SimulateRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-