Class SegmentsResponse
java.lang.Object
org.opensearch.client.opensearch.indices.SegmentsResponse
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SegmentsResponse.Builder,SegmentsResponse>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SegmentsResponse
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<SegmentsResponse.Builder,SegmentsResponse>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SegmentsResponse> Json deserializer forSegmentsResponse -
Method Summary
Modifier and TypeMethodDescriptionstatic SegmentsResponse.Builderbuilder()booleaninthashCode()final Map<String, IndexSegment> indices()Required - API name:indicesstatic SegmentsResponsevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal ShardStatisticsshards()Required - API name:_shardsCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods 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 forSegmentsResponse
-
-
Method Details
-
of
public static SegmentsResponse of(Function<SegmentsResponse.Builder, ObjectBuilder<SegmentsResponse>> fn) -
indices
Required - API name:indices -
shards
Required - API name:_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<SegmentsResponse.Builder,SegmentsResponse> - Returns:
- a new builder instance.
-
builder
-
setupSegmentsResponseDeserializer
protected static void setupSegmentsResponseDeserializer(ObjectDeserializer<SegmentsResponse.Builder> op) -
hashCode
public int hashCode() -
equals
-