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
Constructors Constructor Description Builder()
-
Method Summary
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
-
shards
public final SnapshotIndexStats.Builder shards(java.util.Map<java.lang.String,SnapshotShardsStatus> map)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(java.lang.String key, java.util.function.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(java.util.function.Function<ShardsStats.Builder,ObjectBuilder<ShardsStats>> fn)Required - API name:shards_stats
-
stats
Required - API name:stats
-
stats
public final SnapshotIndexStats.Builder stats(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-