Class SnapshotStatusRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.snapshot.SnapshotStatusRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<SnapshotStatusRequest>
- Enclosing class:
- SnapshotStatusRequest
public static class SnapshotStatusRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<SnapshotStatusRequest>
Builder for
SnapshotStatusRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SnapshotStatusRequestbuild()Builds aSnapshotStatusRequest.SnapshotStatusRequest.BuilderignoreUnavailable(java.lang.Boolean value)Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrownSnapshotStatusRequest.BuildermasterTimeout(Time value)Explicit operation timeout for connection to master nodeSnapshotStatusRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeout for connection to master nodeSnapshotStatusRequest.Builderrepository(java.lang.String value)A repository nameSnapshotStatusRequest.Buildersnapshot(java.lang.String value, java.lang.String... values)A comma-separated list of snapshot namesSnapshotStatusRequest.Buildersnapshot(java.util.List<java.lang.String> list)A comma-separated list of snapshot namesMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
masterTimeout
public final SnapshotStatusRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
repository
A repository nameAPI name:
repository -
snapshot
A comma-separated list of snapshot namesAPI name:
snapshotAdds all elements of
listtosnapshot. -
snapshot
public final SnapshotStatusRequest.Builder snapshot(java.lang.String value, java.lang.String... values)A comma-separated list of snapshot namesAPI name:
snapshotAdds one or more values to
snapshot. -
build
Builds aSnapshotStatusRequest.- Specified by:
buildin interfaceObjectBuilder<SnapshotStatusRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.