Class NodeStatistics.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.NodeStatistics.Builder
- All Implemented Interfaces:
ObjectBuilder<NodeStatistics>
- Enclosing class:
- NodeStatistics
public static class NodeStatistics.Builder extends java.lang.Object implements ObjectBuilder<NodeStatistics>
Builder for
NodeStatistics.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description NodeStatistics.BuilderaddFailures(ErrorCause value)Add a value tofailures(List), creating the list if needed.NodeStatistics.BuilderaddFailures(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Add a value tofailures(List), creating the list if needed.NodeStatisticsbuild()Builds aNodeStatistics.NodeStatistics.Builderfailed(int value)Required - Number of nodes that rejected the request or failed to respond.NodeStatistics.Builderfailures(ErrorCause... value)API name:failuresNodeStatistics.Builderfailures(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Setfailures(List)to a singleton list.NodeStatistics.Builderfailures(java.util.List<ErrorCause> value)API name:failuresNodeStatistics.Buildersuccessful(int value)Required - Number of nodes that responded successfully to the request.NodeStatistics.Buildertotal(int value)Required - Total number of nodes selected by the request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failures
API name:failures -
failures
API name:failures -
addFailures
Add a value tofailures(List), creating the list if needed. -
failures
public NodeStatistics.Builder failures(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Setfailures(List)to a singleton list. -
addFailures
public NodeStatistics.Builder addFailures(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Add a value tofailures(List), creating the list if needed. -
total
Required - Total number of nodes selected by the request.API name:
total -
successful
Required - Number of nodes that responded successfully to the request.API name:
successful -
failed
Required - Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response.API name:
failed -
build
Builds aNodeStatistics.- Specified by:
buildin interfaceObjectBuilder<NodeStatistics>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-