Class ShardIndexingPressureStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.ShardIndexingPressureStats.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardIndexingPressureStats.Builder,,ShardIndexingPressureStats> MutableBuilder<ShardIndexingPressureStats.Builder,,ShardIndexingPressureStats> ObjectBuilder<ShardIndexingPressureStats>
- Enclosing class:
ShardIndexingPressureStats
public static class ShardIndexingPressureStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardIndexingPressureStats.Builder,ShardIndexingPressureStats>
Builder for
ShardIndexingPressureStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardIndexingPressureStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:enabledAPI name:enforcedstats(String key, Function<ShardIndexingPressurePerShardStats.Builder, ObjectBuilder<ShardIndexingPressurePerShardStats>> fn) API name:statsstats(String key, ShardIndexingPressurePerShardStats value) API name:statsAPI name:statstotalRejectionsBreakup(Function<ShardIndexingPressureRejectionsBreakupStats.Builder, ObjectBuilder<ShardIndexingPressureRejectionsBreakupStats>> fn) API name:total_rejections_breakupAPI name:total_rejections_breakuptotalRejectionsBreakupShadowMode(Function<ShardIndexingPressureRejectionsBreakupStats.Builder, ObjectBuilder<ShardIndexingPressureRejectionsBreakupStats>> fn) API name:total_rejections_breakup_shadow_modeAPI name:total_rejections_breakup_shadow_modeMethods 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<ShardIndexingPressureStats.Builder,ShardIndexingPressureStats> - Returns:
- a new builder instance.
-
enabled
API name:enabled -
enforced
API name:enforced -
stats
@Nonnull public final ShardIndexingPressureStats.Builder stats(Map<String, ShardIndexingPressurePerShardStats> map) API name:statsAdds all elements of
maptostats. -
stats
@Nonnull public final ShardIndexingPressureStats.Builder stats(String key, ShardIndexingPressurePerShardStats value) API name:statsAdds an entry to
stats. -
stats
@Nonnull public final ShardIndexingPressureStats.Builder stats(String key, Function<ShardIndexingPressurePerShardStats.Builder, ObjectBuilder<ShardIndexingPressurePerShardStats>> fn) API name:statsAdds a value to
statsusing a builder lambda. -
totalRejectionsBreakup
@Nonnull public final ShardIndexingPressureStats.Builder totalRejectionsBreakup(@Nullable ShardIndexingPressureRejectionsBreakupStats value) API name:total_rejections_breakup -
totalRejectionsBreakup
@Nonnull public final ShardIndexingPressureStats.Builder totalRejectionsBreakup(Function<ShardIndexingPressureRejectionsBreakupStats.Builder, ObjectBuilder<ShardIndexingPressureRejectionsBreakupStats>> fn) API name:total_rejections_breakup -
totalRejectionsBreakupShadowMode
@Nonnull public final ShardIndexingPressureStats.Builder totalRejectionsBreakupShadowMode(@Nullable ShardIndexingPressureRejectionsBreakupStats value) API name:total_rejections_breakup_shadow_mode -
totalRejectionsBreakupShadowMode
@Nonnull public final ShardIndexingPressureStats.Builder totalRejectionsBreakupShadowMode(Function<ShardIndexingPressureRejectionsBreakupStats.Builder, ObjectBuilder<ShardIndexingPressureRejectionsBreakupStats>> fn) API name:total_rejections_breakup_shadow_mode -
build
Builds aShardIndexingPressureStats.- Specified by:
buildin interfaceObjectBuilder<ShardIndexingPressureStats>- Throws:
NullPointerException- if some of the required fields are null.
-