Class RollupSearchResponse.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
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 ObjectBuilderBase implements ObjectBuilder<RollupSearchResponse<TDocument>>
Builder for
RollupSearchResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
public final RollupSearchResponse.Builder<TDocument> terminatedEarly(@Nullable java.lang.Boolean value)API name:terminated_early
-
shards
Required - API name:_shards
-
shards
public final RollupSearchResponse.Builder<TDocument> shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shards
-
hits
Required - API name:hits
-
hits
public final RollupSearchResponse.Builder<TDocument> hits(java.util.function.Function<HitsMetadata.Builder<TDocument>,ObjectBuilder<HitsMetadata<TDocument>>> fn)Required - API name:hits
-
aggregations
public final RollupSearchResponse.Builder<TDocument> aggregations(java.util.Map<java.lang.String,Aggregate> map)API name:aggregations
Adds all entries of
map
toaggregations
. -
aggregations
public final RollupSearchResponse.Builder<TDocument> aggregations(java.lang.String key, Aggregate value)API name:aggregations
Adds an entry to
aggregations
. -
aggregations
public final RollupSearchResponse.Builder<TDocument> aggregations(java.lang.String key, java.util.function.Function<Aggregate.Builder,ObjectBuilder<Aggregate>> fn)API name:aggregations
Adds an entry to
aggregations
using a builder lambda. -
tDocumentSerializer
public final 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.
-