Class IndexHealthStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexHealthStats.Builder>
co.elastic.clients.elasticsearch.cluster.health.IndexHealthStats.Builder
- All Implemented Interfaces:
WithJson<IndexHealthStats.Builder>
,ObjectBuilder<IndexHealthStats>
- Enclosing class:
- IndexHealthStats
public static class IndexHealthStats.Builder
extends WithJsonObjectBuilderBase<IndexHealthStats.Builder>
implements ObjectBuilder<IndexHealthStats>
Builder for
IndexHealthStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal IndexHealthStats.Builder
activePrimaryShards
(int value) Required - API name:active_primary_shards
final IndexHealthStats.Builder
activeShards
(int value) Required - API name:active_shards
build()
Builds aIndexHealthStats
.final IndexHealthStats.Builder
initializingShards
(int value) Required - API name:initializing_shards
final IndexHealthStats.Builder
numberOfReplicas
(int value) Required - API name:number_of_replicas
final IndexHealthStats.Builder
numberOfShards
(int value) Required - API name:number_of_shards
final IndexHealthStats.Builder
relocatingShards
(int value) Required - API name:relocating_shards
protected IndexHealthStats.Builder
self()
final IndexHealthStats.Builder
shards
(String key, ShardHealthStats value) API name:shards
final IndexHealthStats.Builder
API name:shards
final IndexHealthStats.Builder
shards
(Map<String, ShardHealthStats> map) API name:shards
final IndexHealthStats.Builder
status
(HealthStatus value) Required - API name:status
final IndexHealthStats.Builder
unassignedShards
(int value) Required - API name:unassigned_shards
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
-
activePrimaryShards
Required - API name:active_primary_shards
-
activeShards
Required - API name:active_shards
-
initializingShards
Required - API name:initializing_shards
-
numberOfReplicas
Required - API name:number_of_replicas
-
numberOfShards
Required - API name:number_of_shards
-
relocatingShards
Required - API name:relocating_shards
-
shards
API name:shards
Adds all entries of
map
toshards
. -
shards
API name:shards
Adds an entry to
shards
. -
shards
public final IndexHealthStats.Builder shards(String key, Function<ShardHealthStats.Builder, ObjectBuilder<ShardHealthStats>> fn) API name:shards
Adds an entry to
shards
using a builder lambda. -
status
Required - API name:status
-
unassignedShards
Required - API name:unassigned_shards
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndexHealthStats.Builder>
-
build
Builds aIndexHealthStats
.- Specified by:
build
in interfaceObjectBuilder<IndexHealthStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-