Class ResponseItemContainer
java.lang.Object
org.opensearch.client.util.TaggedUnion<ResponseItemContainer.Tag,java.lang.Object>
org.opensearch.client.opensearch._global.bulk.ResponseItemContainer
- All Implemented Interfaces:
ToJsonp
public class ResponseItemContainer extends TaggedUnion<ResponseItemContainer.Tag,java.lang.Object> implements ToJsonp
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponseItemContainer.Builderstatic classResponseItemContainer.Tag -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ResponseItemContainer>DESERIALIZER -
Method Summary
Modifier and Type Method Description jakarta.json.JsonValuecreate()Get thecreatevariant value.jakarta.json.JsonValuedelete()Get thedeletevariant value.jakarta.json.JsonValueindex()Get theindexvariant value.booleanisCreate()Is thisResponseItemContainerof acreatekind?booleanisDelete()Is thisResponseItemContainerof adeletekind?booleanisIndex()Is thisResponseItemContainerof aindexkind?booleanisUpdate()Is thisResponseItemContainerof aupdatekind?voidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)jakarta.json.JsonValueupdate()Get theupdatevariant value.
-
Field Details
-
Method Details
-
isIndex
public boolean isIndex()Is thisResponseItemContainerof aindexkind? -
index
public jakarta.json.JsonValue index()Get theindexvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theindexkind.
-
isCreate
public boolean isCreate()Is thisResponseItemContainerof acreatekind? -
create
public jakarta.json.JsonValue create()Get thecreatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecreatekind.
-
isUpdate
public boolean isUpdate()Is thisResponseItemContainerof aupdatekind? -
update
public jakarta.json.JsonValue update()Get theupdatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theupdatekind.
-
isDelete
public boolean isDelete()Is thisResponseItemContainerof adeletekind? -
delete
public jakarta.json.JsonValue delete()Get thedeletevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedeletekind.
-
toJsonp
-