Class SnapshotsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cat.SnapshotsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<SnapshotsRequest>
- Enclosing class:
- SnapshotsRequest
public static class SnapshotsRequest.Builder extends java.lang.Object implements ObjectBuilder<SnapshotsRequest>
Builder for
SnapshotsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SnapshotsRequest.Builder
addRepository(java.lang.String value)
Add a value torepository(List)
, creating the list if needed.SnapshotsRequest
build()
Builds aSnapshotsRequest
.SnapshotsRequest.Builder
ignoreUnavailable(java.lang.Boolean value)
Set to true to ignore unavailable snapshotsSnapshotsRequest.Builder
repository(java.lang.String... value)
Name of repository from which to fetch the snapshot informationSnapshotsRequest.Builder
repository(java.util.List<java.lang.String> value)
Name of repository from which to fetch the snapshot informationMethods 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
Name of repository from which to fetch the snapshot informationAPI name:
repository
-
repository
Name of repository from which to fetch the snapshot informationAPI name:
repository
-
addRepository
Add a value torepository(List)
, creating the list if needed. -
build
Builds aSnapshotsRequest
.- Specified by:
build
in interfaceObjectBuilder<SnapshotsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-