Class AggregationProfile.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.AggregationProfile.Builder
- All Implemented Interfaces:
CopyableBuilder<AggregationProfile.Builder,,AggregationProfile> MutableBuilder<AggregationProfile.Builder,,AggregationProfile> ObjectBuilder<AggregationProfile>
- Enclosing class:
AggregationProfile
public static class AggregationProfile.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AggregationProfile.Builder,AggregationProfile>
Builder for
AggregationProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - API name:breakdownbreakdown(AggregationBreakdown value) Required - API name:breakdownbuild()Builds aAggregationProfile.API name:childrenchildren(List<AggregationProfile> list) API name:childrenchildren(AggregationProfile value, AggregationProfile... values) API name:childrencopy()Create a new builderCopyableBuilderthat is a copy of this one.API name:debugdebug(AggregationProfileDebug value) API name:debugdescription(String value) Required - API name:descriptiontimeInNanos(long value) Required - API name:time_in_nanosRequired - API name:typeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<AggregationProfile.Builder,AggregationProfile> - Returns:
- a new builder instance.
-
breakdown
Required - API name:breakdown -
breakdown
@Nonnull public final AggregationProfile.Builder breakdown(Function<AggregationBreakdown.Builder, ObjectBuilder<AggregationBreakdown>> fn) Required - API name:breakdown -
children
API name:childrenAdds all elements of
listtochildren. -
children
@Nonnull public final AggregationProfile.Builder children(AggregationProfile value, AggregationProfile... values) API name:childrenAdds one or more values to
children. -
children
@Nonnull public final AggregationProfile.Builder children(Function<AggregationProfile.Builder, ObjectBuilder<AggregationProfile>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
debug
API name:debug -
debug
@Nonnull public final AggregationProfile.Builder debug(Function<AggregationProfileDebug.Builder, ObjectBuilder<AggregationProfileDebug>> fn) API name:debug -
description
Required - API name:description -
timeInNanos
Required - API name:time_in_nanos -
type
Required - API name:type -
build
Builds aAggregationProfile.- Specified by:
buildin interfaceObjectBuilder<AggregationProfile>- Throws:
NullPointerException- if some of the required fields are null.
-