Class StatusRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.StatusRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<StatusRequest>
- Enclosing class:
- StatusRequest
public static class StatusRequest.Builder extends java.lang.Object implements ObjectBuilder<StatusRequest>
Builder for
StatusRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StatusRequest.Builder
addSnapshot(java.lang.String value)
Add a value tosnapshot(List)
, creating the list if needed.StatusRequest
build()
Builds aStatusRequest
.StatusRequest.Builder
ignoreUnavailable(java.lang.Boolean value)
Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrownStatusRequest.Builder
masterTimeout(java.lang.String value)
Explicit operation timeout for connection to master nodeStatusRequest.Builder
repository(java.lang.String value)
A repository nameStatusRequest.Builder
snapshot(java.lang.String... value)
A comma-separated list of snapshot namesStatusRequest.Builder
snapshot(java.util.List<java.lang.String> value)
A comma-separated list of snapshot namesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
A repository nameAPI name:
repository
-
snapshot
A comma-separated list of snapshot namesAPI name:
snapshot
-
snapshot
A comma-separated list of snapshot namesAPI name:
snapshot
-
addSnapshot
Add a value tosnapshot(List)
, creating the list if needed. -
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
build
Builds aStatusRequest
.- Specified by:
build
in interfaceObjectBuilder<StatusRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-