Class SnapshotIndexStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.SnapshotIndexStats.Builder
- All Implemented Interfaces:
ObjectBuilder<SnapshotIndexStats>
- Enclosing class:
- SnapshotIndexStats
public static class SnapshotIndexStats.Builder extends java.lang.Object implements ObjectBuilder<SnapshotIndexStats>
Builder for
SnapshotIndexStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SnapshotIndexStats
build()
Builds aSnapshotIndexStats
.SnapshotIndexStats.Builder
putShards(java.lang.String key, SnapshotShardsStatus value)
Add a key/value toshards(Map)
, creating the map if needed.SnapshotIndexStats.Builder
putShards(java.lang.String key, java.util.function.Function<SnapshotShardsStatus.Builder,ObjectBuilder<SnapshotShardsStatus>> fn)
Add a key/value toshards(Map)
, creating the map if needed.SnapshotIndexStats.Builder
shards(java.lang.String key, java.util.function.Function<SnapshotShardsStatus.Builder,ObjectBuilder<SnapshotShardsStatus>> fn)
Setshards(Map)
to a singleton map.SnapshotIndexStats.Builder
shards(java.util.Map<java.lang.String,SnapshotShardsStatus> value)
Required - API name:shards
SnapshotIndexStats.Builder
shardsStats(ShardsStats value)
Required - API name:shards_stats
SnapshotIndexStats.Builder
shardsStats(java.util.function.Function<ShardsStats.Builder,ObjectBuilder<ShardsStats>> fn)
Required - API name:shards_stats
SnapshotIndexStats.Builder
stats(SnapshotStats value)
Required - API name:stats
SnapshotIndexStats.Builder
stats(java.util.function.Function<SnapshotStats.Builder,ObjectBuilder<SnapshotStats>> fn)
Required - API name:stats
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 SnapshotIndexStats.Builder shards(java.util.Map<java.lang.String,SnapshotShardsStatus> value)Required - API name:shards
-
putShards
Add a key/value toshards(Map)
, creating the map if needed. -
shards
public SnapshotIndexStats.Builder shards(java.lang.String key, java.util.function.Function<SnapshotShardsStatus.Builder,ObjectBuilder<SnapshotShardsStatus>> fn)Setshards(Map)
to a singleton map. -
putShards
public SnapshotIndexStats.Builder putShards(java.lang.String key, java.util.function.Function<SnapshotShardsStatus.Builder,ObjectBuilder<SnapshotShardsStatus>> fn)Add a key/value toshards(Map)
, creating the map if needed. -
shardsStats
Required - API name:shards_stats
-
shardsStats
public SnapshotIndexStats.Builder shardsStats(java.util.function.Function<ShardsStats.Builder,ObjectBuilder<ShardsStats>> fn)Required - API name:shards_stats
-
stats
Required - API name:stats
-
stats
public SnapshotIndexStats.Builder stats(java.util.function.Function<SnapshotStats.Builder,ObjectBuilder<SnapshotStats>> fn)Required - API name:stats
-
build
Builds aSnapshotIndexStats
.- Specified by:
build
in interfaceObjectBuilder<SnapshotIndexStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-