Class SnapshotRestore.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotRestore.Builder>
co.elastic.clients.elasticsearch.snapshot.restore.SnapshotRestore.Builder
- All Implemented Interfaces:
WithJson<SnapshotRestore.Builder>
,ObjectBuilder<SnapshotRestore>
- Enclosing class:
- SnapshotRestore
public static class SnapshotRestore.Builder extends WithJsonObjectBuilderBase<SnapshotRestore.Builder> implements ObjectBuilder<SnapshotRestore>
Builder for
SnapshotRestore
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SnapshotRestore
build()
Builds aSnapshotRestore
.SnapshotRestore.Builder
indices(java.lang.String value, java.lang.String... values)
Required - API name:indices
SnapshotRestore.Builder
indices(java.util.List<java.lang.String> list)
Required - API name:indices
protected SnapshotRestore.Builder
self()
SnapshotRestore.Builder
shards(ShardStatistics value)
Required - API name:shards
SnapshotRestore.Builder
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
Required - API name:shards
SnapshotRestore.Builder
snapshot(java.lang.String value)
Required - API name:snapshot
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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
-
indices
Required - API name:indices
Adds all elements of
list
toindices
. -
indices
Required - API name:indices
Adds 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SnapshotRestore.Builder>
-
build
Builds aSnapshotRestore
.- Specified by:
build
in interfaceObjectBuilder<SnapshotRestore>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-