Class RecoveryStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RecoveryStats.Builder
- All Implemented Interfaces:
CopyableBuilder<RecoveryStats.Builder,,RecoveryStats> MutableBuilder<RecoveryStats.Builder,,RecoveryStats> ObjectBuilder<RecoveryStats>
- Enclosing class:
RecoveryStats
public static class RecoveryStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RecoveryStats.Builder,RecoveryStats>
Builder for
RecoveryStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRecoveryStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RecoveryStats.BuildercurrentAsSource(long value) Required - The number of ongoing recoveries for which this node is the source.final RecoveryStats.BuildercurrentAsTarget(long value) Required - The number of ongoing recoveries for which this node is the target.final RecoveryStats.BuilderThe total amount of time recovery operations have been throttled.final RecoveryStats.BuilderthrottleTime(Time value) The total amount of time recovery operations have been throttled.final RecoveryStats.BuilderthrottleTimeInMillis(long value) Required - The total amount of time recovery operations have been throttled in milliseconds.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<RecoveryStats.Builder,RecoveryStats> - Returns:
- a new builder instance.
-
currentAsSource
Required - The number of ongoing recoveries for which this node is the source.API name:
current_as_source -
currentAsTarget
Required - The number of ongoing recoveries for which this node is the target.API name:
current_as_target -
throttleTime
The total amount of time recovery operations have been throttled.API name:
throttle_time -
throttleTime
@Nonnull public final RecoveryStats.Builder throttleTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The total amount of time recovery operations have been throttled.API name:
throttle_time -
throttleTimeInMillis
Required - The total amount of time recovery operations have been throttled in milliseconds.API name:
throttle_time_in_millis -
build
Builds aRecoveryStats.- Specified by:
buildin interfaceObjectBuilder<RecoveryStats>- Throws:
NullPointerException- if some of the required fields are null.
-