Class GetSnapshotRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.snapshot.GetSnapshotRequest
-
@Generated("org.opensearch.client.codegen.CodeGenerator") public class GetSnapshotRequest extends RequestBaseReturns information about a snapshot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetSnapshotRequest.BuilderBuilder forGetSnapshotRequest.-
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 Endpoint<GetSnapshotRequest,GetSnapshotResponse,ErrorResponse>_ENDPOINTEndpoint "snapshot.get".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TimeclusterManagerTimeout()Operation timeout for connection to cluster-manager node.booleanequals(java.lang.Object o)inthashCode()java.lang.BooleanignoreUnavailable()Iffalse, the request returns an error for any snapshots that are unavailable.java.lang.BooleanincludeRepository()Deprecated.java.lang.BooleanindexDetails()Deprecated.TimemasterTimeout()Deprecated.static GetSnapshotRequestof(java.util.function.Function<GetSnapshotRequest.Builder,ObjectBuilder<GetSnapshotRequest>> fn)java.lang.Stringrepository()Required - Comma-separated list of snapshot repository names used to limit the request.java.util.List<java.lang.String>snapshot()Required -java.lang.Booleanverbose()Iftrue, 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 snapshotted.
-
-
-
Field Detail
-
_ENDPOINT
public static final Endpoint<GetSnapshotRequest,GetSnapshotResponse,ErrorResponse> _ENDPOINT
Endpoint "snapshot.get".
-
-
Method Detail
-
of
public static GetSnapshotRequest of(java.util.function.Function<GetSnapshotRequest.Builder,ObjectBuilder<GetSnapshotRequest>> fn)
-
clusterManagerTimeout
@Nullable public final Time clusterManagerTimeout()
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout
-
ignoreUnavailable
@Nullable public final java.lang.Boolean ignoreUnavailable()
Iffalse, the request returns an error for any snapshots that are unavailable.API name:
ignore_unavailable
-
includeRepository
@Nullable @Deprecated public final java.lang.Boolean includeRepository()
Deprecated.This method is left for compatibility.
-
indexDetails
@Nullable @Deprecated public final java.lang.Boolean indexDetails()
Deprecated.* This method is left for compatibility.
-
masterTimeout
@Deprecated @Nullable public final Time 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
@Nonnull public final java.lang.String repository()
Required - Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.API name:
repository
-
snapshot
@Nonnull public final java.util.List<java.lang.String> snapshot()
Required -Comma-separated list of snapshot names to retrieve. Also accepts wildcards (
*).- 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
@Nullable public final java.lang.Boolean verbose()
Iftrue, 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 snapshotted.API name:
verbose
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-