Class CloneIndexRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.CloneIndexRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class CloneIndexRequest
extends RequestBase
implements JsonpSerializable
Clones an index
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static CloneIndexRequest of​(java.util.function.Function<CloneIndexRequest.Builder,​ObjectBuilder<CloneIndexRequest>> fn)
    • aliases

      public final java.util.Map<java.lang.String,​Alias> aliases()
      API name: aliases
    • index

      public final java.lang.String index()
      Required - The name of the source index to clone

      API name: index

    • masterTimeout

      @Nullable public final Time masterTimeout()
      Specify timeout for connection to master

      API name: master_timeout

    • settings

      public final java.util.Map<java.lang.String,​JsonData> settings()
      API name: settings
    • target

      public final java.lang.String target()
      Required - The name of the target index to clone into

      API name: target

    • timeout

      @Nullable public final Time timeout()
      Explicit operation timeout

      API name: timeout

    • waitForActiveShards

      @Nullable public final WaitForActiveShards waitForActiveShards()
      Set the number of active shards to wait for on the cloned index before the operation returns.

      API name: wait_for_active_shards

    • 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)
    • setupCloneIndexRequestDeserializer

      protected static void setupCloneIndexRequestDeserializer​(ObjectDeserializer<CloneIndexRequest.Builder> op)