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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description EqlHits<TEvent>build()Builds aEqlHits.EqlHits.Builder<TEvent>events(HitsEvent<TEvent> value, HitsEvent<TEvent>... values)Contains events matching the query.EqlHits.Builder<TEvent>events(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> fn)Contains events matching the query.EqlHits.Builder<TEvent>events(java.util.List<HitsEvent<TEvent>> list)Contains events matching the query.protected EqlHits.Builder<TEvent>self()EqlHits.Builder<TEvent>sequences(HitsSequence<TEvent> value, HitsSequence<TEvent>... values)Contains event sequences matching the query.EqlHits.Builder<TEvent>sequences(java.util.function.Function<HitsSequence.Builder<TEvent>,ObjectBuilder<HitsSequence<TEvent>>> fn)Contains event sequences matching the query.EqlHits.Builder<TEvent>sequences(java.util.List<HitsSequence<TEvent>> list)Contains event sequences matching the query.EqlHits.Builder<TEvent>tEventSerializer(JsonpSerializer<TEvent> value)Serializer for TEvent.EqlHits.Builder<TEvent>total(TotalHits value)Metadata about the number of matching events or sequences.EqlHits.Builder<TEvent>total(java.util.function.Function<TotalHits.Builder,ObjectBuilder<TotalHits>> fn)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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Metadata about the number of matching events or sequences.API name:
total -
total
public final EqlHits.Builder<TEvent> total(java.util.function.Function<TotalHits.Builder,ObjectBuilder<TotalHits>> fn)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(java.util.function.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(java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-