Class GetSnapshotRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.snapshot.GetSnapshotRequest
- All Implemented Interfaces:
ToCopyableBuilder<GetSnapshotRequest.Builder,GetSnapshotRequest>
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class GetSnapshotRequest
extends RequestBase
implements ToCopyableBuilder<GetSnapshotRequest.Builder,GetSnapshotRequest>
Returns information about a snapshot.
-
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 Endpoint<GetSnapshotRequest, GetSnapshotResponse, ErrorResponse> Endpoint "snapshot.get". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) static GetSnapshotRequest.Builderbuilder()final TimeThe amount of time to wait for a response from the cluster manager node.booleaninthashCode()final BooleanWhenfalse, the request returns an error for any snapshots that are unavailable.final TimeDeprecated.static GetSnapshotRequestfinal StringRequired - A comma-separated list of snapshot repository names used to limit the request.snapshot()Required -Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Booleanverbose()Whentrue, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards contained in the snapshot.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.util.ToCopyableBuilder
copy
-
Field Details
-
_ENDPOINT
Endpoint "snapshot.get".
-
-
Method Details
-
of
public static GetSnapshotRequest of(Function<GetSnapshotRequest.Builder, ObjectBuilder<GetSnapshotRequest>> 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 -
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 -
repository
Required - A comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.API name:
repository -
snapshot
Required -A comma-separated list of snapshot names to retrieve. Also accepts wildcard expressions. (
*).- To get information about all snapshots in a registered repository, use a wildcard (
*) or_all. - To get information about any snapshots that are currently running, use
_current.
API name:
snapshot - To get information about all snapshots in a registered repository, use a wildcard (
-
verbose
Whentrue, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards contained in the snapshot.API name:
verbose -
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSnapshotRequest.Builder,GetSnapshotRequest> - Returns:
- a new builder instance.
-
builder
-
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-