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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
masterTimeoutThe 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
- 
masterTimeoutpublic 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
- 
repositoryRequired - The name of the repository to delete a snapshot from.API name: repository
- 
snapshotRequired - A comma-separated list of snapshot names to delete. It also accepts wildcards (*).API name: snapshot
- 
waitForCompletionIftrue, 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 class- RequestBase.AbstractBuilder<DeleteSnapshotRequest.Builder>
 
- 
buildBuilds aDeleteSnapshotRequest.- Specified by:
- buildin interface- ObjectBuilder<DeleteSnapshotRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-