Class Destination.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Destination.Builder>
co.elastic.clients.elasticsearch.core.reindex.Destination.Builder
- All Implemented Interfaces:
WithJson<Destination.Builder>,ObjectBuilder<Destination>
- Enclosing class:
- Destination
public static class Destination.Builder
extends WithJsonObjectBuilderBase<Destination.Builder>
implements ObjectBuilder<Destination>
Builder for
Destination.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDestination.final Destination.BuilderRequired - The name of the data stream, index, or index alias you are copying to.final Destination.BuilderSet tocreateto only index documents that do not already exist.final Destination.BuilderThe name of the pipeline to use.final Destination.BuilderBy default, a document's routing is preserved unless it’s changed by the script.protected Destination.Builderself()final Destination.BuilderversionType(VersionType value) The versioning to use for the indexing operation.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
-
index
Required - The name of the data stream, index, or index alias you are copying to.API name:
index -
opType
Set tocreateto only index documents that do not already exist. Important: To reindex to a data stream destination, this argument must becreate.API name:
op_type -
pipeline
The name of the pipeline to use.API name:
pipeline -
routing
By default, a document's routing is preserved unless it’s changed by the script. Set todiscardto set routing tonull, or=valueto route using the specifiedvalue.API name:
routing -
versionType
The versioning to use for the indexing operation.API name:
version_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Destination.Builder>
-
build
Builds aDestination.- Specified by:
buildin interfaceObjectBuilder<Destination>- Throws:
NullPointerException- if some of the required fields are null.
-