Class GetSnapshotRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.snapshot.GetSnapshotRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<GetSnapshotRequest>
- Enclosing class:
- GetSnapshotRequest
public static class GetSnapshotRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<GetSnapshotRequest>
Builder forGetSnapshotRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GetSnapshotRequestbuild()Builds aGetSnapshotRequest.GetSnapshotRequest.BuilderclusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Operation timeout for connection to cluster-manager node.GetSnapshotRequest.BuilderclusterManagerTimeout(Time value)Operation timeout for connection to cluster-manager node.GetSnapshotRequest.Builderhuman(java.lang.Boolean value)API name:humanGetSnapshotRequest.BuilderignoreUnavailable(java.lang.Boolean value)Iffalse, the request returns an error for any snapshots that are unavailable.GetSnapshotRequest.BuilderincludeRepository(java.lang.Boolean value)Deprecated.GetSnapshotRequest.BuilderindexDetails(java.lang.Boolean value)Deprecated.GetSnapshotRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Deprecated.GetSnapshotRequest.BuildermasterTimeout(Time value)Deprecated.GetSnapshotRequest.Builderrepository(java.lang.String value)Required - Comma-separated list of snapshot repository names used to limit the request.GetSnapshotRequest.Buildersnapshot(java.lang.String value, java.lang.String... values)Required -GetSnapshotRequest.Buildersnapshot(java.util.List<java.lang.String> list)Required -GetSnapshotRequest.Builderverbose(java.lang.Boolean value)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.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
human
public final GetSnapshotRequest.Builder human(@Nullable java.lang.Boolean value)
API name:human
-
clusterManagerTimeout
@Nonnull public final GetSnapshotRequest.Builder clusterManagerTimeout(@Nullable Time value)
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout
-
clusterManagerTimeout
@Nonnull public final GetSnapshotRequest.Builder clusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout
-
ignoreUnavailable
@Nonnull public final GetSnapshotRequest.Builder ignoreUnavailable(@Nullable java.lang.Boolean value)
Iffalse, the request returns an error for any snapshots that are unavailable.API name:
ignore_unavailable
-
includeRepository
@Deprecated public final GetSnapshotRequest.Builder includeRepository(@Nullable java.lang.Boolean value)
Deprecated.This method is left for compatibility. The set value is not used.
-
indexDetails
@Deprecated public final GetSnapshotRequest.Builder indexDetails(@Nullable java.lang.Boolean value)
Deprecated.This method is left for compatibility. The set value is not used.
-
masterTimeout
@Deprecated @Nonnull public final GetSnapshotRequest.Builder masterTimeout(@Nullable Time value)
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(java.util.function.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
@Nonnull public final GetSnapshotRequest.Builder repository(java.lang.String value)
Required - Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.API name:
repository
-
snapshot
@Nonnull public final GetSnapshotRequest.Builder snapshot(java.util.List<java.lang.String> list)
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:
snapshotAdds all elements of
listtosnapshot. - To get information about all snapshots in a registered repository, use a wildcard (
-
snapshot
@Nonnull public final GetSnapshotRequest.Builder snapshot(java.lang.String value, java.lang.String... values)
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:
snapshotAdds one or more values to
snapshot. - To get information about all snapshots in a registered repository, use a wildcard (
-
verbose
@Nonnull public final GetSnapshotRequest.Builder verbose(@Nullable java.lang.Boolean value)
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
-
build
@Nonnull public GetSnapshotRequest build()
Builds aGetSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<GetSnapshotRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-