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 Destination
build()
Builds aDestination
.Destination.Builder
index(java.lang.String value)
The destination index for the transform.Destination.Builder
opType(OpType value)
API name:op_type
Destination.Builder
pipeline(java.lang.String value)
The unique identifier for an ingest pipeline.Destination.Builder
routing(java.lang.String value)
API name:routing
Destination.Builder
versionType(VersionType value)
API name:version_type
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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:
build
in interfaceObjectBuilder<Destination>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-