Class CloneSnapshotRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloneSnapshotRequest.BuilderBuilder forCloneSnapshotRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CloneSnapshotRequest>_DESERIALIZERJson deserializer forCloneSnapshotRequeststatic Endpoint<CloneSnapshotRequest,CloneSnapshotResponse,ErrorResponse>_ENDPOINTEndpoint "snapshot.clone".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeclusterManagerTimeout()Explicit operation timeout for connection to cluster-manager nodejava.lang.Stringindices()Required - API name:indicesTimemasterTimeout()Explicit operation timeout for connection to master nodestatic CloneSnapshotRequestof(java.util.function.Function<CloneSnapshotRequest.Builder,ObjectBuilder<CloneSnapshotRequest>> fn)java.lang.Stringrepository()Required - 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 voidsetupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)java.lang.Stringsnapshot()Required - The name of the snapshot to clone fromjava.lang.StringtargetSnapshot()Required - The name of the cloned snapshot to createTimetimeout()API name:timeout
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CloneSnapshotRequest> _DESERIALIZER
Json deserializer forCloneSnapshotRequest
-
_ENDPOINT
public static final Endpoint<CloneSnapshotRequest,CloneSnapshotResponse,ErrorResponse> _ENDPOINT
Endpoint "snapshot.clone".
-
-
Method Detail
-
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 nodeAPI name:
master_timeout
-
clusterManagerTimeout
@Nullable public final Time clusterManagerTimeout()
Explicit operation timeout for connection to cluster-manager nodeAPI name:
cluster_manager_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
@Nullable public final Time timeout()
API name:timeout
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupCloneSnapshotRequestDeserializer
protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer<CloneSnapshotRequest.Builder> op)
-
-