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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotRestore.final SnapshotRestore.BuilderRequired - API name:indicesfinal SnapshotRestore.BuilderRequired - API name:indicesprotected SnapshotRestore.Builderself()final SnapshotRestore.Buildershards(ShardStatistics value) Required - API name:shardsfinal SnapshotRestore.BuilderRequired - API name:shardsfinal SnapshotRestore.BuilderRequired - API name:snapshotMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) Required - API name:shards -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SnapshotRestore.Builder>
-
build
Builds aSnapshotRestore.- Specified by:
buildin interfaceObjectBuilder<SnapshotRestore>- Throws:
NullPointerException- if some of the required fields are null.
-