Class Destination.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.reindex.Destination.Builder
-
- All Implemented Interfaces:
ObjectBuilder<Destination>
- Enclosing class:
- Destination
public static class Destination.Builder extends ObjectBuilderBase implements ObjectBuilder<Destination>
Builder forDestination.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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_type-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
index
public final Destination.Builder index(@Nullable java.lang.String value)
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
public final Destination.Builder opType(@Nullable OpType value)
API name:op_type
-
pipeline
public final Destination.Builder pipeline(@Nullable java.lang.String value)
The unique identifier for an ingest pipeline.API name:
pipeline
-
routing
public final Destination.Builder routing(@Nullable java.lang.String value)
API name:routing
-
versionType
public final Destination.Builder versionType(@Nullable VersionType value)
API name:version_type
-
build
public Destination build()
Builds aDestination.- Specified by:
buildin interfaceObjectBuilder<Destination>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-