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 classResponseItem.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ResponseItem>_DESERIALIZERstatic java.lang.StringCREATEstatic java.lang.StringDELETEstatic java.lang.StringINDEXstatic java.lang.StringUPDATE -
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.CreateResponseItemcreate()Get thecreatevariant value.DeleteResponseItemdelete()Get thedeletevariant value.IndexResponseItemindex()Get theindexvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupResponseItemDeserializer(DelegatingDeserializer<ResponseItem.Builder> op)UpdateResponseItemupdate()Get theupdatevariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
index
Get theindexvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theindexkind.
-
create
Get thecreatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecreatekind.
-
update
Get theupdatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theupdatekind.
-
delete
Get thedeletevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedeletekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupResponseItemDeserializer
protected static void setupResponseItemDeserializer(DelegatingDeserializer<ResponseItem.Builder> op)
-