Class ClusterShardMetrics.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterShardMetrics.Builder>
co.elastic.clients.elasticsearch.cluster.stats.ClusterShardMetrics.Builder
- All Implemented Interfaces:
WithJson<ClusterShardMetrics.Builder>
,ObjectBuilder<ClusterShardMetrics>
- Enclosing class:
- ClusterShardMetrics
public static class ClusterShardMetrics.Builder
extends WithJsonObjectBuilderBase<ClusterShardMetrics.Builder>
implements ObjectBuilder<ClusterShardMetrics>
Builder for
ClusterShardMetrics
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionavg
(double value) Required - Mean number of shards in an index, counting only shards assigned to selected nodes.build()
Builds aClusterShardMetrics
.max
(double value) Required - Maximum number of shards in an index, counting only shards assigned to selected nodes.min
(double value) Required - Minimum number of shards in an index, counting only shards assigned to selected nodes.protected ClusterShardMetrics.Builder
self()
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
-
avg
Required - Mean number of shards in an index, counting only shards assigned to selected nodes.API name:
avg
-
max
Required - Maximum number of shards in an index, counting only shards assigned to selected nodes.API name:
max
-
min
Required - Minimum number of shards in an index, counting only shards assigned to selected nodes.API name:
min
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClusterShardMetrics.Builder>
-
build
Builds aClusterShardMetrics
.- Specified by:
build
in interfaceObjectBuilder<ClusterShardMetrics>
- Throws:
NullPointerException
- if some of the required fields are null.
-