Class SnapshotIndexStats.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
public SnapshotIndexStats.Builder shards(java.util.Map<java.lang.String,SnapshotShardsStatus> value)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
API name:shards_stats -
shardsStats
public SnapshotIndexStats.Builder shardsStats(java.util.function.Function<ShardsStats.Builder,ObjectBuilder<ShardsStats>> fn)API name:shards_stats -
stats
API name:stats -
stats
public SnapshotIndexStats.Builder stats(java.util.function.Function<SnapshotStats.Builder,ObjectBuilder<SnapshotStats>> fn)API name:stats -
build
Builds aSnapshotIndexStats.- Specified by:
buildin interfaceObjectBuilder<SnapshotIndexStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-