Class IndexHealthStats
java.lang.Object
org.opensearch.client.opensearch.cluster.health.IndexHealthStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<IndexHealthStats.Builder,IndexHealthStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IndexHealthStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<IndexHealthStats.Builder,IndexHealthStats>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IndexHealthStats> Json deserializer forIndexHealthStats -
Method Summary
Modifier and TypeMethodDescriptionfinal intRequired - API name:active_primary_shardsfinal intRequired - API name:active_shardsstatic IndexHealthStats.Builderbuilder()booleaninthashCode()final intRequired - API name:initializing_shardsfinal intRequired - API name:number_of_replicasfinal intRequired - API name:number_of_shardsstatic IndexHealthStatsfinal intRequired - API name:relocating_shardsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Map<String, ShardHealthStats> shards()API name:shardsfinal HealthStatusstatus()Required - API name:statusCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final intRequired - API name:unassigned_shardsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forIndexHealthStats
-
-
Method Details
-
of
public static IndexHealthStats of(Function<IndexHealthStats.Builder, ObjectBuilder<IndexHealthStats>> fn) -
activePrimaryShards
public final int activePrimaryShards()Required - API name:active_primary_shards -
activeShards
public final int activeShards()Required - API name:active_shards -
initializingShards
public final int initializingShards()Required - API name:initializing_shards -
numberOfReplicas
public final int numberOfReplicas()Required - API name:number_of_replicas -
numberOfShards
public final int numberOfShards()Required - API name:number_of_shards -
relocatingShards
public final int relocatingShards()Required - API name:relocating_shards -
shards
API name:shards -
status
Required - API name:status -
unassignedShards
public final int unassignedShards()Required - API name:unassigned_shards -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<IndexHealthStats.Builder,IndexHealthStats> - Returns:
- a new builder instance.
-
builder
-
setupIndexHealthStatsDeserializer
protected static void setupIndexHealthStatsDeserializer(ObjectDeserializer<IndexHealthStats.Builder> op) -
hashCode
public int hashCode() -
equals
-