java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.Destination
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class Destination extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • index

      public final String index()
      Required - The name of the data stream, index, or index alias you are copying to.

      API name: index

    • opType

      @Nullable public final OpType opType()
      Set to create to only index documents that do not already exist. Important: To reindex to a data stream destination, this argument must be create.

      API name: op_type

    • pipeline

      @Nullable public final String pipeline()
      The name of the pipeline to use.

      API name: pipeline

    • routing

      @Nullable public final String routing()
      By default, a document's routing is preserved unless it’s changed by the script. Set to discard to set routing to null, or =value to route using the specified value.

      API name: routing

    • versionType

      @Nullable public final VersionType versionType()
      The versioning to use for the indexing operation.

      API name: version_type

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupDestinationDeserializer

      protected static void setupDestinationDeserializer(ObjectDeserializer<Destination.Builder> op)