Class DeleteSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteSnapshotRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.DeleteSnapshotRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteSnapshotRequest.Builder>,ObjectBuilder<DeleteSnapshotRequest>
- Enclosing class:
- DeleteSnapshotRequest
public static class DeleteSnapshotRequest.Builder
extends RequestBase.AbstractBuilder<DeleteSnapshotRequest.Builder>
implements ObjectBuilder<DeleteSnapshotRequest>
Builder for
DeleteSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDeleteSnapshotRequest.masterTimeout(Time value) The period to wait for the master node.The period to wait for the master node.repository(String value) Required - The name of the repository to delete a snapshot from.protected DeleteSnapshotRequest.Builderself()Required - A comma-separated list of snapshot names to delete.waitForCompletion(Boolean value) Iftrue, the request returns a response when the matching snapshots are all deleted.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name:
master_timeout -
masterTimeout
public final DeleteSnapshotRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name:
master_timeout -
repository
Required - The name of the repository to delete a snapshot from.API name:
repository -
snapshot
Required - A comma-separated list of snapshot names to delete. It also accepts wildcards (*).API name:
snapshot -
waitForCompletion
Iftrue, the request returns a response when the matching snapshots are all deleted. Iffalse, the request returns a response as soon as the deletes are scheduled.API name:
wait_for_completion -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<DeleteSnapshotRequest.Builder>
-
build
Builds aDeleteSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-