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