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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CloneSnapshotRequest>Json deserializer forCloneSnapshotRequeststatic final Endpoint<CloneSnapshotRequest,CloneSnapshotResponse, ErrorResponse> Endpoint "snapshot.clone". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringindices()Required - A comma-separated list of indices to include in the snapshot.final TimeThe period to wait for the master node.static CloneSnapshotRequestfinal StringRequired - The name of the snapshot repository that both source and target snapshot belong to.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsnapshot()Required - The source snapshot name.final StringRequired - The target snapshot name.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forCloneSnapshotRequest -
_ENDPOINT
Endpoint "snapshot.clone".
-
-
Method Details
-
of
public static CloneSnapshotRequest of(Function<CloneSnapshotRequest.Builder, ObjectBuilder<CloneSnapshotRequest>> fn) -
indices
Required - A comma-separated list of indices to include in the snapshot. Multi-target syntax is supported.API name:
indices -
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
Required - The name of the snapshot repository that both source and target snapshot belong to.API name:
repository -
snapshot
Required - The source snapshot name.API name:
snapshot -
targetSnapshot
Required - The target snapshot name.API name:
target_snapshot -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupCloneSnapshotRequestDeserializer
protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)
-