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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IndexHealthStats.BuilderactivePrimaryShards(int value) Required - API name:active_primary_shardsfinal IndexHealthStats.BuilderactiveShards(int value) Required - API name:active_shardsbuild()Builds aIndexHealthStats.final IndexHealthStats.BuilderinitializingShards(int value) Required - API name:initializing_shardsfinal IndexHealthStats.BuildernumberOfReplicas(int value) Required - API name:number_of_replicasfinal IndexHealthStats.BuildernumberOfShards(int value) Required - API name:number_of_shardsfinal IndexHealthStats.BuilderrelocatingShards(int value) Required - API name:relocating_shardsprotected IndexHealthStats.Builderself()final IndexHealthStats.Buildershards(String key, ShardHealthStats value) API name:shardsfinal IndexHealthStats.BuilderAPI name:shardsfinal IndexHealthStats.Buildershards(Map<String, ShardHealthStats> map) API name:shardsfinal IndexHealthStats.Builderstatus(HealthStatus value) Required - API name:statusfinal IndexHealthStats.BuilderunassignedShards(int value) Required - API name:unassigned_shardsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:shardsAdds all entries of
maptoshards. -
shards
API name:shardsAdds an entry to
shards. -
shards
public final IndexHealthStats.Builder shards(String key, 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexHealthStats.Builder>
-
build
Builds aIndexHealthStats.- Specified by:
buildin interfaceObjectBuilder<IndexHealthStats>- Throws:
NullPointerException- if some of the required fields are null.
-