Class AggregationProfile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AggregationProfile.Builder>
co.elastic.clients.elasticsearch.core.search.AggregationProfile.Builder
- All Implemented Interfaces:
WithJson<AggregationProfile.Builder>,ObjectBuilder<AggregationProfile>
- Enclosing class:
- AggregationProfile
public static class AggregationProfile.Builder
extends WithJsonObjectBuilderBase<AggregationProfile.Builder>
implements ObjectBuilder<AggregationProfile>
Builder for
AggregationProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreakdown(AggregationBreakdown value) Required - API name:breakdownRequired - API name:breakdownbuild()Builds aAggregationProfile.children(AggregationProfile value, AggregationProfile... values) API name:childrenAPI name:childrenchildren(List<AggregationProfile> list) API name:childrendebug(AggregationProfileDebug value) API name:debugAPI name:debugdescription(String value) Required - API name:descriptionprotected AggregationProfile.Builderself()timeInNanos(long value) Required - API name:time_in_nanosRequired - API name:typeMethods 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
-
breakdown
Required - API name:breakdown -
breakdown
public final AggregationProfile.Builder breakdown(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(Function<AggregationProfileDebug.Builder, ObjectBuilder<AggregationProfileDebug>> fn) API name:debug -
children
API name:childrenAdds all elements of
listtochildren. -
children
public final AggregationProfile.Builder children(AggregationProfile value, AggregationProfile... values) API name:childrenAdds one or more values to
children. -
children
public final AggregationProfile.Builder children(Function<AggregationProfile.Builder, ObjectBuilder<AggregationProfile>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AggregationProfile.Builder>
-
build
Builds aAggregationProfile.- Specified by:
buildin interfaceObjectBuilder<AggregationProfile>- Throws:
NullPointerException- if some of the required fields are null.
-