Class HitsSequence.Builder<TEvent>
java.lang.Object
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 java.lang.Object implements ObjectBuilder<HitsSequence<TEvent>>
Builder for
HitsSequence.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HitsSequence.Builder<TEvent>addEvents(HitsEvent<TEvent> value)Add a value toevents(List), creating the list if needed.HitsSequence.Builder<TEvent>addEvents(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> fn)Add a value toevents(List), creating the list if needed.HitsSequence.Builder<TEvent>addJoinKeys(JsonData value)Add a value tojoinKeys(List), creating the list if needed.HitsSequence<TEvent>build()Builds aHitsSequence.HitsSequence.Builder<TEvent>events(HitsEvent<TEvent>... value)Required - Contains events matching the query.HitsSequence.Builder<TEvent>events(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> fn)Setevents(List)to a singleton list.HitsSequence.Builder<TEvent>events(java.util.List<HitsEvent<TEvent>> value)Required - Contains events matching the query.HitsSequence.Builder<TEvent>joinKeys(JsonData... value)Required - Shared field values used to constrain matches in the sequence.HitsSequence.Builder<TEvent>joinKeys(java.util.List<JsonData> value)Required - Shared field values used to constrain matches in the sequence.HitsSequence.Builder<TEvent>tEventSerializer(JsonpSerializer<TEvent> value)Serializer for TEvent.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
events
Required - Contains events matching the query. Each object represents a matching event.API name:
events -
events
Required - Contains events matching the query. Each object represents a matching event.API name:
events -
addEvents
Add a value toevents(List), creating the list if needed. -
events
public HitsSequence.Builder<TEvent> events(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> fn)Setevents(List)to a singleton list. -
addEvents
public HitsSequence.Builder<TEvent> addEvents(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> fn)Add a value toevents(List), creating the list if needed. -
joinKeys
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 -
joinKeys
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 -
addJoinKeys
Add a value tojoinKeys(List), creating the list if needed. -
tEventSerializer
Serializer for TEvent. If not set, an attempt will be made to find a serializer from the JSON context. -
build
Builds aHitsSequence.- Specified by:
buildin interfaceObjectBuilder<TEvent>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-