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
  • Field Details

  • Method Details

    • isIndex

      public boolean isIndex()
      Is this ResponseItemContainer of a index kind?
    • index

      public jakarta.json.JsonValue index()
      Get the index variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the index kind.
    • isCreate

      public boolean isCreate()
      Is this ResponseItemContainer of a create kind?
    • create

      public jakarta.json.JsonValue create()
      Get the create variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the create kind.
    • isUpdate

      public boolean isUpdate()
      Is this ResponseItemContainer of a update kind?
    • update

      public jakarta.json.JsonValue update()
      Get the update variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the update kind.
    • isDelete

      public boolean isDelete()
      Is this ResponseItemContainer of a delete kind?
    • delete

      public jakarta.json.JsonValue delete()
      Get the delete variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the delete kind.
    • toJsonp

      public void toJsonp​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      toJsonp in interface ToJsonp