Class SnapshotRestore.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.snapshot.restore.SnapshotRestore.Builder
- All Implemented Interfaces:
ObjectBuilder<SnapshotRestore>
- Enclosing class:
- SnapshotRestore
public static class SnapshotRestore.Builder extends ObjectBuilderBase implements ObjectBuilder<SnapshotRestore>
Builder for
SnapshotRestore.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SnapshotRestorebuild()Builds aSnapshotRestore.SnapshotRestore.Builderindices(java.lang.String value, java.lang.String... values)Required - API name:indicesSnapshotRestore.Builderindices(java.util.List<java.lang.String> list)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 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
-
indices
Required - API name:indicesAdds all elements of
listtoindices. -
indices
Required - API name:indicesAdds one or more values to
indices. -
snapshot
Required - API name:snapshot -
shards
Required - API name:shards -
shards
public final 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.
-