Class EqlHits.Builder<TEvent>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<EqlHits.Builder<TEvent>>
co.elastic.clients.elasticsearch.eql.EqlHits.Builder<TEvent>
- All Implemented Interfaces:
WithJson<EqlHits.Builder<TEvent>>,ObjectBuilder<EqlHits<TEvent>>
public static class EqlHits.Builder<TEvent>
extends WithJsonObjectBuilderBase<EqlHits.Builder<TEvent>>
implements ObjectBuilder<EqlHits<TEvent>>
Builder for
EqlHits.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aEqlHits.final EqlHits.Builder<TEvent>Contains events matching the query.final EqlHits.Builder<TEvent>Contains events matching the query.final EqlHits.Builder<TEvent>Contains events matching the query.protected EqlHits.Builder<TEvent>self()final EqlHits.Builder<TEvent>sequences(HitsSequence<TEvent> value, HitsSequence<TEvent>... values) Contains event sequences matching the query.final EqlHits.Builder<TEvent>Contains event sequences matching the query.final EqlHits.Builder<TEvent>sequences(List<HitsSequence<TEvent>> list) Contains event sequences matching the query.final EqlHits.Builder<TEvent>tEventSerializer(JsonpSerializer<TEvent> value) Serializer for TEvent.final EqlHits.Builder<TEvent>Metadata about the number of matching events or sequences.final EqlHits.Builder<TEvent>Metadata about the number of matching events or sequences.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Metadata about the number of matching events or sequences.API name:
total -
total
Metadata about the number of matching events or sequences.API name:
total -
events
Contains events matching the query. Each object represents a matching event.API name:
eventsAdds all elements of
listtoevents. -
events
Contains events matching the query. Each object represents a matching event.API name:
eventsAdds one or more values to
events. -
events
public final EqlHits.Builder<TEvent> events(Function<HitsEvent.Builder<TEvent>, ObjectBuilder<HitsEvent<TEvent>>> fn) Contains events matching the query. Each object represents a matching event.API name:
eventsAdds a value to
eventsusing a builder lambda. -
sequences
Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence.API name:
sequencesAdds all elements of
listtosequences. -
sequences
public final EqlHits.Builder<TEvent> sequences(HitsSequence<TEvent> value, HitsSequence<TEvent>... values) Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence.API name:
sequencesAdds one or more values to
sequences. -
sequences
public final EqlHits.Builder<TEvent> sequences(Function<HitsSequence.Builder<TEvent>, ObjectBuilder<HitsSequence<TEvent>>> fn) Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence.API name:
sequencesAdds a value to
sequencesusing a builder lambda. -
tEventSerializer
Serializer for TEvent. If not set, an attempt will be made to find a serializer from the JSON context. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<EqlHits.Builder<TEvent>>
-
build
Builds aEqlHits.- Specified by:
buildin interfaceObjectBuilder<TEvent>- Throws:
NullPointerException- if some of the required fields are null.
-