Class IndexHealthStats.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexHealthStats.BuilderactivePrimaryShards(java.lang.Number value)API name:active_primary_shardsIndexHealthStats.BuilderactiveShards(java.lang.Number value)API name:active_shardsIndexHealthStatsbuild()Builds aIndexHealthStats.IndexHealthStats.BuilderinitializingShards(java.lang.Number value)API name:initializing_shardsIndexHealthStats.BuildernumberOfReplicas(java.lang.Number value)API name:number_of_replicasIndexHealthStats.BuildernumberOfShards(java.lang.Number value)API name:number_of_shardsIndexHealthStats.BuilderputShards(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.BuilderputShards(java.lang.String key, ShardHealthStats value)Add a key/value toshards(Map), creating the map if needed.IndexHealthStats.BuilderrelocatingShards(java.lang.Number value)API name:relocating_shardsIndexHealthStats.Buildershards(java.lang.String key, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)Setshards(Map)to a singleton map.IndexHealthStats.Buildershards(java.util.Map<java.lang.String,ShardHealthStats> value)API name:shardsIndexHealthStats.Builderstatus(jakarta.json.JsonValue value)API name:statusIndexHealthStats.BuilderunassignedShards(java.lang.Number value)API name:unassigned_shards
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
activePrimaryShards
API name:active_primary_shards -
activeShards
API name:active_shards -
initializingShards
API name:initializing_shards -
numberOfReplicas
API name:number_of_replicas -
numberOfShards
API name:number_of_shards -
relocatingShards
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
API name:status -
unassignedShards
API name:unassigned_shards -
build
Builds aIndexHealthStats.- Specified by:
buildin interfaceObjectBuilder<IndexHealthStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-