Class HitsEvent.Builder<TEvent>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HitsEvent.Builder<TEvent>>
co.elastic.clients.elasticsearch.eql.HitsEvent.Builder<TEvent>
- All Implemented Interfaces:
WithJson<HitsEvent.Builder<TEvent>>,ObjectBuilder<HitsEvent<TEvent>>
public static class HitsEvent.Builder<TEvent>
extends WithJsonObjectBuilderBase<HitsEvent.Builder<TEvent>>
implements ObjectBuilder<HitsEvent<TEvent>>
Builder for
HitsEvent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHitsEvent.final HitsEvent.Builder<TEvent>API name:fieldsfinal HitsEvent.Builder<TEvent>API name:fieldsfinal HitsEvent.Builder<TEvent>Required - Unique identifier for the event.final HitsEvent.Builder<TEvent>Required - Name of the index containing the event.final HitsEvent.Builder<TEvent>Set totruefor events in a timespan-constrained sequence that do not meet a given condition.protected HitsEvent.Builder<TEvent>self()final HitsEvent.Builder<TEvent>Required - Original JSON body passed for the event at index time.final HitsEvent.Builder<TEvent>tEventSerializer(JsonpSerializer<TEvent> value) Serializer for TEvent.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
-
index
Required - Name of the index containing the event.API name:
_index -
id
Required - Unique identifier for the event. This ID is only unique within the index.API name:
_id -
source
Required - Original JSON body passed for the event at index time.API name:
_source -
missing
Set totruefor events in a timespan-constrained sequence that do not meet a given condition.API name:
missing -
fields
API name:fieldsAdds all entries of
maptofields. -
fields
API name:fieldsAdds an entry to
fields. -
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<HitsEvent.Builder<TEvent>>
-
build
Builds aHitsEvent.- Specified by:
buildin interfaceObjectBuilder<TEvent>- Throws:
NullPointerException- if some of the required fields are null.
-