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

Direct Known Subclasses:
GetResponse.Builder, GetResult.Builder
Enclosing class:

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

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • index

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

      public final BuilderT fields​(java.util.Map<java.lang.String,​JsonData> map)
      API name: fields

      Adds all entries of map to fields.

    • fields

      public final BuilderT fields​(java.lang.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​(java.lang.String value)
      Required - API name: _id
    • primaryTerm

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

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

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

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

      @Deprecated public final BuilderT type​(@Nullable java.lang.String value)
      API name: _type
    • version

      public final BuilderT version​(@Nullable java.lang.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()