Class SearchShardsResponse
- java.lang.Object
-
- org.opensearch.client.opensearch.core.SearchShardsResponse
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SearchShardsResponse.Builder,SearchShardsResponse>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class SearchShardsResponse extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<SearchShardsResponse.Builder,SearchShardsResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchShardsResponse.BuilderBuilder forSearchShardsResponse.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SearchShardsResponse>_DESERIALIZERJson deserializer forSearchShardsResponse
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchShardsResponse.Builderbuilder()booleanequals(java.lang.Object o)inthashCode()java.util.Map<java.lang.String,ShardStoreIndex>indices()Required - API name:indicesjava.util.Map<java.lang.String,NodeAttributes>nodes()Required - API name:nodesstatic SearchShardsResponseof(java.util.function.Function<SearchShardsResponse.Builder,ObjectBuilder<SearchShardsResponse>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSearchShardsResponseDeserializer(ObjectDeserializer<SearchShardsResponse.Builder> op)java.util.List<java.util.List<NodeShard>>shards()Required - API name:shardsSearchShardsResponse.BuildertoBuilder()Create 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, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<SearchShardsResponse> _DESERIALIZER
Json deserializer forSearchShardsResponse
-
-
Method Detail
-
of
public static SearchShardsResponse of(java.util.function.Function<SearchShardsResponse.Builder,ObjectBuilder<SearchShardsResponse>> fn)
-
indices
@Nonnull public final java.util.Map<java.lang.String,ShardStoreIndex> indices()
Required - API name:indices
-
nodes
@Nonnull public final java.util.Map<java.lang.String,NodeAttributes> nodes()
Required - API name:nodes
-
shards
@Nonnull public final java.util.List<java.util.List<NodeShard>> shards()
Required - API name:shards
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public SearchShardsResponse.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchShardsResponse.Builder,SearchShardsResponse>- Returns:
- a new builder instance.
-
builder
@Nonnull public static SearchShardsResponse.Builder builder()
-
setupSearchShardsResponseDeserializer
protected static void setupSearchShardsResponseDeserializer(ObjectDeserializer<SearchShardsResponse.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-