Class ResponseItem
java.lang.Object
co.elastic.clients.elasticsearch._core.bulk.ResponseItem
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class ResponseItem extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResponseItem.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ResponseItem>
_DESERIALIZER
static java.lang.String
CREATE
static java.lang.String
DELETE
static java.lang.String
INDEX
static java.lang.String
UPDATE
-
Constructor Summary
Constructors Constructor Description ResponseItem(ResponseItemVariant value)
ResponseItem(ObjectBuilder<T> builder)
ResponseItem(java.util.function.Function<ResponseItem.Builder,ResponseItem.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.CreateResponseItem
create()
Get thecreate
variant value.DeleteResponseItem
delete()
Get thedelete
variant value.IndexResponseItem
index()
Get theindex
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupResponseItemDeserializer(DelegatingDeserializer<ResponseItem.Builder> op)
UpdateResponseItem
update()
Get theupdate
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
INDEX
public static final java.lang.String INDEX- See Also:
- Constant Field Values
-
CREATE
public static final java.lang.String CREATE- See Also:
- Constant Field Values
-
UPDATE
public static final java.lang.String UPDATE- See Also:
- Constant Field Values
-
DELETE
public static final java.lang.String DELETE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
ResponseItem
-
ResponseItem
-
ResponseItem
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
index
Get theindex
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theindex
kind.
-
create
Get thecreate
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecreate
kind.
-
update
Get theupdate
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theupdate
kind.
-
delete
Get thedelete
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedelete
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupResponseItemDeserializer
protected static void setupResponseItemDeserializer(DelegatingDeserializer<ResponseItem.Builder> op)
-