Class IndexHealthStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.health.IndexHealthStats.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexHealthStats.Builder,,IndexHealthStats> MutableBuilder<IndexHealthStats.Builder,,IndexHealthStats> ObjectBuilder<IndexHealthStats>
- Enclosing class:
IndexHealthStats
public static class IndexHealthStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexHealthStats.Builder,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.copy()Create a new builderCopyableBuilderthat is a copy of this one.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_shardsfinal IndexHealthStats.BuilderAPI name:shardsfinal IndexHealthStats.Buildershards(String key, ShardHealthStats value) API 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 org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<IndexHealthStats.Builder,IndexHealthStats> - Returns:
- a new builder instance.
-
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 elements of
maptoshards. -
shards
API name:shardsAdds an entry to
shards. -
shards
@Nonnull public final IndexHealthStats.Builder shards(String key, Function<ShardHealthStats.Builder, ObjectBuilder<ShardHealthStats>> fn) API name:shardsAdds a value 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:
NullPointerException- if some of the required fields are null.
-