Class Destination.Builder

java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.Destination.Builder
All Implemented Interfaces:
ObjectBuilder<Destination>
Enclosing class:
Destination

public static class Destination.Builder
extends java.lang.Object
implements ObjectBuilder<Destination>
Builder for Destination.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • index

      public 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 Destination.Builder opType​(@Nullable OpType value)
      API name: op_type
    • pipeline

      public Destination.Builder pipeline​(@Nullable java.lang.String value)
      The unique identifier for an ingest pipeline.

      API name: pipeline

    • routing

      public Destination.Builder routing​(@Nullable java.lang.String value)
      API name: routing
    • versionType

      public Destination.Builder versionType​(@Nullable VersionType value)
      API name: version_type
    • build

      public Destination build()
      Builds a Destination.
      Specified by:
      build in interface ObjectBuilder<Destination>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.