Class IndexHealthStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.health.IndexHealthStats.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexHealthStats>
- Enclosing class:
- IndexHealthStats
public static class IndexHealthStats.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexHealthStats>
Builder for
IndexHealthStats.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexHealthStats.BuilderactivePrimaryShards(int value)Required - API name:active_primary_shardsIndexHealthStats.BuilderactiveShards(int value)Required - API name:active_shardsIndexHealthStatsbuild()Builds aIndexHealthStats.IndexHealthStats.BuilderinitializingShards(int value)Required - API name:initializing_shardsIndexHealthStats.BuildernumberOfReplicas(int value)Required - API name:number_of_replicasIndexHealthStats.BuildernumberOfShards(int value)Required - API name:number_of_shardsIndexHealthStats.BuilderrelocatingShards(int value)Required - API name:relocating_shardsIndexHealthStats.Buildershards(java.lang.String key, ShardHealthStats value)API name:shardsIndexHealthStats.Buildershards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)API name:shardsIndexHealthStats.Buildershards(java.util.Map<java.lang.String,ShardHealthStats> map)API name:shardsIndexHealthStats.Builderstatus(HealthStatus value)Required - API name:statusIndexHealthStats.BuilderunassignedShards(int value)Required - API name:unassigned_shardsMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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 final IndexHealthStats.Builder shards(java.util.Map<java.lang.String,ShardHealthStats> map)API name:shardsAdds all entries of
maptoshards. -
shards
API name:shardsAdds an entry to
shards. -
shards
public final IndexHealthStats.Builder shards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)API name:shardsAdds an entry to
shardsusing a builder lambda. -
status
Required - API name:status -
unassignedShards
Required - API name:unassigned_shards -
build
Builds aIndexHealthStats.- Specified by:
buildin interfaceObjectBuilder<IndexHealthStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-