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 Details

    • Builder

      public Builder()
  • Method Details

    • 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 a Destination.
      Specified by:
      build in interface ObjectBuilder<Destination>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.