Interface BucketsAggregationType.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<BucketsAggregationType.Builder,BucketsAggregationType>,SdkBuilder<BucketsAggregationType.Builder,BucketsAggregationType>,SdkPojo
- Enclosing class:
- BucketsAggregationType
public static interface BucketsAggregationType.Builder extends SdkPojo, CopyableBuilder<BucketsAggregationType.Builder,BucketsAggregationType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BucketsAggregationType.BuildertermsAggregation(Consumer<TermsAggregation.Builder> termsAggregation)Performs an aggregation that will return a list of buckets.BucketsAggregationType.BuildertermsAggregation(TermsAggregation termsAggregation)Performs an aggregation that will return a list of buckets.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
termsAggregation
BucketsAggregationType.Builder termsAggregation(TermsAggregation termsAggregation)
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.
- Parameters:
termsAggregation- Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
termsAggregation
default BucketsAggregationType.Builder termsAggregation(Consumer<TermsAggregation.Builder> termsAggregation)
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.
This is a convenience method that creates an instance of theTermsAggregation.Builderavoiding the need to create one manually viaTermsAggregation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totermsAggregation(TermsAggregation).- Parameters:
termsAggregation- a consumer that will call methods onTermsAggregation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
termsAggregation(TermsAggregation)
-
-