Class HitsSequence.Builder<TEvent>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HitsSequence.Builder<TEvent>>
co.elastic.clients.elasticsearch.eql.HitsSequence.Builder<TEvent>
- All Implemented Interfaces:
WithJson<HitsSequence.Builder<TEvent>>
,ObjectBuilder<HitsSequence<TEvent>>
- Enclosing class:
- HitsSequence<TEvent>
public static class HitsSequence.Builder<TEvent>
extends WithJsonObjectBuilderBase<HitsSequence.Builder<TEvent>>
implements ObjectBuilder<HitsSequence<TEvent>>
Builder for
HitsSequence
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHitsSequence
.final HitsSequence.Builder<TEvent>
Required - Contains events matching the query.final HitsSequence.Builder<TEvent>
Required - Contains events matching the query.final HitsSequence.Builder<TEvent>
Required - Contains events matching the query.final HitsSequence.Builder<TEvent>
Required - Shared field values used to constrain matches in the sequence.final HitsSequence.Builder<TEvent>
Required - Shared field values used to constrain matches in the sequence.protected HitsSequence.Builder<TEvent>
self()
final HitsSequence.Builder<TEvent>
tEventSerializer
(JsonpSerializer<TEvent> value) Serializer for TEvent.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
events
Required - Contains events matching the query. Each object represents a matching event.API name:
events
Adds all elements of
list
toevents
. -
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(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
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
tojoinKeys
. -
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
Adds one or more values to
joinKeys
. -
tEventSerializer
Serializer for TEvent. If not set, an attempt will be made to find a serializer from the JSON context. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HitsSequence.Builder<TEvent>>
-
build
Builds aHitsSequence
.- Specified by:
build
in interfaceObjectBuilder<TEvent>
- Throws:
NullPointerException
- if some of the required fields are null.
-