Class EqlSearchResponseBase.AbstractBuilder<TEvent,​BuilderT extends EqlSearchResponseBase.AbstractBuilder<TEvent,​BuilderT>>

java.lang.Object
co.elastic.clients.elasticsearch.eql.EqlSearchResponseBase.AbstractBuilder<TEvent,​BuilderT>
Direct Known Subclasses:
GetResponse.Builder, SearchResponse.Builder
Enclosing class:
EqlSearchResponseBase<TEvent>

protected abstract static class EqlSearchResponseBase.AbstractBuilder<TEvent,​BuilderT extends EqlSearchResponseBase.AbstractBuilder<TEvent,​BuilderT>>
extends java.lang.Object
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected AbstractBuilder()  
  • Method Summary

    Modifier and Type Method Description
    BuilderT hits​(EqlHits<TEvent> value)
    Required - Contains matching events and sequences.
    BuilderT hits​(java.util.function.Function<EqlHits.Builder<TEvent>,​ObjectBuilder<EqlHits<TEvent>>> fn)
    Required - Contains matching events and sequences.
    BuilderT id​(java.lang.String value)
    Identifier for the search.
    BuilderT isPartial​(java.lang.Boolean value)
    If true, the response does not contain complete search results.
    BuilderT isRunning​(java.lang.Boolean value)
    If true, the search request is still executing.
    protected abstract BuilderT self()  
    BuilderT tEventSerializer​(JsonpSerializer<TEvent> value)
    Serializer for TEvent.
    BuilderT timedOut​(java.lang.Boolean value)
    If true, the request timed out before completion.
    BuilderT took​(java.lang.Integer value)
    Milliseconds it took Elasticsearch to execute the request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • id

      public BuilderT id​(@Nullable java.lang.String value)
      Identifier for the search.

      API name: id

    • isPartial

      public BuilderT isPartial​(@Nullable java.lang.Boolean value)
      If true, the response does not contain complete search results.

      API name: is_partial

    • isRunning

      public BuilderT isRunning​(@Nullable java.lang.Boolean value)
      If true, the search request is still executing.

      API name: is_running

    • took

      public BuilderT took​(@Nullable java.lang.Integer value)
      Milliseconds it took Elasticsearch to execute the request.

      API name: took

    • timedOut

      public BuilderT timedOut​(@Nullable java.lang.Boolean value)
      If true, the request timed out before completion.

      API name: timed_out

    • hits

      public BuilderT hits​(EqlHits<TEvent> value)
      Required - Contains matching events and sequences. Also contains related metadata.

      API name: hits

    • hits

      public BuilderT hits​(java.util.function.Function<EqlHits.Builder<TEvent>,​ObjectBuilder<EqlHits<TEvent>>> fn)
      Required - Contains matching events and sequences. Also contains related metadata.

      API name: hits

    • tEventSerializer

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

      protected abstract BuilderT self()