Class Destination.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.reindex.Destination.Builder
- All Implemented Interfaces:
ObjectBuilder<Destination>
- Enclosing class:
- Destination
public static class Destination.Builder extends ObjectBuilderBase implements ObjectBuilder<Destination>
Builder for
Destination.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Destinationbuild()Builds aDestination.Destination.Builderindex(java.lang.String value)The destination index for the transform.Destination.BuilderopType(OpType value)API name:op_typeDestination.Builderpipeline(java.lang.String value)The unique identifier for an ingest pipeline.Destination.Builderrouting(java.lang.String value)API name:routingDestination.BuilderversionType(VersionType value)API name:version_typeMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
The destination index for the transform. The mappings of the destination index are deduced based on the source fields when possible. If alternate mappings are required, use the Create index API prior to starting the transform.API name:
index -
opType
API name:op_type -
pipeline
The unique identifier for an ingest pipeline.API name:
pipeline -
routing
API name:routing -
versionType
API name:version_type -
build
Builds aDestination.- Specified by:
buildin interfaceObjectBuilder<Destination>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-