Class CloneSnapshotRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.snapshot.CloneSnapshotRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class CloneSnapshotRequest extends RequestBase implements JsonpSerializable
Clone a snapshot. Clone part of all of a snapshot into another snapshot in the same repository.
See Also:
  • Field Details

  • Method Details

    • of

    • indices

      public final String indices()
      Required - A comma-separated list of indices to include in the snapshot. Multi-target syntax is supported.

      API name: indices

    • masterTimeout

      @Nullable public final Time masterTimeout()
      The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to -1.

      API name: master_timeout

    • repository

      public final String repository()
      Required - The name of the snapshot repository that both source and target snapshot belong to.

      API name: repository

    • snapshot

      public final String snapshot()
      Required - The source snapshot name.

      API name: snapshot

    • targetSnapshot

      public final String targetSnapshot()
      Required - The target snapshot name.

      API name: target_snapshot

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

      protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)