Class GetSnapshotRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<GetSnapshotRequest.Builder>
org.opensearch.client.opensearch.snapshot.GetSnapshotRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<GetSnapshotRequest.Builder,,GetSnapshotRequest> MutableBuilder<GetSnapshotRequest.Builder,,GetSnapshotRequest> ObjectBuilder<GetSnapshotRequest>
- Enclosing class:
GetSnapshotRequest
public static class GetSnapshotRequest.Builder
extends RequestBase.AbstractBuilder<GetSnapshotRequest.Builder>
implements CopyableBuilder<GetSnapshotRequest.Builder,GetSnapshotRequest>
Builder for
GetSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetSnapshotRequest.The amount of time to wait for a response from the cluster manager node.clusterManagerTimeout(Time value) The amount of time to wait for a response from the cluster manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.ignoreUnavailable(Boolean value) Whenfalse, the request returns an error for any snapshots that are unavailable.Deprecated.masterTimeout(Time value) Deprecated.repository(String value) Required - A comma-separated list of snapshot repository names used to limit the request.protected GetSnapshotRequest.Builderself()Required -Required -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.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetSnapshotRequest.Builder,GetSnapshotRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetSnapshotRequest.Builder>
-
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 -
clusterManagerTimeout
@Nonnull public final GetSnapshotRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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 -
masterTimeout
@Deprecated @Nonnull public final GetSnapshotRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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:
snapshotAdds all elements of
listtosnapshot. - To get information about all snapshots in a registered repository, use a wildcard (
-
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:
snapshotAdds one or more values to
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. Whenfalse, returns only snapshot names and contained indexes. This is useful when the snapshots belong to a cloud-based repository, where each blob read is a cost or performance concern.API name:
verbose -
build
Builds aGetSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<GetSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-