Class AggregationProfile.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.AggregationProfile.Builder
-
- All Implemented Interfaces:
ObjectBuilder<AggregationProfile>
- Enclosing class:
- AggregationProfile
public static class AggregationProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<AggregationProfile>
Builder forAggregationProfile.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
breakdown
public final AggregationProfile.Builder breakdown(AggregationBreakdown value)
Required - API name:breakdown
-
breakdown
public final AggregationProfile.Builder breakdown(java.util.function.Function<AggregationBreakdown.Builder,ObjectBuilder<AggregationBreakdown>> fn)
Required - API name:breakdown
-
description
public final AggregationProfile.Builder description(java.lang.String value)
Required - API name:description
-
timeInNanos
public final AggregationProfile.Builder timeInNanos(long value)
Required - API name:time_in_nanos
-
type
public final AggregationProfile.Builder type(java.lang.String value)
Required - API name:type
-
debug
public final AggregationProfile.Builder debug(@Nullable AggregationProfileDebug value)
API name:debug
-
debug
public final AggregationProfile.Builder debug(java.util.function.Function<AggregationProfileDebug.Builder,ObjectBuilder<AggregationProfileDebug>> fn)
API name:debug
-
children
public final AggregationProfile.Builder children(java.util.List<AggregationProfile> list)
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(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)
API name:childrenAdds a value to
childrenusing a builder lambda.
-
build
public AggregationProfile build()
Builds aAggregationProfile.- Specified by:
buildin interfaceObjectBuilder<AggregationProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-