Class SnapshotRestore.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.restore.SnapshotRestore.Builder
- All Implemented Interfaces:
ObjectBuilder<SnapshotRestore>
- Enclosing class:
- SnapshotRestore
public static class SnapshotRestore.Builder extends java.lang.Object implements ObjectBuilder<SnapshotRestore>
Builder for
SnapshotRestore
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SnapshotRestore.Builder
addIndices(java.lang.String value)
Add a value toindices(List)
, creating the list if needed.SnapshotRestore
build()
Builds aSnapshotRestore
.SnapshotRestore.Builder
indices(java.lang.String... value)
API name:indices
SnapshotRestore.Builder
indices(java.util.List<java.lang.String> value)
API name:indices
SnapshotRestore.Builder
shards(ShardStatistics value)
API name:shards
SnapshotRestore.Builder
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
API name:shards
SnapshotRestore.Builder
snapshot(java.lang.String value)
API name:snapshot
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
-
indices
API name:indices
-
indices
API name:indices
-
addIndices
Add a value toindices(List)
, creating the list if needed. 4 -
snapshot
API name:snapshot
-
shards
API name:shards
-
shards
public SnapshotRestore.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)API name:shards
-
build
Builds aSnapshotRestore
.- Specified by:
build
in interfaceObjectBuilder<SnapshotRestore>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-