Class SnapshotIndexStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotIndexStats.Builder>
co.elastic.clients.elasticsearch.snapshot.SnapshotIndexStats.Builder
- All Implemented Interfaces:
WithJson<SnapshotIndexStats.Builder>
,ObjectBuilder<SnapshotIndexStats>
- Enclosing class:
- SnapshotIndexStats
public static class SnapshotIndexStats.Builder
extends WithJsonObjectBuilderBase<SnapshotIndexStats.Builder>
implements ObjectBuilder<SnapshotIndexStats>
Builder for
SnapshotIndexStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSnapshotIndexStats
.protected SnapshotIndexStats.Builder
self()
shards
(String key, SnapshotShardsStatus value) Required - API name:shards
Required - API name:shards
shards
(Map<String, SnapshotShardsStatus> map) Required - API name:shards
shardsStats
(ShardsStats value) Required - API name:shards_stats
Required - API name:shards_stats
stats
(SnapshotStats value) Required - API name:stats
Required - API name:stats
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
Required - API name:shards
Adds all entries of
map
toshards
. -
shards
Required - API name:shards
Adds an entry to
shards
. -
shards
public final SnapshotIndexStats.Builder shards(String key, Function<SnapshotShardsStatus.Builder, ObjectBuilder<SnapshotShardsStatus>> fn) Required - API name:shards
Adds an entry to
shards
using a builder lambda. -
shardsStats
Required - API name:shards_stats
-
shardsStats
public final SnapshotIndexStats.Builder shardsStats(Function<ShardsStats.Builder, ObjectBuilder<ShardsStats>> fn) Required - API name:shards_stats
-
stats
Required - API name:stats
-
stats
public final SnapshotIndexStats.Builder stats(Function<SnapshotStats.Builder, ObjectBuilder<SnapshotStats>> fn) Required - API name:stats
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SnapshotIndexStats.Builder>
-
build
Builds aSnapshotIndexStats
.- Specified by:
build
in interfaceObjectBuilder<SnapshotIndexStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-