Class ShardClusterManagerThrottlingStatsDetail.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.ShardClusterManagerThrottlingStatsDetail.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardClusterManagerThrottlingStatsDetail.Builder,,ShardClusterManagerThrottlingStatsDetail> MutableBuilder<ShardClusterManagerThrottlingStatsDetail.Builder,,ShardClusterManagerThrottlingStatsDetail> ObjectBuilder<ShardClusterManagerThrottlingStatsDetail>
- Enclosing class:
ShardClusterManagerThrottlingStatsDetail
public static class ShardClusterManagerThrottlingStatsDetail.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardClusterManagerThrottlingStatsDetail.Builder,ShardClusterManagerThrottlingStatsDetail>
Builder for
ShardClusterManagerThrottlingStatsDetail.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardClusterManagerThrottlingStatsDetail.copy()Create a new builderCopyableBuilderthat is a copy of this one.throttledTasksPerTaskType(String key, Long value) Required - API name:throttled_tasks_per_task_typeRequired - API name:throttled_tasks_per_task_typetotalThrottledTasks(long value) Required - API name:total_throttled_tasksMethods 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<ShardClusterManagerThrottlingStatsDetail.Builder,ShardClusterManagerThrottlingStatsDetail> - Returns:
- a new builder instance.
-
throttledTasksPerTaskType
@Nonnull public final ShardClusterManagerThrottlingStatsDetail.Builder throttledTasksPerTaskType(Map<String, Long> map) Required - API name:throttled_tasks_per_task_typeAdds all elements of
maptothrottledTasksPerTaskType. -
throttledTasksPerTaskType
@Nonnull public final ShardClusterManagerThrottlingStatsDetail.Builder throttledTasksPerTaskType(String key, Long value) Required - API name:throttled_tasks_per_task_typeAdds an entry to
throttledTasksPerTaskType. -
totalThrottledTasks
@Nonnull public final ShardClusterManagerThrottlingStatsDetail.Builder totalThrottledTasks(long value) Required - API name:total_throttled_tasks -
build
Builds aShardClusterManagerThrottlingStatsDetail.- Specified by:
buildin interfaceObjectBuilder<ShardClusterManagerThrottlingStatsDetail>- Throws:
NullPointerException- if some of the required fields are null.
-