Class BucketSelectorAggregation.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
-
- org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase.AbstractBuilder<BucketSelectorAggregation.Builder>
-
- org.opensearch.client.opensearch._types.aggregations.BucketSelectorAggregation.Builder
-
- All Implemented Interfaces:
ObjectBuilder<BucketSelectorAggregation>
- Enclosing class:
- BucketSelectorAggregation
public static class BucketSelectorAggregation.Builder extends PipelineAggregationBase.AbstractBuilder<BucketSelectorAggregation.Builder> implements ObjectBuilder<BucketSelectorAggregation>
Builder forBucketSelectorAggregation
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketSelectorAggregation
build()
Builds aBucketSelectorAggregation
.BucketSelectorAggregation.Builder
script(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)
API name:script
BucketSelectorAggregation.Builder
script(Script value)
API name:script
protected BucketSelectorAggregation.Builder
self()
-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase.AbstractBuilder
bucketsPath, bucketsPath, format, gapPolicy
-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, name
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
script
public final BucketSelectorAggregation.Builder script(@Nullable Script value)
API name:script
-
script
public final BucketSelectorAggregation.Builder script(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)
API name:script
-
self
protected BucketSelectorAggregation.Builder self()
- Specified by:
self
in classAggregationBase.AbstractBuilder<BucketSelectorAggregation.Builder>
-
build
public BucketSelectorAggregation build()
Builds aBucketSelectorAggregation
.- Specified by:
build
in interfaceObjectBuilder<BucketSelectorAggregation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-