Class SnapshotStatusRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<SnapshotStatusRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.SnapshotStatusRequest.Builder
- All Implemented Interfaces:
WithJson<SnapshotStatusRequest.Builder>
,ObjectBuilder<SnapshotStatusRequest>
- Enclosing class:
- SnapshotStatusRequest
public static class SnapshotStatusRequest.Builder
extends RequestBase.AbstractBuilder<SnapshotStatusRequest.Builder>
implements ObjectBuilder<SnapshotStatusRequest>
Builder for
SnapshotStatusRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSnapshotStatusRequest
.ignoreUnavailable
(Boolean value) Iffalse
, the request returns an error for any snapshots that are unavailable.masterTimeout
(Time value) The period to wait for the master node.The period to wait for the master node.repository
(String value) The snapshot repository name used to limit the request.protected SnapshotStatusRequest.Builder
self()
A comma-separated list of snapshots to retrieve status for.A comma-separated list of snapshots to retrieve status for.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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 SnapshotStatusRequest.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
The snapshot repository name used to limit the request. It supports wildcards (*
) if<snapshot>
isn't specified.API name:
repository
-
snapshot
A comma-separated list of snapshots to retrieve status for. The default is currently running snapshots. Wildcards (*
) are not supported.API name:
snapshot
Adds all elements of
list
tosnapshot
. -
snapshot
A comma-separated list of snapshots to retrieve status for. The default is currently running snapshots. Wildcards (*
) are not supported.API name:
snapshot
Adds one or more values to
snapshot
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<SnapshotStatusRequest.Builder>
-
build
Builds aSnapshotStatusRequest
.- Specified by:
build
in interfaceObjectBuilder<SnapshotStatusRequest>
- Throws:
NullPointerException
- if some of the required fields are null.