Class CreateSnapshotRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.snapshot.CreateSnapshotRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateSnapshotRequest.Builder,CreateSnapshotRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateSnapshotRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateSnapshotRequest.Builder,CreateSnapshotRequest>
Creates a snapshot within an existing repository.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateSnapshotRequest> Json deserializer forCreateSnapshotRequeststatic final Endpoint<CreateSnapshotRequest, CreateSnapshotResponse, ErrorResponse> Endpoint "snapshot.create". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) builder()final TimeThe amount of time to wait for a response from the cluster manager node.booleanA list of feature states to include in the snapshot.inthashCode()final BooleanWhentrue, the request ignores any data streams and indexes that are missing or closed.final BooleanWhentrue, includes the current cluster state in the snapshot.indices()API name:indicesfinal TimeDeprecated.metadata()API name:metadatastatic CreateSnapshotRequestfinal Booleanpartial()Whentrue, enables the restoration of a partial snapshot from indexes with unavailable shards.final StringRequired - The name of the repository where the snapshot will be stored.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 name of the snapshot.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final BooleanWhentrue, the request returns a response when the snapshot is complete.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCreateSnapshotRequest -
_ENDPOINT
Endpoint "snapshot.create".
-
-
Method Details
-
of
public static CreateSnapshotRequest of(Function<CreateSnapshotRequest.Builder, ObjectBuilder<CreateSnapshotRequest>> fn) -
clusterManagerTimeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
featureStates
A list of feature states to include in the snapshot. Each feature state includes one or more system indexes which contain related data. You can view a list of features using the Get Feature API.
Ifinclude_global_stateistrue, all current feature states are included by default. Ifinclude_global_stateisfalse, no feature states are included by default.API name:
feature_states -
includeGlobalState
Whentrue, includes the current cluster state in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. The cluster state also includes data stored in system indexes, such as watches and task records (configurable withfeature_states).API name:
include_global_state -
indices
API name:indices -
masterTimeout
Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
metadata
API name:metadata -
partial
Whentrue, enables the restoration of a partial snapshot from indexes with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty. Whenfalse, the entire restore operation will fail if one or more indexes included in the snapshot do not have all primary shards available.API name:
partial -
repository
Required - The name of the repository where the snapshot will be stored.API name:
repository -
snapshot
Required - The name of the snapshot. Must be unique in the repository.API name:
snapshot -
waitForCompletion
Whentrue, the request returns a response when the snapshot is complete. Whenfalse, the request returns a response when the snapshot initializes.API name:
wait_for_completion -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateSnapshotRequest.Builder,CreateSnapshotRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateSnapshotRequestDeserializer
protected static void setupCreateSnapshotRequestDeserializer(ObjectDeserializer<CreateSnapshotRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-