Class RollupSearchResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.rollup.RollupSearchResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<RollupSearchResponse<TDocument>>
- Enclosing class:
- RollupSearchResponse<TDocument>
public static class RollupSearchResponse.Builder<TDocument> extends java.lang.Object implements ObjectBuilder<RollupSearchResponse<TDocument>>
Builder for
RollupSearchResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
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
-
took
Required - API name:took
-
timedOut
Required - API name:timed_out
-
terminatedEarly
API name:terminated_early
-
shards
Required - API name:_shards
-
shards
public RollupSearchResponse.Builder<TDocument> shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shards
-
hits
Required - API name:hits
-
hits
public RollupSearchResponse.Builder<TDocument> hits(java.util.function.Function<HitsMetadata.Builder<TDocument>,ObjectBuilder<HitsMetadata<TDocument>>> fn)Required - API name:hits
-
aggregations
public RollupSearchResponse.Builder<TDocument> aggregations(@Nullable java.util.Map<java.lang.String,jakarta.json.JsonValue> value)API name:aggregations
-
putAggregations
public RollupSearchResponse.Builder<TDocument> putAggregations(java.lang.String key, jakarta.json.JsonValue value)Add a key/value toaggregations(Map)
, creating the map if needed. -
tDocumentSerializer
public RollupSearchResponse.Builder<TDocument> tDocumentSerializer(@Nullable JsonpSerializer<TDocument> value)Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
build
Builds aRollupSearchResponse
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-