Class WriteResponseBase.AbstractBuilder<BuilderT extends WriteResponseBase.AbstractBuilder<BuilderT>>

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.WriteResponseBase.AbstractBuilder<BuilderT>
All Implemented Interfaces:
WithJson<BuilderT>
Direct Known Subclasses:
CreateResponse.Builder, DeleteResponse.Builder, IndexResponse.Builder, UpdateWriteResponseBase.AbstractBuilder
Enclosing class:
WriteResponseBase

public abstract static class WriteResponseBase.AbstractBuilder<BuilderT extends WriteResponseBase.AbstractBuilder<BuilderT>> extends WithJsonObjectBuilderBase<BuilderT>
  • Constructor Details

    • AbstractBuilder

      public AbstractBuilder()
  • Method Details

    • id

      public final BuilderT id(String value)
      Required - The unique identifier for the added document.

      API name: _id

    • index

      public final BuilderT index(String value)
      Required - The name of the index the document was added to.

      API name: _index

    • primaryTerm

      public final BuilderT primaryTerm(@Nullable Long value)
      The primary term assigned to the document for the indexing operation.

      API name: _primary_term

    • result

      public final BuilderT result(Result value)
      Required - The result of the indexing operation: created or updated.

      API name: result

    • seqNo

      public final BuilderT seqNo(@Nullable Long value)
      The sequence number assigned to the document for the indexing operation. Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version.

      API name: _seq_no

    • shards

      public final BuilderT shards(ShardStatistics value)
      Required - Information about the replication process of the operation.

      API name: _shards

    • shards

      Required - Information about the replication process of the operation.

      API name: _shards

    • version

      public final BuilderT version(long value)
      Required - The document version, which is incremented each time the document is updated.

      API name: _version

    • forcedRefresh

      public final BuilderT forcedRefresh(@Nullable Boolean value)
      API name: forced_refresh
    • self

      protected abstract BuilderT self()
      Specified by:
      self in class WithJsonObjectBuilderBase<BuilderT extends WriteResponseBase.AbstractBuilder<BuilderT>>