Class Destination.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.reindex.Destination.Builder
- All Implemented Interfaces:
CopyableBuilder<Destination.Builder,,Destination> MutableBuilder<Destination.Builder,,Destination> ObjectBuilder<Destination>
- Enclosing class:
Destination
public static class Destination.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Destination.Builder,Destination>
Builder for
Destination.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDestination.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Destination.BuilderRequired - API name:indexfinal Destination.BuilderAPI name:op_typefinal Destination.BuilderThe name of the pipeline to use.final Destination.BuilderAPI name:routingfinal Destination.BuilderversionType(VersionType value) API name:version_typeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Destination.Builder,Destination> - Returns:
- a new builder instance.
-
index
Required - API name:index -
opType
API name:op_type -
pipeline
The name of the pipeline to use.API name:
pipeline -
routing
API name:routing -
versionType
API name:version_type -
build
Builds aDestination.- Specified by:
buildin interfaceObjectBuilder<Destination>- Throws:
NullPointerException- if some of the required fields are null.
-