Class SnapshotsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<SnapshotsRequest.Builder>
org.opensearch.client.opensearch.cat.CatRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
org.opensearch.client.opensearch.cat.SnapshotsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotsRequest.Builder,,SnapshotsRequest> MutableBuilder<SnapshotsRequest.Builder,,SnapshotsRequest> ObjectBuilder<SnapshotsRequest>
- Enclosing class:
SnapshotsRequest
public static class SnapshotsRequest.Builder
extends CatRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
implements CopyableBuilder<SnapshotsRequest.Builder,SnapshotsRequest>
Builder for
SnapshotsRequest.-
Field Summary
Fields inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.AbstractBuilder
headers, sort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotsRequest.final SnapshotsRequest.BuilderThe amount of time allowed to establish a connection to the cluster manager node.final SnapshotsRequest.BuilderclusterManagerTimeout(Time value) The amount of time allowed to establish a connection to the cluster manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SnapshotsRequest.BuilderignoreUnavailable(Boolean value) Whentrue, the response does not include information from unavailable snapshots.final SnapshotsRequest.BuilderDeprecated.final SnapshotsRequest.BuildermasterTimeout(Time value) Deprecated.final SnapshotsRequest.Builderrepository(String value, String... values) A comma-separated list of snapshot repositories used to limit the request.final SnapshotsRequest.Builderrepository(List<String> list) A comma-separated list of snapshot repositories used to limit the request.protected SnapshotsRequest.Builderself()final SnapshotsRequest.BuilderSpecifies the time units, for example,5dor7h.Methods inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.AbstractBuilder
headers, headers, sort, sortMethods 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<SnapshotsRequest.Builder,SnapshotsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
-
clusterManagerTimeout
The amount of time allowed to establish a connection to the cluster manager node.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final SnapshotsRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount of time allowed to establish a connection to the cluster manager node.API name:
cluster_manager_timeout -
masterTimeout
Deprecated.The amount of time allowed to establish a connection to the cluster manager node.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final SnapshotsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.The amount of time allowed to establish a connection to the cluster manager node.API name:
master_timeout -
repository
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions._allreturns all repositories. If any repository fails during the request, OpenSearch returns an error.API name:
repositoryAdds all elements of
listtorepository. -
repository
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions._allreturns all repositories. If any repository fails during the request, OpenSearch returns an error.API name:
repositoryAdds one or more values to
repository. -
time
Specifies the time units, for example,5dor7h. For more information, see Supported units.API name:
time -
build
Builds aSnapshotsRequest.- Specified by:
buildin interfaceObjectBuilder<SnapshotsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-