Class SnapshotIndexStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.SnapshotIndexStats.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotIndexStats.Builder,,SnapshotIndexStats> MutableBuilder<SnapshotIndexStats.Builder,,SnapshotIndexStats> ObjectBuilder<SnapshotIndexStats>
- Enclosing class:
SnapshotIndexStats
public static class SnapshotIndexStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotIndexStats.Builder,SnapshotIndexStats>
Builder for
SnapshotIndexStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotIndexStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.The status of individual shards in the snapshot.shards(String key, SnapshotShardsStatus value) The status of individual shards in the snapshot.shards(Map<String, SnapshotShardsStatus> map) The status of individual shards in the snapshot.The statistics about snapshot shards.shardsStats(SnapshotShardsStats value) The statistics about snapshot shards.The detailed statistics about the snapshot.stats(SnapshotStats value) The detailed statistics about the snapshot.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SnapshotIndexStats.Builder,SnapshotIndexStats> - Returns:
- a new builder instance.
-
shards
The status of individual shards in the snapshot.API name:
shardsAdds all elements of
maptoshards. -
shards
The status of individual shards in the snapshot.API name:
shardsAdds an entry to
shards. -
shards
@Nonnull public final SnapshotIndexStats.Builder shards(String key, Function<SnapshotShardsStatus.Builder, ObjectBuilder<SnapshotShardsStatus>> fn) The status of individual shards in the snapshot.API name:
shardsAdds a value to
shardsusing a builder lambda. -
shardsStats
The statistics about snapshot shards.API name:
shards_stats -
shardsStats
@Nonnull public final SnapshotIndexStats.Builder shardsStats(Function<SnapshotShardsStats.Builder, ObjectBuilder<SnapshotShardsStats>> fn) The statistics about snapshot shards.API name:
shards_stats -
stats
The detailed statistics about the snapshot.API name:
stats -
stats
@Nonnull public final SnapshotIndexStats.Builder stats(Function<SnapshotStats.Builder, ObjectBuilder<SnapshotStats>> fn) The detailed statistics about the snapshot.API name:
stats -
build
Builds aSnapshotIndexStats.- Specified by:
buildin interfaceObjectBuilder<SnapshotIndexStats>- Throws:
NullPointerException- if some of the required fields are null.
-