Interface BucketInfo.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BucketInfo.Builder,
,BucketInfo> SdkBuilder<BucketInfo.Builder,
,BucketInfo> SdkPojo
- Enclosing class:
BucketInfo
public static interface BucketInfo.Builder
extends SdkPojo, CopyableBuilder<BucketInfo.Builder,BucketInfo>
-
Method Summary
Modifier and TypeMethodDescriptionbuckets
(Collection<Bucket> buckets) A list of the calculated facet values and counts.buckets
(Consumer<Bucket.Builder>... buckets) A list of the calculated facet values and counts.A list of the calculated facet values and counts.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 Details
-
buckets
A list of the calculated facet values and counts.
- Parameters:
buckets
- A list of the calculated facet values and counts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
A list of the calculated facet values and counts.
- Parameters:
buckets
- A list of the calculated facet values and counts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
A list of the calculated facet values and counts.
This is a convenience method that creates an instance of theBucket.Builder
avoiding the need to create one manually viaBucket.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobuckets(List<Bucket>)
.- Parameters:
buckets
- a consumer that will call methods onBucket.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-