Class IndexHealthStats.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.health.IndexHealthStats.Builder
-
- All Implemented Interfaces:
ObjectBuilder<IndexHealthStats>
- Enclosing class:
- IndexHealthStats
public static class IndexHealthStats.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexHealthStats>
Builder forIndexHealthStats.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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, java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)API name:shardsIndexHealthStats.Buildershards(java.lang.String key, ShardHealthStats value)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_shards-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
activePrimaryShards
public final IndexHealthStats.Builder activePrimaryShards(int value)
Required - API name:active_primary_shards
-
activeShards
public final IndexHealthStats.Builder activeShards(int value)
Required - API name:active_shards
-
initializingShards
public final IndexHealthStats.Builder initializingShards(int value)
Required - API name:initializing_shards
-
numberOfReplicas
public final IndexHealthStats.Builder numberOfReplicas(int value)
Required - API name:number_of_replicas
-
numberOfShards
public final IndexHealthStats.Builder numberOfShards(int value)
Required - API name:number_of_shards
-
relocatingShards
public final IndexHealthStats.Builder relocatingShards(int value)
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
public final IndexHealthStats.Builder shards(java.lang.String key, ShardHealthStats value)
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
public final IndexHealthStats.Builder status(HealthStatus value)
Required - API name:status
-
unassignedShards
public final IndexHealthStats.Builder unassignedShards(int value)
Required - API name:unassigned_shards
-
build
public IndexHealthStats build()
Builds aIndexHealthStats.- Specified by:
buildin interfaceObjectBuilder<IndexHealthStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-