Class HitsSequence.Builder<TEvent>

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.eql.HitsSequence.Builder<TEvent>
All Implemented Interfaces:
ObjectBuilder<HitsSequence<TEvent>>
Enclosing class:
HitsSequence<TEvent>

public static class HitsSequence.Builder<TEvent>
extends ObjectBuilderBase
implements ObjectBuilder<HitsSequence<TEvent>>
Builder for HitsSequence.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • events

      public final HitsSequence.Builder<TEvent> events​(java.util.List<HitsEvent<TEvent>> list)
      Required - Contains events matching the query. Each object represents a matching event.

      API name: events

      Adds all elements of list to events.

    • events

      public final HitsSequence.Builder<TEvent> events​(HitsEvent<TEvent> value, HitsEvent<TEvent>... values)
      Required - Contains events matching the query. Each object represents a matching event.

      API name: events

      Adds one or more values to events.

    • events

      public final HitsSequence.Builder<TEvent> events​(java.util.function.Function<HitsEvent.Builder<TEvent>,​ObjectBuilder<HitsEvent<TEvent>>> fn)
      Required - Contains events matching the query. Each object represents a matching event.

      API name: events

      Adds a value to events using a builder lambda.

    • joinKeys

      public final HitsSequence.Builder<TEvent> joinKeys​(java.util.List<JsonData> list)
      Required - Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax.

      API name: join_keys

      Adds all elements of list to joinKeys.

    • joinKeys

      public final HitsSequence.Builder<TEvent> joinKeys​(JsonData value, JsonData... values)
      Required - Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax.

      API name: join_keys

      Adds one or more values to joinKeys.

    • tEventSerializer

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

      public HitsSequence<TEvent> build()
      Builds a HitsSequence.
      Specified by:
      build in interface ObjectBuilder<TEvent>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.