Class NodeStatistics.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.NodeStatistics.Builder
- All Implemented Interfaces:
CopyableBuilder<NodeStatistics.Builder,,NodeStatistics> MutableBuilder<NodeStatistics.Builder,,NodeStatistics> ObjectBuilder<NodeStatistics>
- Enclosing class:
NodeStatistics
public static class NodeStatistics.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NodeStatistics.Builder,NodeStatistics>
Builder for
NodeStatistics.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodeStatistics.copy()Create a new builderCopyableBuilderthat is a copy of this one.final NodeStatistics.Builderfailed(int value) Required - The number of nodes that rejected the request or failed to respond.final NodeStatistics.BuilderAPI name:failuresfinal NodeStatistics.Builderfailures(List<ErrorCause> list) API name:failuresfinal NodeStatistics.Builderfailures(ErrorCause value, ErrorCause... values) API name:failuresfinal NodeStatistics.Buildersuccessful(int value) Required - The number of nodes that responded successfully to the request.final NodeStatistics.Buildertotal(int value) Required - The total number of nodes selected by the request.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<NodeStatistics.Builder,NodeStatistics> - Returns:
- a new builder instance.
-
failed
Required - The number of nodes that rejected the request or failed to respond. If this value is not 0, then a reason for the rejection or failure is included in the response.API name:
failed -
failures
API name:failuresAdds all elements of
listtofailures. -
failures
API name:failuresAdds one or more values to
failures. -
failures
@Nonnull public final NodeStatistics.Builder failures(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:failuresAdds a value to
failuresusing a builder lambda. -
successful
Required - The number of nodes that responded successfully to the request.API name:
successful -
total
Required - The total number of nodes selected by the request.API name:
total -
build
Builds aNodeStatistics.- Specified by:
buildin interfaceObjectBuilder<NodeStatistics>- Throws:
NullPointerException- if some of the required fields are null.
-