Class NodeStatistics.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeStatistics.Builder>
co.elastic.clients.elasticsearch._types.NodeStatistics.Builder
- All Implemented Interfaces:
WithJson<NodeStatistics.Builder>,ObjectBuilder<NodeStatistics>
- Enclosing class:
- NodeStatistics
public static class NodeStatistics.Builder
extends WithJsonObjectBuilderBase<NodeStatistics.Builder>
implements ObjectBuilder<NodeStatistics>
Builder for
NodeStatistics.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodeStatistics.final NodeStatistics.Builderfailed(int value) Required - Number of nodes that rejected the request or failed to respond.final NodeStatistics.Builderfailures(ErrorCause value, ErrorCause... values) API name:failuresfinal NodeStatistics.BuilderAPI name:failuresfinal NodeStatistics.Builderfailures(List<ErrorCause> list) API name:failuresprotected NodeStatistics.Builderself()final NodeStatistics.Buildersuccessful(int value) Required - Number of nodes that responded successfully to the request.final NodeStatistics.Buildertotal(int value) Required - Total number of nodes selected by the request.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failures
API name:failuresAdds all elements of
listtofailures. -
failures
API name:failuresAdds one or more values to
failures. -
failures
public final NodeStatistics.Builder failures(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:failuresAdds a value to
failuresusing a builder lambda. -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<NodeStatistics.Builder>
-
build
Builds aNodeStatistics.- Specified by:
buildin interfaceObjectBuilder<NodeStatistics>- Throws:
NullPointerException- if some of the required fields are null.
-