Class ClusterStatistics.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterStatistics.Builder>
co.elastic.clients.elasticsearch._types.ClusterStatistics.Builder
- All Implemented Interfaces:
WithJson<ClusterStatistics.Builder>
,ObjectBuilder<ClusterStatistics>
- Enclosing class:
- ClusterStatistics
public static class ClusterStatistics.Builder
extends WithJsonObjectBuilderBase<ClusterStatistics.Builder>
implements ObjectBuilder<ClusterStatistics>
Builder for
ClusterStatistics
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aClusterStatistics
.details
(String key, ClusterDetails value) API name:details
API name:details
details
(Map<String, ClusterDetails> map) API name:details
protected ClusterStatistics.Builder
self()
skipped
(int value) Required - API name:skipped
successful
(int value) Required - API name:successful
total
(int value) Required - API name:total
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
skipped
Required - API name:skipped
-
successful
Required - API name:successful
-
total
Required - API name:total
-
details
API name:details
Adds all entries of
map
todetails
. -
details
API name:details
Adds an entry to
details
. -
details
public final ClusterStatistics.Builder details(String key, Function<ClusterDetails.Builder, ObjectBuilder<ClusterDetails>> fn) API name:details
Adds an entry to
details
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClusterStatistics.Builder>
-
build
Builds aClusterStatistics
.- Specified by:
build
in interfaceObjectBuilder<ClusterStatistics>
- Throws:
NullPointerException
- if some of the required fields are null.
-