Class RequestItem
- java.lang.Object
-
- org.opensearch.client.opensearch.core.msearch.RequestItem
-
- All Implemented Interfaces:
JsonpSerializable
,NdJsonpSerializable
public class RequestItem extends java.lang.Object implements NdJsonpSerializable, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestItem.Builder
Builder forRequestItem
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<?>
_serializables()
MultisearchBody
body()
Required - API name:body
MultisearchHeader
header()
Required - API name:header
static RequestItem
of(java.util.function.Function<RequestItem.Builder,ObjectBuilder<RequestItem>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
-
-
Method Detail
-
of
public static RequestItem of(java.util.function.Function<RequestItem.Builder,ObjectBuilder<RequestItem>> fn)
-
_serializables
public java.util.Iterator<?> _serializables()
- Specified by:
_serializables
in interfaceNdJsonpSerializable
-
header
public final MultisearchHeader header()
Required - API name:header
-
body
public final MultisearchBody body()
Required - API name:body
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
-