Class CloneRequest

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

@JsonpDeserializable
public final class CloneRequest
extends RequestBase
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • index

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

      API name: index

    • target

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

      API name: target

    • masterTimeout

      @Nullable public java.lang.String masterTimeout()
      Specify timeout for connection to master

      API name: master_timeout

    • timeout

      @Nullable public java.lang.String timeout()
      Explicit operation timeout

      API name: timeout

    • waitForActiveShards

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

      API name: wait_for_active_shards

    • aliases

      @Nullable public java.util.Map<java.lang.String,​Alias> aliases()
      API name: aliases
    • settings

      @Nullable public java.util.Map<java.lang.String,​JsonData> settings()
      API name: settings
    • 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)
    • setupCloneRequestDeserializer

      protected static void setupCloneRequestDeserializer​(DelegatingDeserializer<CloneRequest.Builder> op)