Class IndexHealthStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.health.IndexHealthStats.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexHealthStats>
- Enclosing class:
- IndexHealthStats
public static class IndexHealthStats.Builder extends java.lang.Object implements ObjectBuilder<IndexHealthStats>
Builder for
IndexHealthStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndexHealthStats.Builder
activePrimaryShards(int value)
Required - API name:active_primary_shards
IndexHealthStats.Builder
activeShards(int value)
Required - API name:active_shards
IndexHealthStats
build()
Builds aIndexHealthStats
.IndexHealthStats.Builder
initializingShards(int value)
Required - API name:initializing_shards
IndexHealthStats.Builder
numberOfReplicas(int value)
Required - API name:number_of_replicas
IndexHealthStats.Builder
numberOfShards(int value)
Required - API name:number_of_shards
IndexHealthStats.Builder
putShards(java.lang.String key, ShardHealthStats value)
Add a key/value toshards(Map)
, creating the map if needed.IndexHealthStats.Builder
putShards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)
Add a key/value toshards(Map)
, creating the map if needed.IndexHealthStats.Builder
relocatingShards(int value)
Required - API name:relocating_shards
IndexHealthStats.Builder
shards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)
Setshards(Map)
to a singleton map.IndexHealthStats.Builder
shards(java.util.Map<java.lang.String,ShardHealthStats> value)
API name:shards
IndexHealthStats.Builder
status(Health value)
Required - API name:status
IndexHealthStats.Builder
unassignedShards(int value)
Required - API name:unassigned_shards
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
-
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
public IndexHealthStats.Builder shards(@Nullable java.util.Map<java.lang.String,ShardHealthStats> value)API name:shards
-
putShards
Add a key/value toshards(Map)
, creating the map if needed. -
shards
public IndexHealthStats.Builder shards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)Setshards(Map)
to a singleton map. -
putShards
public IndexHealthStats.Builder putShards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)Add a key/value toshards(Map)
, creating the map if needed. -
status
Required - API name:status
-
unassignedShards
Required - API name:unassigned_shards
-
build
Builds aIndexHealthStats
.- Specified by:
build
in interfaceObjectBuilder<IndexHealthStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-