Class GetResult.AbstractBuilder<TDocument,BuilderT extends GetResult.AbstractBuilder<TDocument,BuilderT>>

java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.get.GetResult.AbstractBuilder<TDocument,BuilderT>
Direct Known Subclasses:
GetResponse.Builder, GetResult.Builder
Enclosing class:
GetResult<TDocument>

public abstract static class GetResult.AbstractBuilder<TDocument,BuilderT extends GetResult.AbstractBuilder<TDocument,BuilderT>> extends ObjectBuilderBase
  • Constructor Details

    • AbstractBuilder

      public AbstractBuilder()
  • Method Details

    • index

      public final BuilderT index(String value)
      Required - API name: _index
    • fields

      public final BuilderT fields(Map<String,JsonData> map)
      API name: fields

      Adds all entries of map to fields.

    • fields

      public final BuilderT fields(String key, JsonData value)
      API name: fields

      Adds an entry to fields.

    • found

      public final BuilderT found(boolean value)
      Required - API name: found
    • id

      public final BuilderT id(String value)
      Required - API name: _id
    • primaryTerm

      public final BuilderT primaryTerm(@Nullable Long value)
      API name: _primary_term
    • routing

      public final BuilderT routing(@Nullable String value)
      API name: _routing
    • seqNo

      public final BuilderT seqNo(@Nullable Long value)
      API name: _seq_no
    • source

      public final BuilderT source(@Nullable TDocument value)
      API name: _source
    • version

      public final BuilderT version(@Nullable Long value)
      API name: _version
    • tDocumentSerializer

      public final BuilderT tDocumentSerializer(@Nullable JsonpSerializer<TDocument> value)
      Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context.
    • self

      protected abstract BuilderT self()