Class AggregationProfile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.search.AggregationProfile.Builder
- All Implemented Interfaces:
ObjectBuilder<AggregationProfile>
- Enclosing class:
- AggregationProfile
public static class AggregationProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<AggregationProfile>
Builder for
AggregationProfile
.-
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
-
breakdown
Required - API name:breakdown
-
breakdown
public final AggregationProfile.Builder breakdown(java.util.function.Function<AggregationBreakdown.Builder,ObjectBuilder<AggregationBreakdown>> fn)Required - API name:breakdown
-
description
Required - API name:description
-
timeInNanos
Required - API name:time_in_nanos
-
type
Required - API name:type
-
debug
API name:debug
-
debug
public final AggregationProfile.Builder debug(java.util.function.Function<AggregationProfileDebug.Builder,ObjectBuilder<AggregationProfileDebug>> fn)API name:debug
-
children
API name:children
Adds all elements of
list
tochildren
. -
children
public final AggregationProfile.Builder children(AggregationProfile value, AggregationProfile... values)API name:children
Adds one or more values to
children
. -
children
public final AggregationProfile.Builder children(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)API name:children
Adds a value to
children
using a builder lambda. -
build
Builds aAggregationProfile
.- Specified by:
build
in interfaceObjectBuilder<AggregationProfile>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-