Class CloneSnapshotRequest

All Implemented Interfaces:

public class CloneSnapshotRequest
extends RequestBase
implements JsonpSerializable
Clones indices from one snapshot into another snapshot in the same repository.
See Also:
API specification
  • Field Details

  • Method Details

    • of

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

      public final java.lang.String indices()
      Required - API name: indices
    • masterTimeout

      @Nullable public final Time masterTimeout()
      Explicit operation timeout for connection to master node

      API name: master_timeout

    • repository

      public final java.lang.String repository()
      Required - A repository name

      API name: repository

    • snapshot

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

      API name: snapshot

    • targetSnapshot

      public final java.lang.String targetSnapshot()
      Required - The name of the cloned snapshot to create

      API name: target_snapshot

    • timeout

      @Nullable public final Time timeout()
      API name: timeout
    • serialize

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

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupCloneSnapshotRequestDeserializer

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