Class SnapshotIndexStats.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.snapshot.SnapshotIndexStats.Builder
-
- All Implemented Interfaces:
ObjectBuilder<SnapshotIndexStats>
- Enclosing class:
- SnapshotIndexStats
public static class SnapshotIndexStats.Builder extends ObjectBuilderBase implements ObjectBuilder<SnapshotIndexStats>
Builder forSnapshotIndexStats.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
shards
public final SnapshotIndexStats.Builder shards(java.util.Map<java.lang.String,SnapshotShardsStatus> map)
Required - API name:shardsAdds all entries of
maptoshards.
-
shards
public final SnapshotIndexStats.Builder shards(java.lang.String key, SnapshotShardsStatus value)
Required - API name:shardsAdds 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:shardsAdds an entry to
shardsusing a builder lambda.
-
shardsStats
public final SnapshotIndexStats.Builder shardsStats(ShardsStats value)
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
public final SnapshotIndexStats.Builder stats(SnapshotStats value)
Required - API name:stats
-
stats
public final SnapshotIndexStats.Builder stats(java.util.function.Function<SnapshotStats.Builder,ObjectBuilder<SnapshotStats>> fn)
Required - API name:stats
-
build
public SnapshotIndexStats build()
Builds aSnapshotIndexStats.- Specified by:
buildin interfaceObjectBuilder<SnapshotIndexStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-