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
Clones indices from one 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 - API name:indicesfinal TimeExplicit operation timeout for connection to master nodestatic CloneSnapshotRequestfinal StringRequired - A repository namevoidserialize(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 name of the snapshot to clone fromfinal StringRequired - The name of the cloned snapshot to createfinal Timetimeout()API name:timeoutMethods 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 - API name:indices -
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
repository
Required - A repository nameAPI name:
repository -
snapshot
Required - The name of the snapshot to clone fromAPI name:
snapshot -
targetSnapshot
Required - The name of the cloned snapshot to createAPI name:
target_snapshot -
timeout
API name:timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupCloneSnapshotRequestDeserializer
protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)
-