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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CloneSnapshotRequest.Builder
Builder forCloneSnapshotRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CloneSnapshotRequest>
_DESERIALIZER
Json deserializer forCloneSnapshotRequest
static Endpoint<CloneSnapshotRequest,CloneSnapshotResponse,ErrorResponse>
_ENDPOINT
Endpoint "snapshot.clone
". -
Method Summary
Modifier and Type Method Description java.lang.String
indices()
Required - API name:indices
Time
masterTimeout()
Explicit operation timeout for connection to master nodestatic CloneSnapshotRequest
of(java.util.function.Function<CloneSnapshotRequest.Builder,ObjectBuilder<CloneSnapshotRequest>> fn)
java.lang.String
repository()
Required - A repository namevoid
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)
java.lang.String
snapshot()
Required - The name of the snapshot to clone fromjava.lang.String
targetSnapshot()
Required - The name of the cloned snapshot to createTime
timeout()
API name:timeout
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCloneSnapshotRequest
-
_ENDPOINT
Endpoint "snapshot.clone
".
-
-
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
Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
repository
public final java.lang.String repository()Required - A repository nameAPI name:
repository
-
snapshot
public final java.lang.String snapshot()Required - The name of the snapshot to clone fromAPI name:
snapshot
-
targetSnapshot
public final java.lang.String 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCloneSnapshotRequestDeserializer
protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)
-