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.BuilderaddIndices(java.lang.String value)Add a value toindices(List), creating the list if needed.SnapshotRestorebuild()Builds aSnapshotRestore.SnapshotRestore.Builderindices(java.lang.String... value)Required - API name:indicesSnapshotRestore.Builderindices(java.util.List<java.lang.String> value)Required - API name:indicesSnapshotRestore.Buildershards(ShardStatistics value)Required - API name:shardsSnapshotRestore.Buildershards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:shardsSnapshotRestore.Buildersnapshot(java.lang.String value)Required - API name:snapshotMethods 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
Required - API name:indices -
indices
Required - API name:indices -
addIndices
Add a value toindices(List), creating the list if needed. -
snapshot
Required - API name:snapshot -
shards
Required - API name:shards -
shards
public SnapshotRestore.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:shards -
build
Builds aSnapshotRestore.- Specified by:
buildin interfaceObjectBuilder<SnapshotRestore>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-